At 2001-01-18 15:57, William Lee Irwin III wrote:

>class C a where
>       fun :: a -> Integer
>
>instance Integral a => C a where
>       fun = toInteger . succ

Gives "syntax error in instance head (constructor expected)" at the 
'instance' line in Hugs. Is there a option I need to turn on or something?

-- 
Ashley Yakeley, Seattle WA


_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to