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