one more try.
This commit is contained in:
parent
ca6ca23aa7
commit
f413cda0fe
@ -204,7 +204,12 @@ withContext action = gbracket setup teardown body
|
|||||||
action
|
action
|
||||||
topImports = do
|
topImports = do
|
||||||
mss <- getModuleGraph
|
mss <- getModuleGraph
|
||||||
map modName <$> filterM isTop mss
|
ms <- map modName <$> filterM isTop mss
|
||||||
|
#if __GLASGOW_HASKELL__ >= 704
|
||||||
|
return ms
|
||||||
|
#else
|
||||||
|
return (ms,[])
|
||||||
|
#endif
|
||||||
isTop mos = lookupMod mos ||> returnFalse
|
isTop mos = lookupMod mos ||> returnFalse
|
||||||
lookupMod mos = lookupModule (ms_mod_name mos) Nothing >> return True
|
lookupMod mos = lookupModule (ms_mod_name mos) Nothing >> return True
|
||||||
returnFalse = return False
|
returnFalse = return False
|
||||||
@ -216,7 +221,7 @@ withContext action = gbracket setup teardown body
|
|||||||
setCtx = setContext
|
setCtx = setContext
|
||||||
#else
|
#else
|
||||||
modName = ms_mod
|
modName = ms_mod
|
||||||
setCtx = flip setContext []
|
setCtx = uncurry setContext
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
showSeverityCaption :: Severity -> String
|
showSeverityCaption :: Severity -> String
|
||||||
|
Loading…
Reference in New Issue
Block a user