#2748: Fundep-laden code compiled and ran fine in 6.8, fails in 6.10
---------------------------------+------------------------------------------
Reporter: sedillard | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution: invalid
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonpj):
Type functions might help. Instead of
{{{
class C a b | a->b
instance C [a] (Bool,a,a,a)
f :: C [a] x => a -> x
}}}
(you'll see I chose a verbose type), you'd write
{{{
class C a where
type F a
...
instance C [a] where
type F Int = (Bool,a,a,a)
...
f :: C [a] => a -> F a
}}}
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2748#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs