Opened 9 years ago

Closed 9 years ago

Last modified 8 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

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 Changed 9 years ago by NeilMitchell

-XMagicHash is the answer.

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

comment:2 Changed 9 years ago by tim

Component: CompilerDocumentation

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 9 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 9 years ago by simonpj

difficulty: Unknown
Owner: set to simonpj

OK I'll improve the docs.

S

comment:5 Changed 9 years ago by simonpj

Resolution: fixed
Status: newclosed

OK, done

Wed Aug 27 10:05:44 BST 2008  simonpj@microsoft.com
  * Improve documentation of MagicHash and primitive types generally (Trac #2547)

Simon

comment:6 Changed 8 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:7 Changed 8 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.