git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1628 from hdgarrood/less-noisy-rendered-instances
444eadfPhil Freeman
src/Language/PureScript/Docs/Render.hs+1−5
@@ -71,11 +71,7 @@ renderChildDeclarationWithOptions :: RenderTypeOptions -> ChildDeclaration -> Re
71renderChildDeclarationWithOptions opts ChildDeclaration{..} =
71renderChildDeclarationWithOptions opts ChildDeclaration{..} =
72 mintersperse sp $ case cdeclInfo of
72 mintersperse sp $ case cdeclInfo of
73 ChildInstance constraints ty ->
73 ChildInstance constraints ty ->
74− [ keywordInstance
75− , ident cdeclTitle
76− , syntax "::"
77− ] ++ maybeToList (renderConstraints constraints)
74+ maybeToList (renderConstraints constraints) ++ [ renderType' ty ]
78− ++ [ renderType' ty ]
79 ChildDataConstructor args ->
75 ChildDataConstructor args ->
80 [ renderType' typeApp' ]
76 [ renderType' typeApp' ]
81 where
77 where