Hayleigh Thompson's Blog

Hayleigh Thompson's Blog

Phantom Types in Gleam

Feb 26, 202125 min read 3.9K views

In this post we're going to be looking at a more advanced use of Gleam's type system, known as phantom types. Hopefully by the end of this you'll have another tool in your belt to help you better model data in your programs. And fear not, because man...