International Symposium on Implementation and Application of Functional Languages, Date: 2007/09/27 - 2007/09/29, Location: Freiburg, Germany
Publication date:
2007-01-01
Pages:
233 -
251
Publisher:
Computing Laboratory, University of Kent; Canterbury, UK
Implementation and Application of Functional Languages
Author:
Schrijvers, Tom
Sulzmann, Martin ; Peyton Jones, Simon ; Chakravarty, Manuel ; Chitil, O
Keywords:
Haskell, type functions, type families, type checking
Abstract:
We report on an extension of Haskell with type(-level) functions and equality constraints. We illustrate their usefulness in the context of phantom types, GADTs and type classes. Problems in the context of type checking are identified and we sketch our solution: a decidable type checking algorithm for a restricted class of type functions. Moreover, functional dependencies are now obsolete: we show how they can be encoded as type functions.