Opened 15 months ago

Last modified 15 months ago

#12565 new bug

unhelpful error message about enabling TypeApplications

Reported by: mauke Owned by: goldfire
Priority: normal Milestone:
Component: Compiler Version: 8.0.1
Keywords: TypeApplications Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

% cat bug.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.

Change History (1)

comment:1 Changed 15 months ago by goldfire

Keywords: TypeApplications added
Owner: set to goldfire
Note: See TracTickets for help on using tickets.