splicing varPs in quasi-quote brackets

Christian Höner zu Siederdissen choener at tbi.univie.ac.at
Sat Mar 15 14:08:26 UTC 2014


Thanks Adam,

It indeed does work with a lambda, should've thought about it. So, it
seems splices in patterns are new in 7.8 (hadn't seen it in the notes).

Gruss,
Christian

* adam vogt <vogt.adam at gmail.com> [15.03.2014 05:12]:
> Hello Christian,
> 
> It seems new to me that $( ) is allowed in patterns. I would have used
> lamE in something like:
> 
> [| $(varE v) >>= return . SM.concatMapM $(lamE [varP v] (buildRns f
> (xs++[w]) ys))) |]
> 
> Regards,
> Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20140315/1576da8d/attachment.sig>


More information about the Glasgow-haskell-users mailing list