
#9951: OverloadedLists breaks exhaustiveness check -------------------------------------+------------------------------------- Reporter: Feuerbach | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.4 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Feuerbach): Thanks Martin, that desugaring explains everything. I didn't know it was so simple. The cause of the difference you point is that the cons pattern, `_:_`, is not overloaded. The question then becomes, should there be some way to write the non- overloaded empty list constructor even when OverloadedLists is on? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9951#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler