[Haskell-cafe] What does "1 = 2" mean in Haskell?

Harendra Kumar harendra.kumar at gmail.com
Fri Feb 24 03:41:17 UTC 2017


On 24 February 2017 at 08:45, Brandon Allbery <allbery.b at gmail.com> wrote:

> Literally the only use I've seen for this was a CCC puzzle. However, it is
> the trivial case of something that is more useful: pattern matching the
> result of an expression (say, a Data.Map.lookup when you know the key
> exists).
>

Can you explain how that will be useful (without a binding)? Will the
pattern match be ever actually tried when there is no binding?

-harendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170224/2834ff72/attachment.html>


More information about the Haskell-Cafe mailing list