Skip to content

Instantly share code, notes, and snippets.

@jutememo
Created November 12, 2009 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jutememo/232576 to your computer and use it in GitHub Desktop.
Save jutememo/232576 to your computer and use it in GitHub Desktop.
module Main where
import State
import Counter
import Stack
next3 = next `comb_` next `comb_` next
push3 = push' 100 `comb_` push' 200 `comb_` push' 300
counter = Counter 0 1
stack = push 5 $ push 4 $ push 3 $ push 2 $ push 1 empty
main = do print $ next3 counter
print $ push3 stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment