[GHC] #8026: DatatypeContexts should be fixed, not deprecated
GHC
ghc-devs at haskell.org
Tue Jul 2 12:28:24 CEST 2013
#8026: DatatypeContexts should be fixed, not deprecated
-------------------------------+--------------------------------------------
Reporter: gidyn | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-------------------------------+--------------------------------------------
Comment(by gidyn):
This might be a better example:
{{{
data Eq a => Pair a = Pair {x::a, y::a}
equal :: Pair a -> Bool
equal pair = (x pair) == (y pair)
}}}
Is there any way you can avoid a redundant {{{Eq a =>}}} in the definition
of {{{equal}}}, without adding a redundant pattern match?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/8026#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list