on master help sign in
Fix document parsing error, fix #993
ffbf805Evan Czaplicki
src/Parse/Helpers.hs+1−5
@@ -381,11 +381,7 @@ docComment :: IParser String
381docComment =
381docComment =
382 do try (string "{-|")
382 do try (string "{-|")
383 contents <- closeComment
383 contents <- closeComment
384−
384+ return (init (init contents))
385− let reversed =
386− dropWhile (`elem` " \n\r") . drop 2 $ reverse contents
387−
388− return $ dropWhile (==' ') (reverse reversed)
389
385
390
386
391multiComment :: IParser String
387multiComment :: IParser String