instances of Typable
25 Jul
2002
25 Jul
'02
4:47 p.m.
if I have newtype Foo = Foo Int and i want to make it an instance of typeable, how do I create a TypeRep object? - Hal -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume
25 Jul
25 Jul
11:30 p.m.
Hal Daume III wrote:
if I have
newtype Foo = Foo Int
and i want to make it an instance of typeable, how do I create a TypeRep object?
fooTc :: TyCon fooTc = mkTyCon "Foo" instance Typeable Foo where typeOf _ = mkAppTy fooTc [] -- Glynn Clements <glynn.clements@virgin.net>
8812
Age (days ago)
8812
Last active (days ago)
1 comments
2 participants
participants (2)
-
Glynn Clements -
Hal Daume III