Hello!

On Thu, Jan 28, 1999 at 06:34:26AM -0800, Simon Peyton-Jones wrote:
> [...]

> <li> Fix defn of <tt>range</tt> for <tt>Int</tt>, <tt>Integer</tt>,
> <tt>Char</tt>.
> With Haskell 98 dot-dot notation, we must write:
> <pre>
>   range (m,n)
>       | m < n         = [m..n]
>       | otherwise     = []
> </pre>

Shouldn't the condition of the first guard be "m <= n"?

> [...]

Regards, Felix.


Reply via email to