[Haskell-cafe] Data.Generics: how do I get the type name of a value?

Alistair Bayley alistair at abayley.org
Fri Dec 14 10:25:39 EST 2007


On 14/12/2007, Neil Mitchell <ndmitchell at gmail.com> wrote:
>
> > http://haskell.org/hoogle/?q=typeOf
>
> Another great thing is that this bit also works in Hugs, while the
> Data.Generics stuff is GHC only.

Great, thanks. Didn't occur to me to look further up the class hierarchy :-)

Alistair


More information about the Haskell-Cafe mailing list