>
> "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
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to