[GHC] #5218: Add unpackCStringLen# to create Strings from string literals

GHC cvs-ghc at haskell.org
Tue Jun 14 12:41:07 CEST 2011


#5218: Add unpackCStringLen# to create Strings from string literals
---------------------------------+------------------------------------------
    Reporter:  tibbe             |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  high              |    Milestone:  7.4.1       
   Component:  Compiler          |      Version:  7.0.3       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonmar):

 I think we want to do both - the two solutions are complementary.

 For large ByteString literals, such as when you've serialised and gzipped
 a data structure for unpacking at runtime, the quasiquotation syntax makes
 perfect sense.

 However, some people want to write ByteString literals using string
 syntax, and to not have to use TH just for one of these small literals (TH
 is seen as a heavyweight dependency if you haven't already bought in).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5218#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list