Upgrade to GHC v9.4.4, text v2.0.1
Text does not work with GHC v9.4.3
Test
- exitcode-stdio-1.0 instead of detailed-0.9
- HSpec instead of Cabal Distribution.TestSuite
Added megaparsec version bounds #36
Minor documentation changes.
Confirmed tests pass for text v2.
Add splitCapT
and breakCapT
.
Bugfix sepCap backtracking when sep fails
See #33
anyTill use getInput instead of takeRest
Running Parsers: Add splitCap
and breakCap
.
Parser Combinators: Add anyTill
.
Remove Show
and Typeable
constraints on streamEditT
.
sepCap
won't throw.
Don't throw an exception on an unreachable error case, just bottom.
Remove type constraints for Exception
.
Allow any error parameter, not just Void
.
Benchmark improvements
Specializations of the sepCap
function, guided by
replace-benchmark.
Program | dense | sparse |
---|---|---|
Replace.Megaparsec.streamEdit String |
454.95ms | 375.04ms |
Replace.Megaparsec.streamEdit ByteString |
529.99ms | 73.76ms |
Replace.Megaparsec.streamEdit Text |
547.47ms | 139.21ms |
Program | dense | sparse |
---|---|---|
Replace.Megaparsec.streamEdit String |
454.95ms | 375.04ms |
Replace.Megaparsec.streamEdit ByteString |
611.98ms | 433.26ms |
Replace.Megaparsec.streamEdit Text |
592.66ms | 353.32ms |
- Move benchmarks to replace-benchmark
- Add benchmark suite.
- In
streamEditT
, replacefold
withmconcat
. The benchmarks now show linear scaling instead of quadratic.
- Add test suite.
sepCap
will treatssep
as failing if it succeeds but consumes no input.
- First version.