Ticket #107 (assigned enhancement)
Definition order should not be important in where block
| Reported by: | erikd | Owned by: | steggles |
|---|---|---|---|
| Priority: | project | Milestone: | _|_ |
| Component: | Source Semantics | Version: | 0.1.2 |
| Keywords: | Cc: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
