#4168: Add StringPrimL to template-haskell
---------------------------------+------------------------------------------
    Reporter:  ekmett            |       Owner:              
        Type:  feature request   |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  6.12.3            |    Keywords:              
          Os:  Unknown/Multiple  |    Testcase:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 In designing a template haskell lexer, you cannot get the same performance
 as alex, due to the fact that you cannot encode a `"string"#` literal to
 house the lookup tables for the encoded lexer.

 Proposal: add `"string"#` literals to `template-haskell` as `StringPrimL`
 (or another suitable constructor) to Lit.

 Then the quasiquoter can emit a data type that contains `Addr#` references
 to the link-time-locatable `"string"#`s permitting constant folding and
 inlining away the particular link time choice of `Addr#`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4168>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to