Ticket #1297 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

No LANGUAGE option for # in symbols

Reported by: neil Owned by:
Priority: high Milestone: 6.8.1
Component: Compiler Version: 6.6
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: read034, read046, read047 Blocked By:
Blocking: Related Tickets:

Description

The LANGUAGE pragma is the new recommended way of saying which features you want (I think), but there is no value that corresponds to allowing # in symbols (i.e. unsafeCoerce#) - meaning OPTIONS_GHC has to be used in this case.

Change History

Changed 6 years ago by malcolm.wallace@…

Of course, for unsafeCoerce# in particular, you can now use the standard name without a #, by importing from Unsafe.Coerce. But in general, if you want to write unboxed values in the Glasgow Haskell language, it would indeed be good to have a pragma to describe it. How about LANGUAGE Unboxed?

Changed 6 years ago by igloo

  • milestone set to 6.8

I think something like MagicHash? would be a better name than Unboxed, as the actual extension is that # can count as either a letter or a symbol. Who's meant to decide these things?

Changed 6 years ago by igloo

  • priority changed from normal to high

Changed 6 years ago by igloo

  • status changed from new to closed
  • testcase set to read034, read046, read047
  • resolution set to fixed

MagicHash extension now added to Cabal and GHC HEAD.

Changed 6 years ago by igloo

  • milestone changed from 6.8 branch to 6.8.1

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.