Hugs  and  ghc  compile differently the program

  type K = Int

  f :: Num K => [K] -> Bool 
  f             _   =  True

Its origin is a typo: K instead of k.

Hugs  compiles this silently, and  ghc  reports an error.
The error report looks better.
But what is the Haskell-98 idea about this?


------------------
Sergey Mechveliani
[EMAIL PROTECTED]

Reply via email to