Skip to content

Commit

Permalink
Use records instead of positional pattern matching to fix haddock com…
Browse files Browse the repository at this point in the history
…patibility
  • Loading branch information
nh2 committed Apr 19, 2014
1 parent a568571 commit eb70f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModuleInspector.hs
Expand Up @@ -169,7 +169,7 @@ identOfName name = case name of
documentationMap :: Doc.Interface -> M.Map String String
documentationMap iface = M.fromList $ concatMap toDoc $ Doc.ifaceExportItems iface where
toDoc :: Doc.ExportItem Name.Name -> [(String, String)]
toDoc (Doc.ExportDecl decl docs _ _) = maybe [] (zip (extractNames decl) . repeat) $ extractDocs docs
toDoc Doc.ExportDecl{ Doc.expItemDecl = decl, Doc.expItemMbDoc = docs } = maybe [] (zip (extractNames decl) . repeat) $ extractDocs docs
toDoc _ = []

extractNames :: HsDecls.LHsDecl Name.Name -> [String]
Expand Down

0 comments on commit eb70f70

Please sign in to comment.