• Andrew Martin's avatar
    Implement -dword-hex-literals · a00b88b9
    Andrew Martin authored
    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
DynFlags.hs 231 KB