From a87570b16240534595aa9c5ebfcdd2a50d3ba131 Mon Sep 17 00:00:00 2001 From: Thomas Schilling Date: Tue, 24 Feb 2009 18:12:26 +0000 Subject: 'needsTemplateHaskell' is not defined in current stable GHC. --- src/Haddock/Interface.hs | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3