hayleigh.dev 🏳️‍⚧️

Hi, I'm Hayleigh!

I'm a web developer and developer relations engineer stuck based in the UK. I build communities and write incredible docs . Interested? Let's chat!

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.