Skip to content

Instantly share code, notes, and snippets.

View entrypointkr's full-sized avatar

Junhyung Im entrypointkr

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