hackertube.io

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

Tsoding · tutorial · Watch on YouTube

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

  1. “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”

  2. “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”

  3. “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