aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/HaskellCodeExplorer/GhcUtils.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/HaskellCodeExplorer/GhcUtils.hs b/src/HaskellCodeExplorer/GhcUtils.hs
index 33370d5..3a4ec26 100644
--- a/src/HaskellCodeExplorer/GhcUtils.hs
+++ b/src/HaskellCodeExplorer/GhcUtils.hs
@@ -1110,7 +1110,13 @@ hsDocsToDocH :: DynFlags -> GlobalRdrEnv -> [HsDocString] -> Doc Name
hsDocsToDocH flags rdrEnv =
rename flags rdrEnv .
overIdentifier (parseIdent flags) .
- _doc . parseParas . concatMap (unpackFS . (\(HsDocString s) -> s))
+ _doc
+#if MIN_VERSION_haddock_library(1,6,0)
+ . parseParas Nothing
+#else
+ . parseParas
+#endif
+ . concatMap (unpackFS . (\(HsDocString s) -> s))
parseIdent :: DynFlags -> String -> Maybe RdrName
parseIdent dflags str0 =