
#14547: Wrong warning by -Wincomplete-patterns -------------------------------------+------------------------------------- Reporter: YoshikuniJujo | Owner: (none) Type: bug | Status: patch Priority: low | Milestone: Component: Compiler | Version: 8.2.1 Resolution: | Keywords: incomplete- | patterns OverloadedLists, | PatternMatchWarnings TypeFamilies Operating System: Linux | Architecture: x86 Type of failure: Incorrect | Test Case: error/warning at compile-time | deSugar/should_compile/T14547 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4624 Wiki Page: | -------------------------------------+------------------------------------- Comment (by sighingnow): Replying to [comment:10 simonpj]: I misread your previous comment, my bad.
Bottom line: check for `NoRebindableSyntax`!
I have revised the Phab:D4624. Now when `RebindableSyntax` is enabled we treat the overloaded list pattern as ordinary view pattern. I have added some comments about this problem. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14547#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler