replace-megaparsec icon indicating copy to clipboard operation
replace-megaparsec copied to clipboard

Stream editing with Haskell Megaparsec parsers

Results 15 replace-megaparsec issues
Sort by recently updated
recently updated
newest added
trafficstars

Implement sepCapWithin :: m mask -> m a -> m [Either (Tokens s), a]

The Cabal file for `replace-megaparsec` states simply that [`megaparsec` is a dependency](https://github.com/jamesdbrock/replace-megaparsec/blob/703baa90b8cbf1b4910a985409094192bbcb0838/replace-megaparsec.cabal#L28), but that seems incorrect: in fact, versions of megaparsec will have to at least be >= 7.0.0 to...

Hi, I have some bizarre behaviour that I pushed to this repository. https://github.com/locallycompact/replace-megaparsec-bug I am on NixOS so my commands are with `--nix` If I build with `stack --nix build`...

https://hackage.haskell.org/package/bytestring-tree-builder > According to the benchmarks this builder implementation beats all the alternatives. It is especially well-suited for generating strict bytestrings, beating the standard builder by at least the factor...

Ⓐ https://stackoverflow.com/questions/18957873/haskell-parenthesis-matching-for-find-and-replace 🞨 https://stackoverflow.com/questions/18338707/insert-a-character-into-parser-combinator-character-stream-in-haskell https://pl-rants.net/posts/regexes-and-combinators/

> Warnings: > > 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users.

Another comparison: PHP `preg_replace_callback` https://www.php.net/manual/en/function.preg-replace-callback.php

Rip-off the doc examples in http://hackage.haskell.org/package/regex-tdfa/docs/Text-Regex-TDFA.html

```haskell doesMatchExist = case (sepCap sep input) of [Left _] -> False otherwise -> True ``` Does laziness short-circuit `doesMatchExist` correctly? ```haskell firstMatch = find isRight $ sepCap sep input...