u/ChrisPennerin r/haskell • Recommends
Chris Penner - Intro to Higher Kinded Data Types
#haskell#higher-kindeddata#barbies
978 subscribers • 6 videos on Hallway
Advanced. Deep dive for people who know the field.
2.3K views5 years ago1 recommendation
Programming languagesSoftware designHaskellLanguage design and type systemsDesign patterns
Chris Penner introduces Higher Kinded Datatypes in Haskell, demonstrating how to parameterize data types over container types for greater flexibility.
My example-driven talk will introduce and explore “Higher Kinded Datatypes” (HKDs), a novel approach to parameterizing data types which allows greater flexibility, re-use, and improved type-safety when performing common tasks on data. While many data types are parameterized over the values in the type; HKDs are generalized over a container type which wraps each field. This approach also allows us to “zip” record fields in a type-safe way, allowing us to append structured error messages to parsers among many other things. It is a surprisingly versatile technique, which hasn’t yet received the attention it deserves. The talk may also cover practical developments in this area such as the barbies HKD combinator library and the derivable “Generics” representation of this idea a’la higgledy, both of which make writing practical everyday code using HKDs much easier. bobkonf.de/2021/penner.htmlWhat people say. Recommended as an excellent, example-driven introduction to Higher Kinded Datatypes in Haskell.
u/ChrisPennerin r/haskell • Recommends