[Haskell-cafe] nice simple problem for someone struggling....
Brent Yorgey
byorgey at gmail.com
Fri Dec 21 12:28:43 EST 2007
>
> "class ShapeInterface shape where
> area :: shape->Int"
>
> now looks dubious....I want it to be something like
>
> "class ShapeInterface shape where
> area :: Num numberType => shape->Int" ?
>
Rather, I think you probably want
class ShapeInterface shape where
area :: Num numberType => shape -> numberType
-Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071221/28476c16/attachment.htm
More information about the Haskell-Cafe
mailing list