[Haskell-cafe] why typeRepArgs (typeOf "hello") is [Char] ?

minh thu noteed at gmail.com
Mon Feb 2 15:09:19 EST 2009


Hello,

With Data.Typeable :

*Graph> typeRepArgs (typeOf 1)
[]
*Graph> typeRepArgs (typeOf 'a')
[]
*Graph> typeRepArgs (typeOf True)
[]
*Graph> typeRepArgs (typeOf "hello")
[Char]

I don't understand why the latter is not []. Could someone explain it ?

Thank you,
Thu


More information about the Haskell-Cafe mailing list