Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#2547 closed feature request (fixed)

No -X flag for unboxed types

Reported by: tim Owned by: simonpj
Priority: normal Milestone:
Component: Documentation Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

There doesn't seem to be a separate -X flag for unboxed types; there is one for unboxed tuples, but it seems like Int#, Char# and the rest can only be gotten at with -fglasgow-exts.

Change History (7)

comment:1 follow-up: Changed 7 years ago by NeilMitchell

-XMagicHash is the answer.

I have no idea where the documentation is, and neither does Google...

comment:2 Changed 7 years ago by tim

  • Component changed from Compiler to Documentation

Oh, well, that was obvious! :-) Section 5.17.12 just describes this flag as "Enable the 'magic hash'," which would have been completely unhelpful to me. So perhaps a documentation change is in order.

comment:3 in reply to: ↑ 1 Changed 7 years ago by duncan

Replying to NeilMitchell:

-XMagicHash is the answer.

I have no idea where the documentation is, and neither does Google...

I should like to note that I am now enforcing that all new language extensions registered in Language.Haskell.Extension require haddock documentation including an explanation and examples. Ian was the first victim of my enforcement earlier today when he registered the PackageImports extension. :-)

Hopefully this will help google and hoogle and become a useful reference. Obviously this will require copying out documentation from various places for all the existing extensions.

comment:4 Changed 7 years ago by simonpj

  • difficulty set to Unknown
  • Owner set to simonpj

OK I'll improve the docs.

S

comment:5 Changed 7 years ago by simonpj

  • Resolution set to fixed
  • Status changed from new to closed

OK, done

Wed Aug 27 10:05:44 BST 2008  [email protected]
  * Improve documentation of MagicHash and primitive types generally (Trac #2547)

Simon

comment:6 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:7 Changed 6 years ago by simonmar

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