Skip to content

Instantly share code, notes, and snippets.

View github-dimitri-ho's full-sized avatar

Dimitri Ho github-dimitri-ho

  • Teads
View GitHub Profile
@smarter
smarter / gadt.md
Last active March 6, 2024 23:33
GADTs in Scala

Generalized Algebraic Data Types in Scala

Basic GADTs

Here's an ADT which is not a GADT, in Haskell:

data Expr = IntExpr Int | BoolExpr Bool