[GHC] #10064: Add support for "foo"## literals to MagicHash
GHC
ghc-devs at haskell.org
Wed Feb 4 20:04:12 UTC 2015
#10064: Add support for "foo"## literals to MagicHash
-------------------------------------+-------------------------------------
Reporter: chadaustin | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.4
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by chadaustin):
Hi! I don't think it's exactly the same as #5218 since I don't
specifically need ByteStrings here, just a quick Int#, Addr# pair. But
#5218 could definitely be implemented on top of a mechanism that desugars
to this (e.g. unpackCStringLen "my literal"##).
If you'd like to merge the bugs, that's fine with me, as long as there's a
way to get at some machinery to generate string length Int#s at compile
time. :)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10064#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list