mirror of
https://github.com/alexwl/haskell-code-explorer.git
synced 2024-11-26 11:17:04 +03:00
Fix build with haddock-library >= 1.6.0
This commit is contained in:
parent
67d0714dc3
commit
37f1d35347
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user