[Haskell-cafe] 1 = 0?
roma at ro-che.info
Tue Jun 17 10:51:19 UTC 2014
* Alexey Muranov <alexey.muranov at gmail.com> [2014-06-17 03:25:10-0700]
> Is this the expected behavior that
> 1 = 0
> does not raise any error? What does this mean?
1 is a valid (nullary) pattern, so yes. This pattern binding obviously fails.
Prelude> let x at 1 = 0
*** Exception: <interactive>:2:5-11: Irrefutable pattern failed for pattern x at 1
More information about the Haskell-Cafe