2004
Strongly typed heterogeneous collections
Publication
Publication
A heterogeneous collection is a datatype that is capable of storing data of different types, while providing operations for look-up, update, iteration, and others. There are various kinds of heterogeneous collections, differing in representation, invariants, and access operations. We describe HList --- a Haskell library for strongly typed heterogeneous collections including extensible records. We illustrate HList's benefits in the context of type-safe database access in Haskell. The HList library relies on common extensions of Haskell 98. Our exploration raises interesting issues regarding Haskell's type system, in particular, avoidance of overlapping instances, and reification of type equality and type unification
Additional Metadata | |
---|---|
CWI | |
Software Engineering [SEN] | |
Organisation | Software Analysis and Transformation |
Kiselyov, O., Lämmel, R., & Schupke, K. (2004). Strongly typed heterogeneous collections. Software Engineering [SEN]. CWI. |