@@ -33,7 +33,8 @@ showDoc d | nullDocstring d = empty
3333
3434pprintFD :: Bool -> FunDoc -> Doc OutputAnnotation
3535pprintFD imp (FD n doc args ty f)
36− = nest 4 (prettyName imp [] n <+> colon <+> prettyImp imp ty <$> renderDocstring doc <$>
36+ = nest 4 (prettyName imp [] n <+> colon <+> pprintPTerm imp [] (map (\(n,_,_,_) -> n) args) ty <$>
37+ renderDocstring doc <$>
3738 maybe empty (\f -> text (show f) <> line) f <>
3839 let argshow = showArgs args [] in
3940 if not (null argshow)
@@ -42,20 +43,20 @@ pprintFD imp (FD n doc args ty f)
4243
4344 where showArgs ((n, ty, Exp {}, d):args) bnd
4445 = bindingOf n False <+> colon <+>
45− pprintPTerm imp bnd ty <>
46+ pprintPTerm imp bnd [] ty <>
4647 showDoc (maybe emptyDocstring id d) <> line
4748 :
4849 showArgs args ((n, False):bnd)
4950 showArgs ((n, ty, Constraint {}, d):args) bnd
5051 = text "Class constraint" <+>
51− pprintPTerm imp bnd ty <> showDoc (maybe emptyDocstring id d) <> line
52+ pprintPTerm imp bnd [] ty <> showDoc (maybe emptyDocstring id d) <> line
5253 :
5354 showArgs args ((n, True):bnd)
5455 showArgs ((n, ty, Imp {}, d):args) bnd
5556 | Just d' <- d
5657 = text "(implicit)" <+>
5758 bindingOf n True <+> colon <+>
58− pprintPTerm imp bnd ty <>
59+ pprintPTerm imp bnd [] ty <>
5960 showDoc d' <> line
6061 :
6162 showArgs args ((n, True):bnd)