#5555: support qualified names for invoking a quasiquoter
---------------------------------+------------------------------------------
    Reporter:  nfrisby           |       Owner:                   
        Type:  feature request   |      Status:  new              
    Priority:  normal            |   Component:  Compiler (Parser)
     Version:  7.0.3             |    Keywords:                   
    Testcase:                    |   Blockedby:                   
          Os:  Unknown/Multiple  |    Blocking:                   
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown     
---------------------------------+------------------------------------------
 Consider

 {{{
 module M

 import qualified A (qq)
 import qualified B (qq)
 }}}

 In 7.0.3, the quasiquotation syntax `[A.qq|...|]` is rejected with
 {{{parse error on input `A.qq'}}}.

 Because of the stage-restriction, the only option is to create an
 auxiliary module

 {{{
 module AB where

 import qualified A; import qualified B

 qqA = A.qq
 qqB = B.qq
 }}}

 and import that into `M`. This is a pretty heavy-weight workaround.

 Is there a reason qualified names are disallowed for invoking a
 quasiquoter?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5555>
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