git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix #587
commit79fcdf4a38532eab6b5f0a26dceb7fa00e593a20 authorPhil Freeman <paf31@cantab.net> dateWed 17 Sep 2014, 10:25 (12 years ago) parent5027992
1 file changed+2−1
docgen/Main.hs+2−1
docgen/Main.hs+2−1
@@ -144,7 +144,8 @@ renderDeclaration n exps (P.DataDeclaration dtype name args ctors) = do
144144 let exported = filter (isDctorExported name exps . fst) ctors
145145 atIndent n $ show dtype ++ " " ++ typeName ++ (if null exported then "" else " where")
146146 forM_ exported $ \(ctor, tys) ->
147− atIndent (n + 2) $ P.runProperName ctor ++ " :: " ++ concatMap (\ty -> prettyPrintType' ty ++ " -> ") tys ++ typeName
147+ let ctorTy = foldr P.function (P.TypeConstructor (P.Qualified Nothing name)) tys
148+ in atIndent (n + 2) $ P.runProperName ctor ++ " :: " ++ prettyPrintType' ctorTy
148149renderDeclaration n _ (P.ExternDataDeclaration name kind) =
149150 atIndent n $ "data " ++ P.runProperName name ++ " :: " ++ P.prettyPrintKind kind
150151renderDeclaration n _ (P.TypeSynonymDeclaration name args ty) = do