Re: Bug in Hugs, Haskell behavior question
"Ryan Ingram" <[email protected]> Fri, 4 Apr 2008 18:53:04 -0700
| Newsgroups | gmane.comp.lang.haskell.cafe,gmane.comp.lang.haskell.hugs.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 4/4/08, Fritz Ruehr <[email protected]> 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