[GHC] #10104: Show '#' on unboxed literals
GHC
ghc-devs at haskell.org
Fri Feb 20 23:26:54 UTC 2015
#10104: Show '#' on unboxed literals
-------------------------------------+-------------------------------------
Reporter: thomie | Owner:
Type: feature | Status: new
request | Milestone: 7.12.1
Priority: normal | Version: 7.8.4
Component: Compiler | Operating System: Unknown/Multiple
Keywords: | Type of failure: None/Unknown
Architecture: | Blocked By:
Unknown/Multiple | Related Tickets: #8274
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Currently, unboxed literals are shown in the same way as boxed literals
(without #):
{{{
Prelude> :set -XMagicHash
Prelude> :m GHC.Prim
Prelude GHC.Prim> data T = MkT Int# deriving Show
Prelude GHC.Prim> MkT 3#
MkT 3
}}}
It would be nice if this would show `MkT 3#` instead. I have a patch.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10104>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list