#2876: Inconsistent error message
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution: worksforme
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by simonpj):
* status: new => closed
* difficulty: => Unknown
* resolution: => worksforme
Comment:
This looks ok to me in the 6.10 branch sources, and when running GHC
6.10.1 on this program
{{{
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies,
FlexibleInstances #-}
module Foo where
class C a b | a->b
instance C [a] d
}}}
I get
{{{
bash-3.2$ ghc -c Foo.hs
Foo.hs:6:0:
Illegal instance declaration for `C [a] d'
(the Coverage Condition fails for one of the functional
dependencies;
Use -XUndecidableInstances to permit this)
In the instance declaration for `C [a] d'
}}}
Are you sure you are using 6.10? If so, re-open this bug with more info.
Thanks.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2876#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs