= vs ->

Ashley Yakeley ashley@semantic.org
Tue, 9 Oct 2001 23:44:40 -0700


At 2001-10-09 17:36, Mark Carroll wrote:

>So, for instance, how come function definitions and guards use "=" but
>lambdas and cases use "->"?

It's like this:

f x = fx

f = \x -> fx

f :: X -> FX

f x = case x of
  x' -> fx'
  x'' -> fx''

Make sense?

-- 
Ashley Yakeley, Seattle WA