Skip to content

Commit

Permalink
Haddocks: cosmetic fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Feb 12, 2022
1 parent b0f8978 commit be60400
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Data/YAML/Token.hs
Original file line number Diff line number Diff line change
Expand Up @@ -542,17 +542,17 @@ parser ?! decision = peek parser *> commit decision

-- | @lookbehind <?@ matches the current point without consuming any
-- characters, if the previous character matches the lookbehind parser (single
-- character positive lookbehind)
-- character positive lookbehind).
(<?) :: (Match match result) => match -> Parser result
(<?) lookbehind = prev lookbehind

-- | @lookahead >?@ matches the current point without consuming any characters
-- if it matches the lookahead parser (positive lookahead)
-- if it matches the lookahead parser (positive lookahead).
(>?) :: (Match match result) => match -> Parser result
(>?) lookahead = peek lookahead

-- | @lookahead >?@ matches the current point without consuming any characters
-- if it matches the lookahead parser (negative lookahead)
-- | @lookahead >!@ matches the current point without consuming any characters
-- if it matches the lookahead parser (negative lookahead).
(>!) :: (Match match result) => match -> Pattern
(>!) lookahead = reject lookahead Nothing

Expand Down

0 comments on commit be60400

Please sign in to comment.