Skip to content
HHackerTube.videoSurprise me

JSON Parser 100% From Scratch in Haskell (only 111 lines)

JSON Parser 100% From Scratch in Haskell (only 111 lines) on HackerTube: recommended by 3 Hacker News commenters across 3 separate months, 2020–2022.

Tsoding

tutorial · intermediate · evergreen

Open on YouTube

Tsoding live-codes a JSON parser from scratch in Haskell in about 111 lines, using only the standard library. It is an edited Twitch stream that explains the intuition behind parser combinators, functors, applicatives and monads.

Why Hacker News recommends it

HN recommends it as a hands-on way to understand Haskell and parser combinators by watching a parser get built live.

people recommended it
3
separate months
3
strong recommendations
0
discussed on HN
2020–2022
“this guy writes a json parser live, giving his intuition along the way. It's helped me immensely.”
— lubesGordi, Jul 2020, in “Basics of Haskell – Code and exercises”

What HN commenters said

4 Hacker News comments link this video. Each one links back to its thread.

ObiWanFrijolesMar 2022Recommends

Nice to see Tsoding on the front page. He has another great video that covers a bunch of topics while making a JSON parser with only the Haskell standard library: ▶ this video

in “What Is IO Monad? (2018) [video]” · View on HN

ducaaleSep 2020Recommends

I have recently discovered [tsoding twitch channel]( [link] ) which describes itself as Recreational programming. The topics range from webassembly and Game development to functional programming in haskell and ocaml. Some of the interesting random things I found there include: * [a parser combinator in haskell]( ▶ this video ) * [stack based language compiler in ocaml]( [link] ) You can find all the things that were done during the streams in [link] . You can also find his schedule at [link]

in “List of YouTube channels for improving web development and programming skills” · View on HN

lubesGordiJul 2020Recommends

Agreed! I've been trying to learn haskell for a long time, and this guy writes a json parser live, giving his intuition along the way. It's helped me immensely. ▶ this video

in “Basics of Haskell – Code and exercises” · View on HN

ducaaleAug 2020Cites it

To understand monads, I think it helps to know a language where expressing such a concept is more natural. Although I do not claim to know 100% what monads are yet, coming across these features made it easier for me to understand the concept a little bit. - Algebraic data types - OCaml's let expressions - F#'s computation expressions I also think that it is important to write something that naturally requires the use of monads. One thing that spring to mind is Parser Combinators. - [link] - ▶ this video

in “Inventing Monads” · View on HN

Topics & tags

Functional programmingCompilers, interpreters & program analysishaskelljson parserfunctional programmingmonadslive coding