[GHC] #3018: Constraints of function in record appears to nullifiy
instance constraints.
GHC
trac at galois.com
Wed Feb 11 10:46:28 EST 2009
#3018: Constraints of function in record appears to nullifiy instance constraints.
-----------------------------+----------------------------------------------
Reporter: ben.kavanagh | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
If an field of a record that has constraints in its type, defining a value
for this field appears to cause the compiler to ignore outer level
constraints declared for an instance.
This problem restricts generic functions written in syb-with-class and
replib style to functions that do not have constraints.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3018>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list