# Phantom Types in Gleam

**URL:** <https://forum.devtalk.com/t/phantom-types-in-gleam/7448>\
**Category:** Blogs/Articles/Talks/Podcasts\
**Tags:** gleam, types, in-the-news\
**Created:** [28 February 2021 03:25 UTC](https://forum.devtalk.com/t/phantom-types-in-gleam/7448 "2021-02-28T03:25:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommunityNews](https://forum.devtalk.com/user_avatar/forum.devtalk.com/communitynews/32/1113_2.png) [@CommunityNews](https://forum.devtalk.com/u/CommunityNews)\
**Post date:** [28 February 2021 03:25 UTC](https://forum.devtalk.com/t/phantom-types-in-gleam/7448/1 "2021-02-28T03:25:20Z")

</div>

> In this post we’re going to be looking at a more advanced use of [Gleam](https://gleam.run/)’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 many languages support phantom types (most common functional programming languages support them, but so do others like Rust, and TypeScript, and even [PHP](https://marcosh.github.io/post/2020/05/26/phantom-types-in-php.html)) so you can apply this knowledge elsewhere!
> 
> Before we get stuck into some examples, let’s tackle the obvious question…

[https://blog.pd-andy.dev/phantom-types-in-gleam](https://blog.pd-andy.dev/phantom-types-in-gleam)

_This thread was posted by one of our members via one of our news source trackers._
