[GHC] #9183: GHC shouldn't expand constraint synonyms
GHC
ghc-devs at haskell.org
Wed Jun 11 13:35:17 UTC 2014
#9183: GHC shouldn't expand constraint synonyms
-------------------------------------+------------------------------------
Reporter: Feuerbach | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by goldfire):
You can do the `MyConstraint` trick today:
{{{
class (Show a, Eq a, Num a) => MyConstraint a
instance (Show a, Eq a, Num a) => MyConstraint a
}}}
Haven't tested this in error messages, exactly, but my guess is that it
will behave better.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9183#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list