Ticket #107 (assigned enhancement)
Definition order should not be important in where block
|Reported by:||erikd||Owned by:||steggles|
Two almost identical functions below. The first parses successfully, the second fails.
compileSuccess :: Int -> Int compileSuccess x = x + y where -- This works becuase 'z' is defined before it is used. z = 4 y = 3 + z compileFail :: Int -> Int compileFail x = x + y where -- Using 'z' before it is defined fails. y = 3 + z z = 4
Note: See TracTickets for help on using tickets.