
29 Jul
2011
29 Jul
'11
2:04 p.m.
* Grigory Sarnitskiy
It is not possible in Haskell, moreover it seems to be too alien to Haskell. Nevertheless, is there an extension which would allow to write a function that returns the type of its argument?
Sounds like you want typeOf. http://hackage.haskell.org/packages/archive/base/latest/doc/html/Data-Typeab... But be sure you *really* need this (or ask us if in doubt). -- Roman I. Cheplyaka :: http://ro-che.info/