aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-07-22 11:51:03 +1000
committerYuchen Pei <hi@ypei.me>2022-07-22 11:51:03 +1000
commit2c059736ab1863d247ac347891ae7e9eedd0cd79 (patch)
tree494049a5e898adc0464a29a2b526a169ade9b3a0 /haddock-api/src/Haddock
parent250be87b1bffef6b9ed9e1225485dd45f1769fb3 (diff)
fix for hadrian build of ghc-9.2.2
Diffstat (limited to 'haddock-api/src/Haddock')
-rw-r--r--haddock-api/src/Haddock/Backends/Org.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/haddock-api/src/Haddock/Backends/Org.hs b/haddock-api/src/Haddock/Backends/Org.hs
index 9d02d0db..70994d1a 100644
--- a/haddock-api/src/Haddock/Backends/Org.hs
+++ b/haddock-api/src/Haddock/Backends/Org.hs
@@ -245,8 +245,10 @@ processExport _ (ExportModule mdl ) = do
ppFnArgsDoc :: FnArgsDoc DocName -> [OrgBlock]
ppFnArgsDoc aDoc = if M.null aDoc
then []
- else ((`ppDoc` Nothing) . DocParagraph . DocString) "Arguments (in order):"
- ++ ((`ppDoc` Nothing) . DocOrderedList . toList . M.map _doc) aDoc
+ else
+ ((`ppDoc` Nothing) . DocParagraph . DocString) "Arguments (in order):"
+ ++ ((`ppDoc` Nothing) . DocOrderedList . map snd . toList . M.map _doc)
+ aDoc
ppDocumentation :: Documentation DocName -> Maybe Int -> [OrgBlock]
ppDocumentation (Documentation (Just mdoc) _) minLevel = ppMDoc mdoc minLevel
@@ -266,7 +268,7 @@ ppDocBlock (DocParagraph x) _ = [Paragraph (ppDocInline x)]
ppDocBlock (DocUnorderedList docs) _ =
[PlainList Unordered $ (`ppDocBlock` Nothing) <$> docs]
ppDocBlock (DocOrderedList items) _ =
- [PlainList Ordered (map ((`ppDocBlock` Nothing) . snd) items)]
+ [PlainList Ordered (map (`ppDocBlock` Nothing) items)]
ppDocBlock (DocDefList pairs) _ =
[ DefList
$ (\(term, def) -> (ppDocInline term, ppDocBlock def Nothing))