@@ -33,7 +33,8 @@ showDoc d | nullDocstring d = empty
34pprintFD :: Bool -> FunDoc -> Doc OutputAnnotation
34pprintFD :: Bool -> FunDoc -> Doc OutputAnnotation
35pprintFD imp (FD n doc args ty f)
35pprintFD 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 <$>
37 maybe empty (\f -> text (show f) <> line) f <>
38 maybe empty (\f -> text (show f) <> line) f <>
38 let argshow = showArgs args [] in
39 let argshow = showArgs args [] in
39 if not (null argshow)
40 if not (null argshow)
@@ -42,20 +43,20 @@ pprintFD imp (FD n doc args ty f)
43 where showArgs ((n, ty, Exp {}, d):args) bnd
44 where showArgs ((n, ty, Exp {}, d):args) bnd
44 = bindingOf n False <+> colon <+>
45 = bindingOf n False <+> colon <+>
45− pprintPTerm imp bnd ty <>
46+ pprintPTerm imp bnd [] ty <>
46 showDoc (maybe emptyDocstring id d) <> line
47 showDoc (maybe emptyDocstring id d) <> line
48 showArgs args ((n, False):bnd)
49 showArgs args ((n, False):bnd)
49 showArgs ((n, ty, Constraint {}, d):args) bnd
50 showArgs ((n, ty, Constraint {}, d):args) bnd
50 = text "Class constraint" <+>
51 = 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
53 showArgs args ((n, True):bnd)
54 showArgs args ((n, True):bnd)
54 showArgs ((n, ty, Imp {}, d):args) bnd
55 showArgs ((n, ty, Imp {}, d):args) bnd
55 | Just d' <- d
56 | Just d' <- d
56 = text "(implicit)" <+>
57 = text "(implicit)" <+>
57 bindingOf n True <+> colon <+>
58 bindingOf n True <+> colon <+>
58− pprintPTerm imp bnd ty <>
59+ pprintPTerm imp bnd [] ty <>
59 showDoc d' <> line
60 showDoc d' <> line
61 showArgs args ((n, True):bnd)
62 showArgs args ((n, True):bnd)