[Haskell-cafe] Non-recursive let [Was: GHC bug? Let with guardsloops]

Richard A. O'Keefe ok at cs.otago.ac.nz
Thu Jul 11 06:47:06 CEST 2013


On 11/07/2013, at 11:09 AM, Donn Cave wrote:

> let x = t + 1 in
>      let y = x in
>          let x = y + 1 in x
> 

Still no cigar.
nhc98 v1.16
Program:
main = print $ (let t = 0 in let x = t + 1 in let y = x in let x = y + 1 in x)
Output:
2





More information about the Haskell-Cafe mailing list