aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Schilling <nominolo@googlemail.com>2009-02-24 18:12:26 +0000
committerThomas Schilling <nominolo@googlemail.com>2009-02-24 18:12:26 +0000
commita87570b16240534595aa9c5ebfcdd2a50d3ba131 (patch)
treea6b8561c00413b98d18d70a0ff274a5b6815aff0 /src
parent6c73c9dff3f293360942a1c0f72e9604f99f5b38 (diff)
'needsTemplateHaskell' is not defined in current stable GHC.
Diffstat (limited to 'src')
-rw-r--r--src/Haddock/Interface.hs3
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