Skip to content

Commit b9b4ccb

Browse files
committed
Show comments before instances in generated docs
1 parent 7a175d7 commit b9b4ccb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Language/PureScript/Docs/AsMarkdown.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ declAsMarkdown RenderedDeclaration{..} = do
4444
zipWithM_ (\f c -> tell' (childToString f c)) (First : repeat NotFirst) children
4545
spacer
4646

47+
for_ rdComments tell'
48+
4749
unless (null instances) $ do
4850
headerLevel 5 "Instances"
49-
fencedBlock $ do
50-
mapM_ (tell' . childToString NotFirst) instances
51+
fencedBlock $ mapM_ (tell' . childToString NotFirst) instances
5152
spacer
5253

53-
for_ rdComments tell'
54-
5554
codeToString :: RenderedCode -> String
5655
codeToString = outputWith elemAsMarkdown
5756
where

0 commit comments

Comments
 (0)