
#9824: Pattern quotations warn about unused matches -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.8.3 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Unknown | Type of failure: Blocked By: | None/Unknown Related Tickets: | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- If I say {{{ {-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fwarn-unused-matches #-} module Pat where foo = [p| (x, y) |] }}} I get {{{ Pat.hs:6:12: Warning: Defined but not used: ‘x’ Pat.hs:6:15: Warning: Defined but not used: ‘y’ }}} This is silly. Patch forthcoming. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9824 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler