Fix impredicativity related issue

See: https://ghc.haskell.org/trac/ghc/ticket/10443
This commit is contained in:
Daniel Gröber 2015-06-10 11:00:56 +02:00
parent 21087650d9
commit bfa0b965ee
1 changed files with 3 additions and 2 deletions

View File

@ -342,8 +342,9 @@ instance (MonadBaseControl IO m) => MonadBaseControl IO (GhcModT m) where
(ErrorT GhcModError
(JournalT GhcModLog
(ReaderT GhcModEnv m) ) ) ) a
liftBaseWith f = GhcModT . liftBaseWith $ \runInBase ->
f $ runInBase . unGhcModT
liftBaseWith f = GhcModT (liftBaseWith $ \runInBase ->
f $ runInBase . unGhcModT)
restoreM = GhcModT . restoreM
{-# INLINE liftBaseWith #-}