diff options
author | David Terei <davidterei@gmail.com> | 2012-04-03 17:58:02 -0700 |
---|---|---|
committer | Paolo Capriotti <p.capriotti@gmail.com> | 2012-04-06 15:50:41 +0100 |
commit | e4eceaeeb6e99ef9349fe7e99d2ab4d152f96484 (patch) | |
tree | 0fbef281aa5a3fa5357d8e2eaed6d54aafb3d229 /src/Haddock/Interface/Create.hs | |
parent | 162364b177c3982c67c842d310aead45434a3760 (diff) |
Fix reporting of modules safe haskell mode (#5989)
Diffstat (limited to 'src/Haddock/Interface/Create.hs')
-rw-r--r-- | src/Haddock/Interface/Create.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Haddock/Interface/Create.hs b/src/Haddock/Interface/Create.hs index 94575209..f68004a6 100644 --- a/src/Haddock/Interface/Create.hs +++ b/src/Haddock/Interface/Create.hs @@ -47,6 +47,7 @@ createInterface tm flags modMap instIfaceMap = do let ms = pm_mod_summary . tm_parsed_module $ tm mi = moduleInfo tm + safety = modInfoSafe mi mdl = ms_mod ms dflags = ms_hspp_opts ms instances = modInfoInstances mi @@ -69,7 +70,7 @@ createInterface tm flags modMap instIfaceMap = do | otherwise = opts0 (info, mbDoc) <- do - (i, d) <- liftErrMsg $ processModuleHeader dflags gre mayDocHeader + (i, d) <- liftErrMsg $ processModuleHeader dflags gre safety mayDocHeader return (i, addModuleWarning warnings d) let declsWithDocs = topDecls group_ |