[Haskell-beginners] Unit numeric type pattern

Stephen Tetley stephen.tetley at gmail.com
Tue Jun 21 16:37:58 CEST 2011


I'd read it as the valid units are numeric types like "Int" or
"Rational" ("unit" here being synonymous with "type").

GHC's error messages are not always intuitive. I think the GHC
developers had a sweep through some of them a year or two ago trying
to find more self-explanatory messages.



More information about the Beginners mailing list