Ticket #5555 (closed feature request: fixed)
support qualified names for invoking a quasiquoter
| Reported by: | nfrisby | Owned by: | pcapriotti |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.1 |
| Component: | Compiler (Parser) | Version: | 7.0.3 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

