Skip to content

Commit

Permalink
anyTill use getInput instead of takeRest
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdbrock committed May 7, 2020
1 parent f32aab6 commit 474b18d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for replace-megaparsec

## 1.4.1.0 -- 2020-05-07

anyTill use getInput instead of takeRest

## 1.4.0.0 -- 2020-05-06

__Running Parsers__: Add `splitCap` and `breakCap`.
Expand Down
2 changes: 1 addition & 1 deletion replace-megaparsec.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: replace-megaparsec
version: 1.4.0.0
version: 1.4.1.0
cabal-version: 1.18
synopsis: Find, replace, and split string patterns with Megaparsec parsers (instead of regex)
homepage: https://github.com/jamesdbrock/replace-megaparsec
Expand Down
2 changes: 1 addition & 1 deletion src/Replace/Megaparsec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ breakCap sep input =
where
pser = do
(prefix, cap) <- anyTill sep
suffix <- takeRest
suffix <- getInput
pure (prefix, cap, suffix)
{-# INLINABLE breakCap #-}

Expand Down

0 comments on commit 474b18d

Please sign in to comment.