haskell-github-trust / replace-attoparsec

Stream editing with Haskell Attoparsec parsers
BSD 2-Clause "Simplified" License
14 stars 2 forks source link

try is unnecessary #5

Open jamesdbrock opened 3 years ago

jamesdbrock commented 3 years ago

https://github.com/jamesdbrock/replace-attoparsec/blob/188f43b751d1f55761ce2364e68f93e7e3eb12e5/src/Replace/Attoparsec/Text.hs#L279

try = id in attoparsec

https://hackage.haskell.org/package/attoparsec-0.14.1/docs/Data-Attoparsec-Text.html#v:try

But we should probably document explicitly that all of these parsers backtrack?