# Programming with indexed types using singletons

> Episode of [Iowa Type Theory Commute](https://podistic.com/podcast/iowa-type-theory-commute.md) · Published January 16, 2020 · Duration 11:49 · Episode 28, season 1

- **Listen on Podistic:** https://podistic.com/episode/programming-with-indexed-types-using-singletons
- **Audio:** https://www.buzzsprout.com/728558/episodes/2509138-programming-with-indexed-types-using-singletons.mp3 (audio/mpeg)

## About this episode

Basic idea of using singleton types like Nat n where n is a value from the index domain, to connect program expressions and index expressions.  The data value of type Nat n is a copy of n, but living in the syntactic category of program expressions.  This allows programs to operate on a proxy for n.  Singletons library in Haskell mentioned.
