21 Dec 18:28
Re: nice simple problem for someone struggling....
Brent Yorgey <byorgey <at> gmail.com>
2007-12-21 17:28:43 GMT
2007-12-21 17:28:43 GMT
now looks dubious....I want it to be something like
"class ShapeInterface shape where
area :: shape->Int"
"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
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed