aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Parser.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Haddock/Parser.hs')
-rw-r--r--src/Haddock/Parser.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Haddock/Parser.hs b/src/Haddock/Parser.hs
index 095f385e..cd7bb020 100644
--- a/src/Haddock/Parser.hs
+++ b/src/Haddock/Parser.hs
@@ -307,11 +307,11 @@ birdtracks = DocCodeBlock . DocString . intercalate "\n" . stripSpace <$> many1
line = skipHorizontalSpace *> ">" *> takeLine
stripSpace :: [String] -> [String]
-stripSpace = fromMaybe <*> mapM strip
+stripSpace = fromMaybe <*> mapM strip'
where
- strip (' ':xs) = Just xs
- strip "" = Just ""
- strip _ = Nothing
+ strip' (' ':xs') = Just xs'
+ strip' "" = Just ""
+ strip' _ = Nothing
-- | Parses examples. Examples are a paragraph level entitity (separated by an empty line).
-- Consecutive examples are accepted.