James Brock
James Brock
Hi @chapmanbe , thanks for the note. Yeah, I see the same thing. It looks like @DougBurke released v0.4.0.0 of ihaskell-hvega in October. I'll try an omni-upgrade of the ihaskell-notebook...
Update: this problem still appears with versions ``` ihaskell-0.10.2.2 ghc-8.10.7 hvega-0.12.0.2 ihaskell-hvega-0.5.0.2 JupyterLab 3.2.5 ``` I'll publish a new ihaskell-notebook image with these version updates anyway.
[Megaparsec](http://hackage.haskell.org/package/megaparsec) parsers are aware of line numbers, and the `Parsereplace.streamEdit` function allows you to edit pattern matches in a stream. Here is a solution using `Parsereplace.streamEdit`. import Parsereplace import Text.Megaparsec...
Ⓐ https://stackoverflow.com/questions/5230700/best-way-for-substring-replace-in-haskell
https://mail.haskell.org/pipermail/haskell-cafe/2010-May/077943.html
Ⓐ https://stackoverflow.com/questions/29549435/parsec-how-to-find-matches-within-a-string
Ⓐ https://stackoverflow.com/questions/29546940/parsec-ignore-everything-except-one-fragment You can use [`Replace.Megaparsec.findall`](https://hackage.haskell.org/package/replace-megaparsec/docs/Replace-Megaparsec.html#v:findAll) to find the substrings in a document which match a parser. ```haskell import Replace.Megaparsec import Text.Megaparsec let parseSelect :: Parsec Void String String parseSelect...
Ⓐ https://stackoverflow.com/questions/57667534/how-can-i-use-a-parser-in-haskell-to-find-the-locations-of-some-substrings-in-a ```haskell -- We can do this with the [`findAllCap`](https://hackage.haskell.org/package/replace-megaparsec/docs/Replace-Megaparsec.html#v:findAllCap) combinator from [replace-megaparsec](https://hackage.haskell.org/package/replace-megaparsec/). -- Requires packages `megaparsec, replace-megaparsec, containers` import Replace.Megaparsec import Text.Megaparsec import Text.Megaparsec.Char import Data.Maybe import Data.Either...
🞨 https://stackoverflow.com/questions/55709024/how-to-return-multiple-parsed-adts-in-parsec
🞨 https://stackoverflow.com/questions/54430701/how-to-make-a-sub-parser-with-parsec