[GHC] #12565: unhelpful error message about enabling TypeApplications
GHC
ghc-devs at haskell.org
Sat Sep 3 10:37:01 UTC 2016
#12565: unhelpful error message about enabling TypeApplications
-------------------------------------+-------------------------------------
Reporter: mauke | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
{{{
% cat bug.hs
}}}
{{{#!hs
{-# LANGUAGE TypeApplications #-}
main = return (id@() ())
}}}
{{{
% ghc bug.hs
[1 of 1] Compiling Main ( bug.hs, bug.o )
bug.hs:2:16: error:
Pattern syntax in expression context: id@()
Did you mean to enable TypeApplications?
}}}
This error message makes no sense because `TypeApplications` is already
enabled.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12565>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list