Ticket #2547 (closed feature request: fixed)

Opened 5 years ago

Last modified 5 years ago

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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

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

follow-up: ↓ 3   Changed 5 years ago by NeilMitchell

-XMagicHash is the answer.

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

  Changed 5 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.

in reply to: ↑ 1   Changed 5 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.

  Changed 5 years ago by simonpj

  • owner set to simonpj
  • difficulty set to Unknown

OK I'll improve the docs.

S

  Changed 5 years ago by simonpj

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

OK, done

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

Simon

  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.