JSON Parser 100% From Scratch in Haskell (only 111 lines)
What it is
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.
- 3 people recommended it
- 3 different months
- 0 strong recommendations
- first 2020, last 2022
What HN commenters said
“this guy writes a json parser live, giving his intuition along the way. It's helped me immensely.”
Live-coded JSON parser in Haskell with intuition explained.
lubesGordi, 2020-07 · Recommendation · in “Basics of Haskell – Code and exercises”
“Some of the interesting random things I found there include”
Parser combinator in Haskell from Tsoding's streams.
ducaale, 2020-09 · Recommendation · in “List of YouTube channels for improving web development and programming skills”
“He has another great video that covers a bunch of topics while making a JSON parser with only the Haskell standard library”
JSON parser using only Haskell standard library.
ObiWanFrijoles, 2022-03 · Recommendation · in “What Is IO Monad? (2018) [video]”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: haskell, json parser, functional programming, monads, live coding
Also recommended by the same people
interviewHow Big is Graham's Number? (feat Ron Graham)Numberphile · 4 HN recommenders · 2014–2024
talkRuby Conf 12 - Y Not- Adventures in Functional Programming by Jim WeirichConfreaks · 17 HN recommenders · 2013–2026
talkThe Soul of Erlang and Elixir • Sasa Juric • GOTO 2019GOTO Conferences · 16 HN recommenders · 2019–2024
talk"Simple Made Easy" - Rich Hickey (2011)Strange Loop Conference · 14 HN recommenders · 2022–2026
talk"Making Impossible States Impossible" by Richard Feldmanelm-conf · 9 HN recommenders · 2017–2026
talkWilliam Byrd on "The Most Beautiful Program Ever Written" [PWL NYC]PapersWeLove · 11 HN recommenders · 2017–2026
talkThe Value of Values with Rich HickeyInfoQ · 10 HN recommenders · 2014–2023
talkWhy Isn't Functional Programming the Norm? – Richard FeldmanMetosin · 12 HN recommenders · 2019–2025