ghc-mtl 1.0.1.0 → 1.0.1.1
raw patch · 2 files changed
+16/−6 lines, 2 filesdep ~basedep ~ghcPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, ghc
API changes (from Hackage documentation)
- Control.Monad.Ghc: instance MonadIO m => WarnLogMonad (GhcT m)
- Control.Monad.Ghc: instance WarnLogMonad Ghc
- Control.Monad.Ghc: class (Functor m, MonadIO m, WarnLogMonad m, ExceptionMonad m) => GhcMonad m :: (* -> *)
+ Control.Monad.Ghc: class (Functor m, MonadIO m, ExceptionMonad m) => GhcMonad (m :: * -> *)
Files
- Control/Monad/Ghc.hs +12/−2
- ghc-mtl.cabal +4/−4
Control/Monad/Ghc.hs view
@@ -12,13 +12,21 @@ import Control.Monad.CatchIO import qualified GHC ( runGhc, runGhcT )-import qualified HscTypes as GHC import qualified MonadUtils as GHC import qualified Exception as GHC+#if __GLASGOW_HASKELL__ >= 702+import qualified GhcMonad as GHC+#else+import qualified HscTypes as GHC+#endif + newtype Ghc a = Ghc (GHC.Ghc a) deriving (Functor, Monad,- GHC.WarnLogMonad, GHC.ExceptionMonad, GHC.MonadIO, GHC.GhcMonad)+#if __GLASGOW_HASKELL__ < 702+ GHC.WarnLogMonad,+#endif+ GHC.ExceptionMonad, GHC.MonadIO, GHC.GhcMonad) instance MTL.MonadIO Ghc where liftIO = GHC.liftIO@@ -56,9 +64,11 @@ gblock = block gunblock = unblock +#if __GLASGOW_HASKELL__ < 702 instance MTL.MonadIO m => GHC.WarnLogMonad (GhcT m) where setWarnings = GhcT . GHC.setWarnings getWarnings = GhcT GHC.getWarnings+#endif instance (Functor m, MonadCatchIO m) => GHC.GhcMonad (GhcT m) where getSession = GhcT GHC.getSession
ghc-mtl.cabal view
@@ -1,5 +1,5 @@ name: ghc-mtl-version: 1.0.1.0+version: 1.0.1.1 description: Provides an 'mtl' compatible version of the 'GhcT' monad-transformer defined in the 'GHC-API' since version 6.10.1.@@ -10,17 +10,17 @@ license-file: LICENSE author: Daniel Gorin maintainer: jcpetruzza@gmail.com-homepage: http://code.haskell.org/~jcpetruzza/ghc-mtl+homepage: http://darcsden.com/jcpetruzza/ghc-mtl cabal-version: >= 1.2 build-type: Simple tested-with: GHC==6.10 Library- build-depends: base >= 4,+ build-depends: base >= 4, base <= 5, ghc >= 6.10, mtl, MonadCatchIO-mtl >= 0.2.0.0 exposed-modules: Control.Monad.Ghc- extensions: GeneralizedNewtypeDeriving+ extensions: GeneralizedNewtypeDeriving, CPP ghc-options: -Wall -O2