X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fiface%2FBinIface.hs;h=12bde117344fcb0c1b903c8cca3b1a0d8d20606e;hb=e5adcaf845207c73da65cb44cff4ef83b76dd4a9;hp=e891db49983437db08124819f53d182cfa74e16b;hpb=ad94d40948668032189ad22a0ad741ac1f645f50;p=ghc-hetmet.git diff --git a/compiler/iface/BinIface.hs b/compiler/iface/BinIface.hs index e891db4..12bde11 100644 --- a/compiler/iface/BinIface.hs +++ b/compiler/iface/BinIface.hs @@ -1,15 +1,15 @@ --- --- (c) The University of Glasgow 2002-2006 --- --- Binary interface file support. - {-# OPTIONS -w #-} -- The above warning supression flag is a temporary kludge. -- While working on this module you are encouraged to remove it and fix -- any warnings in the module. See --- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings -- for details +-- +-- (c) The University of Glasgow 2002-2006 +-- +-- Binary interface file support. + module BinIface ( writeBinIface, readBinIface, v_IgnoreHiWay ) where #include "HsVersions.h" @@ -54,7 +54,7 @@ import Control.Monad readBinIface :: FilePath -> TcRnIf a b ModIface readBinIface hi_path = do nc <- getNameCache - (new_nc, iface) <- ioToIOEnv $ readBinIface_ hi_path nc + (new_nc, iface) <- liftIO $ readBinIface_ hi_path nc setNameCache new_nc return iface @@ -428,7 +428,7 @@ instance Binary Usage where usg_exports = exps, usg_entities = ents, usg_rules = rules }) -instance Binary a => Binary (Deprecs a) where +instance Binary Deprecations where put_ bh NoDeprecs = putByte bh 0 put_ bh (DeprecAll t) = do putByte bh 1