git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Reduce noise in instance declarations

`instance showFoo :: Show Foo` is now rendered as `Show Foo`, since the extra information is mostly just noise.

commit9829ec7a8208ff55918b8705c97fd41d3861cd48 authorHarry Garrood <harry@garrood.me> dateSat 14 Nov 2015, 04:06 (11 years ago) parent81a7efa
1 file changed+1−5
src/Language/PureScript/Docs/Render.hs+1−5
src/Language/PureScript/Docs/Render.hs+1−5
@@ -71,11 +71,7 @@ renderChildDeclarationWithOptions :: RenderTypeOptions -> ChildDeclaration -> Re
7171renderChildDeclarationWithOptions opts ChildDeclaration{..} =
7272 mintersperse sp $ case cdeclInfo of
7373 ChildInstance constraints ty ->
74− [ keywordInstance
75− , ident cdeclTitle
76− , syntax "::"
77− ] ++ maybeToList (renderConstraints constraints)
78− ++ [ renderType' ty ]
74+ maybeToList (renderConstraints constraints) ++ [ renderType' ty ]
7975 ChildDataConstructor args ->
8076 [ renderType' typeApp' ]
8177 where