Re: Splices returning splices

2015-03-23 Thread J. Garrett Morris
On Mon, Mar 23, 2015 at 3:43 PM, Simon Peyton Jones wrote: > A quasiquoter is really a splice. That is [foo| blah |] is the same as > $(foo "blah"). So it might be easier to discuss your question in the > context of ordinary splices and quotes. You want foo to return code > with a splice, thus:

RE: Splices returning splices

2015-03-23 Thread Simon Peyton Jones
skell-users [mailto:glasgow-haskell-users- | boun...@haskell.org] On Behalf Of J. Garrett Morris | Sent: 23 March 2015 12:47 | To: GHC users | Subject: Splices returning splices | | Hello, | | I'm attempting to write a quasiquoter with relatively full antiquotation | support. In

Splices returning splices

2015-03-23 Thread J. Garrett Morris
Hello, I'm attempting to write a quasiquoter with relatively full antiquotation support. In doing so, I've arrived at I think an odd problem: the expression grammar in Language.Haskell.TH.Syntax doesn't seem to include splices. This seems to mean that my antiquotations can't themselves include s