snoyberg/conduit — Issue #22: conduit: warnings about deprecated functions
Author: DanBurton
Created: 2012-02-25 19:09:46+00:00
State: open

Just did a fresh clone, cabal configure && cabal build of conduit (0.2.2). Here are the deprecation warnings:

# Control.Monad.Trans.Resource.hs

```
Control/Monad/Trans/Resource.hs:50:1:
Warning: In the use of `mkTyCon'
(imported from Data.Typeable):
Deprecated: "either derive Typeable, or use mkTyCon3 instead"

Control/Monad/Trans/Resource.hs:66:30:
Warning: In the use of `unsafeIOToST'
(imported from Control.Monad.ST):
Deprecated: "Please import from Control.Monad.ST.Unsafe instead; This will be removed in the next release"

Control/Monad/Trans/Resource.hs:67:1:
Warning: In the use of `Lazy.unsafeIOToST'
(imported from Control.Monad.ST.Lazy):
Deprecated: "Please import from Control.Monad.ST.Lazy.Unsafe instead; This will be removed in the next release"
```

#System.PosixFile.hsc

```
System/PosixFile.hsc:30:1:
Warning: newtype `CInt' is used in an FFI declaration,
but its constructor is not in scope.
This will become an error in GHC 7.6.1.
When checking declaration:
foreign import ccall safe "static open" c_open
:: CString -> Flag -> IO CInt

System/PosixFile.hsc:30:1:
Warning: newtype `CInt' is used in an FFI declaration,
but its constructor is not in scope.
This will become an error in GHC 7.6.1.
When checking declaration:
foreign import ccall safe "static open" c_open
:: CString -> Flag -> IO CInt

System/PosixFile.hsc:33:1:
Warning: newtype `CInt' is used in an FFI declaration,
but its constructor is not in scope.
This will become an error in GHC 7.6.1.
When checking declaration:
foreign import ccall safe "static read" c_read
:: FD -> Ptr Word8 -> CInt -> IO CInt

System/PosixFile.hsc:33:1:
Warning: newtype `CInt' is used in an FFI declaration,
but its constructor is not in scope.
This will become an error in GHC 7.6.1.
When checking declaration:
foreign import ccall safe "static read" c_read
:: FD -> Ptr Word8 -> CInt -> IO CInt

System/PosixFile.hsc:33:1:
Warning: newtype `CInt' is used in an FFI declaration,
but its constructor is not in scope.
This will become an error in GHC 7.6.1.
When checking declaration:
foreign import ccall safe "static read" c_read
:: FD -> Ptr Word8 -> CInt -> IO CInt

System/PosixFile.hsc:36:1:
Warning: newtype `CInt' is used in an FFI declaration,
but its constructor is not in scope.
This will become an error in GHC 7.6.1.
When checking declaration:
foreign import ccall safe "static close" close :: FD -> IO ()
```