Skip to content
0:00 / 0:00

#haskell#higher-kindeddata#barbies

BOB 2021 Chris Penner - Higher Kinded Data Types By Example

BOBKonf

978 subscribers • 7 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Chris Penner

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.html

Why it's here

1 person recommends this

What people say. Recommended as an excellent, example-driven introduction to Higher Kinded Datatypes in Haskell.

u/ChrisPennerin r/haskell • Recommends

Chris Penner - Intro to Higher Kinded Data Types