[GHC] #9824: Pattern quotations warn about unused matches
#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
#9824: Pattern quotations warn about unused matches -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template | Version: 7.8.3 Haskell | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"3b3944f9a1cf7d89dccf742d7449402cca31ba5a/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="3b3944f9a1cf7d89dccf742d7449402cca31ba5a" Test #9824 in th/T9824 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9824#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9824: Pattern quotations warn about unused matches -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template | Version: 7.8.3 Haskell | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"bc05354949dce9d3b56353d3310eb9804d4e17f5/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="bc05354949dce9d3b56353d3310eb9804d4e17f5" Fix #9824 by not warning about unused matches in pattern quotes. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9824#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9824: Pattern quotations warn about unused matches -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template | Version: 7.8.3 Haskell | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: th/T9824 | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => closed * testcase: => th/T9824 * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9824#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC