[Haskell-cafe] Polymorphic variants

Josef Svenningsson josef.svenningsson at gmail.com
Wed Jul 25 19:07:23 EDT 2007


On 7/26/07, Jon Harrop <jon at ffconsultancy.com> wrote:
>
> Does Haskell have anything similar to OCaml's polymorphic variants?
>

No as such, but it's possible to simulate them. As always Oleg was the
one to demonstrate how:
http://okmij.org/ftp/Haskell/generics.html

Cheers,

Josef


More information about the Haskell-Cafe mailing list