Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 56d460c

Browse files
authored
Merge pull request #1297 from nomeata/ghc2010-ghc-9.0
Make haddock more robust to changes to the `Language` data type
2 parents 18b91ea + a15e7ab commit 56d460c

File tree

1 file changed

+1
-4
lines changed
  • haddock-api/src/Haddock/Backends

1 file changed

+1
-4
lines changed

haddock-api/src/Haddock/Backends/Xhtml.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ moduleInfo iface =
223223
("Language", lg)
224224
] ++ extsForm
225225
where
226-
lg inf = case hmi_language inf of
227-
Nothing -> Nothing
228-
Just Haskell98 -> Just "Haskell98"
229-
Just Haskell2010 -> Just "Haskell2010"
226+
lg inf = fmap show (hmi_language inf)
230227

231228
multilineRow :: String -> [String] -> HtmlTable
232229
multilineRow title xs = (th ! [valign "top"]) << title <-> td << (toLines xs)

0 commit comments

Comments
 (0)