Because both bit0 and bit1 are free *local* variables
within the case expression. So, they have nothing
to do with your defined functions bit0 and bit1.

Best regards,

Salvador.

[EMAIL PROTECTED] wrote:

Can a kind soul please enlighten me on why f bit0 and f bit1 both return 0?



bit0 = False
bit1 = True
f x = case x of
bit0 -> 0
bit1 -> 1



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe



_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to