Fix tests

This commit is contained in:
Daniel Gröber 2015-05-08 00:06:08 +02:00
parent e202fabc39
commit e6fc3dd8d2
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,8 @@ dropSession = do
-- TODO: This is still not enough, there seem to still be references to
-- GHC's state around afterwards.
liftIO $ writeIORef ref (error "HscEnv: session was dropped")
liftIO $ setUnsafeGlobalDynFlags (error "DynFlags: session was dropped")
-- Not available on ghc<7.8; didn't really help anyways
-- liftIO $ setUnsafeGlobalDynFlags (error "DynFlags: session was dropped")
Nothing -> return ()

View File

@ -19,7 +19,6 @@ import Language.Haskell.GhcMod.Types
import Control.Arrow
import Control.Applicative
import Control.Monad (when)
import Control.Monad.Error (ErrorT, runErrorT)
import Control.Monad.Trans.Journal
import Data.List.Split