[GHC] #14872: Hex Literals in GHC Core
GHC
ghc-devs at haskell.org
Mon Mar 19 16:38:52 UTC 2018
#14872: Hex Literals in GHC Core
-------------------------------------+-------------------------------------
Reporter: andrewthad | Owner: andrewthad
Type: feature request | Status: new
Priority: lowest | Milestone:
Component: Compiler | Version: 8.2.2
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari <ben@…>):
In [changeset:"a00b88b9a27736c9c41f1921fcb6b7759ad8425e/ghc" a00b88b/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="a00b88b9a27736c9c41f1921fcb6b7759ad8425e"
Implement -dword-hex-literals
Provide flag for showing showing Word# and Word64# as hexadecimal when
dumping GHC core. The only affects Word, not Int, and it prefixes the
hexadecimal with enough zeroes to make the total character count a power
of two. For example:
- 0x0C0C instead of 0xC0C
- 0x00BA00BA instead of 0xBA00BA
This also affects the presentation of Word# and Word64# in GHC's error
messages. It is not expected that the flag will be used for this, but
it is a side-effect worth noting.
Test Plan: none
Reviewers: bgamari, simonpj
Reviewed By: simonpj
Subscribers: simonpj, mpickering, rwbarton, thomie, carter, andrewthad
GHC Trac Issues: #14872
Differential Revision: https://phabricator.haskell.org/D4465
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14872#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list