hayleigh.dev 🏳️‍⚧️

Blog

Phantom Types in Gleam

Phantom types are a sneaky way to add extra information to your types without changing the runtime representation. In this post we'll look at how to define phantom types in Gleam and some of the ways they can be used.