[Haskell-cafe] Introspection
Patrick Browne
patrick.browne at dit.ie
Fri Jul 22 11:18:28 CEST 2011
Is it possible to access type information and perform either of the
following in a Haskell program?
1) Find the type/class of a variable
e.g. a type predicate: is y of-type A, or is y of-Class A
2) Assert the type of a variable
e.g. if y.length > 100 then y is of type big.
Regards,
Pat
This message has been scanned for content and viruses by the DIT Information Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie
More information about the Haskell-Cafe
mailing list