Haskell's Kind System Lets You Microwave Any Bowl

Types of types: Haskell's Kind system

While adding typed configuration to his Redis server clone, the author explores Haskell's Kind system from values to types to kinds. He explains higher-kinded types (HKTs) and higher-kinded data (HKD), showing how a single data type can serve as a default config, a partial form, or a set of labels by varying the type constructor. The bowl analogy makes it clear: certify the bowl, not the soup.

In non-technical terms, take a bowl for eating. Make the bowl itself microwave-safe and you can use it to warm any food you put in it.
  1. adamddev1

    The more of Haskell's ideas that bleed into mainstream languages, the happier the world will become. It is just so beautiful how these higher abstractions can become so useful and powerful for tying all kinds of things together.

  2. i2talics

    I've long suspected that one of the things that makes monads notoriously difficult to explain to people outside of the Haskell ecosystem is that very few other languages even have a kind system that you are allowed to manipulate in code (and in some, like C++, it's so esoteric that you basically never see it). First explaining that you can even abstract over "type->type" kinded things gets you a lot of the way towards monads without actually describing monads.

  3. deterministic

    My main problem with Haskell is that it never fully embraced dependent types. Instead, it kept adding one type system extension after another, making the language unnecessarily complicated.

    I used to be a big Haskell fan, until I discovered languages like Lean, Agda, and Idris 2 and realized how much cleaner and more coherent the whole thing could be with dependent types built in from the start.

    I highly recommend Haskell fans explore Lean/Agda/Idris. They make Haskell feel like a pile of spaghetti by comparison.

  4. vatsachak

    One thing I've noticed since I've become an engineer who gets to design the architecture:

    No matter what I do, eventually algebraic structures like semi-groups and monads along with categorical structure like lenses and traversals keep popping up.

  5. cbsmith

    Missed opportunity to say "Kinds of kindness". ;-)

More from this day

2026-10-17