[GHC] #12371: Error message, room for improvement
#12371: Error message, room for improvement -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple TypeApplications | Architecture: | Type of failure: Incorrect Unknown/Multiple | warning at compile-time Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{ $ ghci -ignore-dot-ghci GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help Prelude> :set -XPatternSynonyms Prelude> :set -XViewPatterns Prelude> pattern Foo a <- ((\uncons -> Just (a, as) -> a) -> a) <interactive>:3:20: error: Pattern syntax in expression context: \ uncons -> Just (a, as) -> a Did you mean to enable TypeApplications? }}} Let's: {{{ Prelude> :set -XTypeApplications Prelude> pattern Foo a <- ((\uncons -> Just (a, as) -> a) -> a) <interactive>:5:20: error: Pattern syntax in expression context: \ uncons -> Just (a, as) -> a Did you mean to enable TypeApplications? Prelude> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12371> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12371: Error message, room for improvement -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: | TypeApplications Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => merge Comment: Fixed in HEAD by {{{ commit e38c07bf5ceb8f50fa5110b70b3b83f0ce1358ba Author: Matthew Pickering <matthewtpickering@gmail.com> Date: Thu Feb 25 15:51:46 2016 +0100 Improve accuracy of suggestion to use TypeApplications The suggestion only makes sense when we try to use an as pattern in an expression context. It is misleading in the case of a lazy pattern and view pattern. }}} May be worth merging? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12371#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12371: Error message, room for improvement -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: | TypeApplications Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): I think so -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12371#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12371: Error message, room for improvement -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: | TypeApplications Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed * milestone: => 8.0.2 Comment: Merged to `ghc-8.0` as 02415404ab26a5f12dffd9c98f2a923dbdde2329. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12371#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC