adding a comment.
This commit is contained in:
parent
539fd305bd
commit
b35d19beec
4
Check.hs
4
Check.hs
@ -23,6 +23,10 @@ check opt cradle fileName = withGHC fileName $ checkIt `gcatch` handleErrMsg
|
|||||||
checkIt = do
|
checkIt = do
|
||||||
readLog <- initializeFlagsWithCradle opt cradle options True
|
readLog <- initializeFlagsWithCradle opt cradle options True
|
||||||
setTargetFile fileName
|
setTargetFile fileName
|
||||||
|
-- To check TH, a session module graph is necessary.
|
||||||
|
-- "load" sets a session module graph using "depanal".
|
||||||
|
-- But we have to set "-fno-code" to DynFlags before "load".
|
||||||
|
-- So, this is necessary redundancy.
|
||||||
slow <- needsTemplateHaskell <$> depanal [] False
|
slow <- needsTemplateHaskell <$> depanal [] False
|
||||||
when slow setSlowDynFlags
|
when slow setSlowDynFlags
|
||||||
void $ load LoadAllTargets
|
void $ load LoadAllTargets
|
||||||
|
Loading…
Reference in New Issue
Block a user