Skip to content

Commit

Permalink
modified seq example
Browse files Browse the repository at this point in the history
  • Loading branch information
bjpop committed Aug 18, 2009
1 parent 3c6250e commit cb8dfea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/seq.stg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# haskell: main = let x = 1 + 2 in seq x (foo x)
main = THUNK(let {x = THUNK(plusInt one two);
res = THUNK(foo x)} in seq x res);

# compare with
# haskell: main = foo (1 + 2)
# main = THUNK(let {x = THUNK(plusInt one two) } in foo x);


foo = FUN(x -> three)

0 comments on commit cb8dfea

Please sign in to comment.