[GHC] #7989: "No constructor has all these fields" message can be improved
GHC
ghc-devs at haskell.org
Mon Jun 17 12:42:59 CEST 2013
#7989: "No constructor has all these fields" message can be improved
---------------------------------+------------------------------------------
Reporter: akio | Owner:
Type: feature request | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: Other
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by monoidal):
Do you handle this situation?
{{{
data T = A { x,y :: Int} | B { y,z :: Int } | C { z,x :: Int}
f a = a { x=0, y=0, z=0 }
}}}
Error message here cannot mention only two fields.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7989#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list