[Haskell-beginners] how to make something Typeable, for Data.Dynamic?

Rob Nikander rob.nikander at gmail.com
Mon Apr 4 23:16:57 CEST 2011


Hi,

Can someone show me a code snippet that would make a simple record
type Typeable so I can wrap one in a Data.Dynamic?  I'm looking at the
haddock docs and I don't see how to do it.  I know to define "typeOf
:: MyRecord -> TypeRep".  But how to make a TypeRep?

thanks,
Rob



More information about the Beginners mailing list