[GHC] #13628: Confusing error message with TypeApplications already enabled
GHC
ghc-devs at haskell.org
Fri Apr 28 11:13:47 UTC 2017
#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 at a` (missing space, intended was `myFunction
@a`).
GHC 8.0.2 outputs:
{{{
Pattern syntax in expression context: myFunction at 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
More information about the ghc-tickets
mailing list