Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conduit: warnings about deprecated functions #22

Closed
DanBurton opened this issue Feb 25, 2012 · 3 comments
Closed

conduit: warnings about deprecated functions #22

DanBurton opened this issue Feb 25, 2012 · 3 comments

Comments

@DanBurton
Copy link

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 ()
@snoyberg
Copy link
Owner

Thanks for the heads-up on this. Could you file all of this in a
Github issue? I think for the moment, I'm not going to fix any of
these warnings, since the official compiler for the HP, and thus
what's available in most distros, is still 7.0, and I don't think most
of the changes will work there. Once 7.6 starts to have release
candidates, we can evaluate whether we'll drop 7.0 support or use
conditional compilation.

Thanks

@jhance
Copy link

jhance commented Mar 27, 2012

Haskell Platform seems to be in need of a ghc update :)

@snoyberg
Copy link
Owner

Funny you should comment on this today, I just pushed a commit a few hours ago to fix these warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants