@mhwombat

Type Classes with Functional Dependencies

. Programming Languages and Systems, volume 1782 of Lecture Notes in Computer Science, Springer Berlin Heidelberg, (2000)
DOI: 10.1007/3-540-46425-5_15

Abstract

Type classes in Haskell allow programmers to define functions that can be used on a set of different types, with a potentially different implementation in each case. For example, type classes are used to support equality and numeric types, and for monadic programming. A commonly requested extension to support ‘multiple parameters’ allows a more general interpretation of classes as relations on types, and has many potentially useful applications. Unfortunately, many of these examples do not work well in practice, leading to ambiguities and inaccuracies in inferred types and delaying the detection of type errors.

Links and resources

Tags

community

  • @mhwombat
  • @dblp
@mhwombat's tags highlighted