[GHC] #13628: Confusing error message with TypeApplications already enabled

#13628: Confusing error message with TypeApplications already enabled -------------------------------------+------------------------------------- Reporter: nh2 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Poor/confusing Unknown/Multiple | error message Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I have `{-# LANGUAGE TypeApplications #-}` in my file, and accidentally wrote a typo: `myFunction@a` (missing space, intended was `myFunction @a`). GHC 8.0.2 outputs: {{{ Pattern syntax in expression context: myFunction@a Did you mean to enable TypeApplications? }}} I already have TypeApplications on, why does GHC suggest this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13628 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13628: Confusing error message with TypeApplications already enabled -------------------------------------+------------------------------------- Reporter: nh2 | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Poor/confusing | Unknown/Multiple error message | Test Case: Blocked By: | Blocking: Related Tickets: #12879 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => closed * resolution: => duplicate * related: => #12879 Comment: Thankfully, this is fixed in GHC 8.2.1, where you get this error message instead: {{{ Pattern syntax in expression context: myFunction@a Type application syntax requires a space before '@' }}} See #12879 for the original ticket. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13628#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC