git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix #1476
commit7c17fffb2c6fc83090899b1904ac4925a021fe94 authorPhil Freeman <paf31@cantab.net> dateSun 18 Oct 2015, 14:27 (11 years ago) parentc3a63ab
1 file changed+4
src/Language/PureScript/Pretty/Values.hs+4
src/Language/PureScript/Pretty/Values.hs+4
@@ -98,6 +98,10 @@ prettyPrintDeclaration (TypeDeclaration ident ty) =
9898 text (showIdent ident ++ " :: ") <> typeAsBox ty
9999prettyPrintDeclaration (ValueDeclaration ident _ [] (Right val)) =
100100 text (showIdent ident ++ " = ") <> prettyPrintValue val
101+prettyPrintDeclaration (BindingGroupDeclaration ds) =
102+ vsep 1 left (map (prettyPrintDeclaration . toDecl) ds)
103+ where
104+ toDecl (nm, t, e) = ValueDeclaration nm t [] (Right e)
101105prettyPrintDeclaration (PositionedDeclaration _ _ d) = prettyPrintDeclaration d
102106prettyPrintDeclaration _ = error "Invalid argument to prettyPrintDeclaration"
103107