u/clinton84in r/haskell • Recommends
#singletons#dependenttypes#type-levelprogramming
@rae: Using singleton types to replicate a length-indexed Vector
5K subscribers • 25 videos on Hallway
- Recommended by 2 people: 2 in engineering communities.
- Presented by Richard Eisenberg, Haskell researcher
- Linked in the descriptiongoldfirere/video-resources
Advanced. Deep dive for people who know the field.
1.8K views5 years ago2 recommendations
Programming languagesHaskellLanguage design and type systems
Richard Eisenberg demonstrates how to use singleton types in Haskell to implement a replicate function for length-indexed vectors.
This second video in my series on type-level programming with length-indexed vectors shows how fancy types help us to avoid programming errors. We also encounter the first time we need a singleton type to make progress, in the type of replicate. Previous video: youtu.be/PHS3Q-tRjFQ Final version of code in video: github.com/goldfirere/video-resources/tree/main/2021-04-20-v… Find me at richarde.dev/ or on Twitter at @RaeHaskellWhy it's here
2 people recommend thisWhat people say. Recommended as part of a series explaining type-level programming and dependent types in Haskell.
u/Kyraimionin r/haskell • Recommends
On “Video Tutorial: "Existentials and writing functions for length-indexed vectors" (Richard Eisenberg)”
u/Kyraimionin r/haskell • Recommends
On “Video: "Some functions on length-indexed vectors require custom GADTs" (Richard Eisenberg); Part 6 in the series on type level programming”
u/Kyraimionin r/haskell • Recommends
On “Video Tutorial: "How to program in types with length-indexed vectors: Part 1" (Richard Eisenberg)”
u/Kyraimionin r/haskell • Recommends
On “Video Tutorial: "Using proofs to make functions faster over length-indexed vectors" (Richard Eisenberg)”