paint-brush
Attoparsec: The Clarity of Do-Syntaxby@james_32022
245 reads

Attoparsec: The Clarity of Do-Syntax

by James Bowen7mFebruary 21st, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In <a href="https://www.mmhaskell.com/blog/2018/2/19/applicative-parsing-ii-putting-the-pieces-together" target="_blank">last week’s article</a> we completed our look at the <a href="https://hackage.haskell.org/package/regex-applicative" target="_blank">Applicative Parsing</a> library. We took all our smaller combinators and put them together to parse our Gherkin syntax. This week, we’ll look at a new library: <a href="https://hackage.haskell.org/package/attoparsec" target="_blank">Attoparsec</a>. Instead of trying to do everything using a purely applicative structure, this library uses a monadic approach. This approach is much more common. It results in syntax that is simpler to read and understand. It will also make it easier for us to add certain features.

Company Mentioned

Mention Thumbnail
featured image - Attoparsec: The Clarity of Do-Syntax
James Bowen HackerNoon profile picture
James Bowen

James Bowen

@james_32022

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Bitcoininsider
Nichesitemastery