#4372: Extending quasiquotation support
---------------------------------+------------------------------------------
    Reporter:  simonpj           |        Owner:              
        Type:  bug               |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  Template Haskell  |      Version:  6.12.3      
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by snoyberg):

 * cc: mich...@… (added)


Comment:

 Just to add another use case: Hamlet uses quasi-quotation for HTML
 templates. There are currently two parameters to the hamletWithSettings
 function: whether to close tags like HTML or XHTML (eg, <br> vs <br/>) and
 the doctype. Hamlet itself defines two quasi-quoters built on
 hamletWithSettings: hamlet and xhamlet.

 But it's easily imaginable that someone will want to create some other
 combination (such as HTML 3.2) that is not currently provided. Currently,
 they would need to define their new quasi-quoter in a separate module;
 this proposal would appear to make that process a little bit nicer.

 In fact, if I understand the proposal properly, I had originally assumed
 this ''is'' how quasi-quoters worked and was surprised when the compiler
 disagreed with me ;).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4372#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to