[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


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?


More information about the Beginners mailing list