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 September 6, 2024 17:18
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