Home/Programming/Functional Programming/Haskell/

Parsing

100%
Parser Combinators
Parser and State
End of File (`eof`)
ChatGPT - eof Parser Combinator Explainedchatgpt.com

Appears in 2 boards

  • Monad
  • Parsing
Parsing: A Case Study for Monads Usage
ChatGPT - Monads in Parsingchatgpt.com

Assuming this parsing function that parses fractions from a string:

What’s the benefit of implementing it using monads?

How does this align with the fact that the Parser constructor takes just a function?

Aris Goudouras
Note that `decimal`(the first parser in the chain) is a `Parser`, which encapsulates a function that takes a `string` as input. This aligns with what the expected input type is in our case.
Dec 4, 2024
JSON and ASTs
The `Object` type in aeson
ChatGPT - Haskell Object Type Explanationchatgpt.com
The `.:` operator in aeson
ChatGPT - Aeson .: Operator Explanationchatgpt.com