-- several threads.
#if __GLASGOW_HASKELL__ < 710
+-- Pre-AMP change
runGhcT :: (ExceptionMonad m, Functor m) =>
#else
runGhcT :: (ExceptionMonad m) =>
unGhcT (f g_restore) s
#if __GLASGOW_HASKELL__ < 710
+-- Pre-AMP change
instance (ExceptionMonad m, Functor m) => HasDynFlags (GhcT m) where
#else
instance (ExceptionMonad m) => HasDynFlags (GhcT m) where
getDynFlags = getSessionDynFlags
#if __GLASGOW_HASKELL__ < 710
+-- Pre-AMP change
instance (ExceptionMonad m, Functor m) => GhcMonad (GhcT m) where
#else
instance (ExceptionMonad m) => GhcMonad (GhcT m) where
fmap f x = MaybeT $ fmap (fmap f) $ runMaybeT x
#if __GLASGOW_HASKELL__ < 710
+-- Pre-AMP change
instance (Monad m, Functor m) => Applicative (MaybeT m) where
#else
instance (Monad m) => Applicative (MaybeT m) where