[Haskell-cafe] Best way to return Bool based on a successful pattern match?

Nikita Karetnikov nikita at karetnikov.org
Mon Jul 13 12:02:07 UTC 2015

Looking at the instances defined for Bool and Either, I don't think
there's a higher level way of doing it.  But even if there's one, it'll
probably be more obscure than isLeft, which is in base since
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150713/dcb8f065/attachment.sig>

More information about the Haskell-Cafe mailing list