Workaround for GHC 7.4 bugs
This commit is contained in:
parent
3790fca20b
commit
e72d72eb86
@ -1,7 +1,7 @@
|
||||
module Language.Haskell.GhcMod.FileMapping
|
||||
( loadMappedFile
|
||||
, loadMappedFiles
|
||||
, delMMappedFile
|
||||
, unloadMappedFile
|
||||
, mapFile
|
||||
) where
|
||||
|
||||
@ -60,3 +60,6 @@ mkMappedTarget tid taoc (Just (MemoryMapping (Just src))) = do
|
||||
ct <- liftIO getCurrentTime
|
||||
return $ mkTarget tid taoc $ Just (sb, ct)
|
||||
mkMappedTarget tid taoc _ = return $ mkTarget tid taoc Nothing
|
||||
|
||||
unloadMappedFile :: IOish m => FilePath -> GhcModT m ()
|
||||
unloadMappedFile = delMMappedFile
|
||||
|
@ -441,7 +441,7 @@ legacyInteractiveLoop symdbreq world = do
|
||||
"load" -> loadMappedFile arg (MemoryMapping Nothing)
|
||||
>> return ""
|
||||
|
||||
"unload" -> delMMappedFile arg
|
||||
"unload" -> unloadMappedFile arg
|
||||
>> return ""
|
||||
|
||||
"quit" -> liftIO $ exitSuccess
|
||||
|
Loading…
Reference in New Issue
Block a user