
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

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
On Thu, Jan 18, 2001 at 04:04:01PM -0800, Ashley Yakeley wrote:
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?
Yes, when hugs is invoked, invoke it with the -98 option to turn off the strict Haskell 98 compliance. Cheers, Bill
participants (2)
-
Ashley Yakeley
-
William Lee Irwin III