Ticket #4268 (new bug)

Opened 3 years ago

Last modified 6 months ago

Annotation extension needs a flag

Reported by: simonmar Owned by:
Priority: normal Milestone: 7.6.2
Component: Compiler Version: 7.0.4
Keywords: Cc: bgamari@…, juhp@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Other Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

There's no flag to enable the annotations extension, as far as I can tell.

Change History

Changed 3 years ago by igloo

  • owner set to igloo

Changed 3 years ago by igloo

Annotations are pragmas, which we haven't historically had extensions for. Some options:

  • Do nothing.
  • Ignore (but warn about) ANN pragmas if TemplateHaskell is off (I infer from the docs that they rely on TH). If they are a well-behaved pragma then ignoring them won't affect the correctness of the code.
  • Add an extension for annotations.
  • Add an extension for each pragma GHC knows about.

Changed 3 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Consensus was "do nothing".

Changed 21 months ago by nomeata

  • owner igloo deleted
  • status changed from closed to new
  • version changed from 6.12.3 to 7.0.4
  • resolution fixed deleted

Can you please reconsider option two? On Debian, we have several arches where ghci does not work. It is already a pitty that we cannot build any TH-using library there, but now we also have to remove anything using annotation, e.g. haskell-vector.

Thanks, Joachim

Changed 20 months ago by bgamari

  • cc bgamari@… added

Changed 17 months ago by igloo

  • milestone changed from 7.0.1 to 7.6.1

Changed 8 months ago by igloo

  • milestone changed from 7.6.1 to 7.6.2

Changed 6 months ago by juhpetersen

  • cc juhp@… added
Note: See TracTickets for help on using tickets.