git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1628 from hdgarrood/less-noisy-rendered-instances

Reduce noise in instance declarations

commit444eadf206cb32e9b16c282a499cf37537edba0c authorPhil Freeman <paf31@cantab.net> dateSat 14 Nov 2015, 10:30 (11 years ago) parent9d44e1b9829ec7
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