Hi all,
I assume the following behavior has a trivial explanation.
When I write:
case name of
a - ...
b - ...
everything works fine.
But when I extract a and b to constants:
c_a = a :: String
c_b = b :: String
case name of
c_a - ...
c_b - ...
I get Patterns
On Dec 16, 2007, at 23:35 , Adam Smyczek wrote:
case name of
c_a - ...
c_b - ...
I get Patterns match(es) are overlapped.
You can't use arbitrary expressions in patterns; any name (not a data
constructor) used in one creates a new lambda binding (shadowing any
existing