[Haskell-cafe] Hugs vs. GHCi
westondan at imageworks.com
Fri May 29 14:35:47 EDT 2009
"Pattern bindings are matched lazily; an implicit ~ makes these patterns
irrefutable. For example,
let (x,y) = undefined in e
does not cause an execution-time error until x or y is evaluated."
So GHCi is correct.
Vladimir Reshetnikov wrote:
> The following expression evaluates to 1 in GHCi, but results in an
> error in Hugs:
> let f x = let g y = [x,y] in (g 1, g ) in 1
> What is the correct behavior?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe