* Grigory Sarnitskiy <[email protected]> [2011-07-29 21:54:05+0400] > 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-Typeable.html#v:typeOf But be sure you *really* need this (or ask us if in doubt). -- Roman I. Cheplyaka :: http://ro-che.info/ _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
