Sciweavers

2 search results - page 1 / 1
» TypeCase: a design pattern for type-indexed functions
Sort
View
HASKELL
2005
ACM
13 years 10 months ago
TypeCase: a design pattern for type-indexed functions
A type-indexed function is a function that is defined for each member of some family of types. Haskell’s type class mechanism provides collections of open type-indexed function...
Bruno C. D. S. Oliveira, Jeremy Gibbons
TLDI
2010
ACM
218views Formal Methods» more  TLDI 2010»
14 years 1 months ago
Pointwise generalized algebraic data types
In the GADT (Generalized Algebraic Data Types) type system, a pattern-matching branch can draw type information from both the scrutinee type and the data constructor type. Even th...
Chuan-kai Lin, Tim Sheard