Template Haskell: 'foo in patterns?

Conal Elliott conal at conal.net
Tue Jan 24 06:58:32 CET 2012

If I understand correctly, 'foo, of type Name, is a constant value in any
given context. And yet it doesn't appear to be allowed in patterns, thus
leading to awkwardly explicit use of variables and equality guards in
otherwise pattern-matching code. Are there reasons not to allow 'foo in

-- Conal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20120123/fcaf5a24/attachment.htm>

More information about the Libraries mailing list