diff options
Diffstat (limited to 'src/Haddock')
-rw-r--r-- | src/Haddock/Interface.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Haddock/Interface.hs b/src/Haddock/Interface.hs index 2e4c3072..d9ac2e94 100644 --- a/src/Haddock/Interface.hs +++ b/src/Haddock/Interface.hs @@ -91,6 +91,9 @@ createInterfaces' modules flags instIfaceMap = do -- If template haskell is used by the package, we can not use -- HscNothing as target since we might need to run code generated from -- one or more of the modules during typechecking. +#if __GLASGOW_HASKELL__ < 611 + let needsTemplateHaskell = any (dopt Opt_TemplateHaskell . ms_hspp_opts) +#endif modgraph' <- if needsTemplateHaskell modgraph then do dflags <- getSessionDynFlags |