[GHC] #6022: GHC infers over-general types
GHC
cvs-ghc at haskell.org
Thu Oct 11 10:23:48 CEST 2012
#6022: GHC infers over-general types
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.6.2
Component: Compiler | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by maeder):
Why is this not Haskell 98? Well, hugs rejects this:
{{{
- Cannot infer instance
*** Instance : Num ([a] -> a)
*** Expression : f
}}}
But I don't know why, it works with "hugs -98". I cannot make ghc reject
it, so ghc does not support Haskell 98!
In any case, I agree with "carter" that it should not be rejected (by
default). If you ignore
warnings like "no type signature" it is your own fault!
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6022#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list