[Haskell-cafe] From records to a type class

Stephen Tetley stephen.tetley at gmail.com
Sat Jan 16 03:27:33 EST 2010


Hi Taru

If you haven't obviously got dispatch on type then records are certainly fine.

Some obigatory examples:

http://www.cas.mcmaster.ca/~kahl/Publications/TR/2000-01/Kahl-Braun-Scheffczyk-2000a.pdf
(see the Editor type page 13)

http://www.cas.mcmaster.ca/~kahl/Publications/Conf/Kahl-1999a.pdf

http://web.cecs.pdx.edu/~sheard/papers/JfpPearl.ps

Parsec's Text.ParserCombinators.Parsec.Token module is an example that
has seen widespread use.

http://hackage.haskell.org/packages/archive/parsec/2.1.0.1/doc/html/Text-ParserCombinators-Parsec-Token.html


Best wishes

Stephen


More information about the Haskell-Cafe mailing list