[Haskell-cafe] Bug in Hugs, Haskell behavior question

Ryan Ingram ryani.spam at gmail.com
Fri Apr 4 21:53:04 EDT 2008

On 4/4/08, Fritz Ruehr <fruehr at willamette.edu> wrote:
> In fact, even this goes through without a hitch!
>        2 = 3

This is hilarious.

Maybe bindings that don't actually bind anything should be an error?
Or at least a warning?

In ghci:

Prelude> let 2 = 3
-- no problem
Prelude> let (2,x) = (3,4)
-- no problem
Prelude> x
*** Exception: <interactive>:1:4-16: Irrefutable pattern match failed
for pattern (2,x)

  -- ryan

More information about the Haskell-Cafe mailing list