N.K.Anil

1992-05-29 Thread N K Anil
paul Hudak in his 'gentle introduction to haskell" says that a where clause is allowed only at the top level of a set of equations or case expression. So you cannot declare let f x = z / y where z = x + y in I do not know the reason why this restriction has

Re: Pattern Binding

1992-05-29 Thread Kevin Hammond
> There are two issues going on here. > > 1. Should pattern variables be permitted in the guard? > ^^ > Haskell's reply: yes, but the result is always bottom. Technically, it's only bottom if the pattern variables are evaluated. This might seem

Re: N.K.Anil

1992-05-29 Thread jhf
| paul Hudak in his 'gentle introduction to haskell" says that a where clause | is allowed only at the top level of a set of equations or case expression. | | So you cannot declare | let | f x = z / y where z = x + y | in | | I do not know the reason why this restri

Re: Pattern Binding

1992-05-29 Thread Simon L Peyton Jones
There are two issues going on here. 1. Should pattern variables be permitted in the guard? ^^ Haskell's reply: yes, but the result is always bottom. After all, - you need to evaluate the guard to discover which RHS to