[Template-haskell] TH problem

Ch. A. Herrmann Christoph.Herrmann at uni-passau.de
Tue Dec 6 09:43:13 EST 2005


Hi Bulat,

the (:) is used as a pattern, not as an expression, but I'm not sure whether
there is a similar notation for (:) patterns using quotation brackets.
--
 Christoph

Bulat Ziganshin wrote:

>Hello Simon,
>
>Wednesday, November 30, 2005, 4:49:13 PM, you wrote:
>
>SPJ>      let pcons x xs = return $ InfixP x '(:) xs
>
>is not
>
>let pcons x xs = [| x:xs |]
>
>better?
>
>  
>



More information about the template-haskell mailing list