Skip to content

Instantly share code, notes, and snippets.

@ramirez7
Last active September 21, 2016 03:34
Show Gist options
  • Select an option

  • Save ramirez7/9377636 to your computer and use it in GitHub Desktop.

Select an option

Save ramirez7/9377636 to your computer and use it in GitHub Desktop.
main = let inputs = [InputAction Immediate $ getGpioRisingEdge ()]
initial = cycle "GO PURDUE! "
update _ state = tail state
outputs = [OutputAction Immediate $ print . head]
in topLevel inputs update initial outputs
main = let inputs = [InputAction (Repeat 1000000) $ return ()]
initial = cycle "GO PURDUE! "
update _ state = tail state
outputs = [OutputAction Immediate $ print . head]
in topLevel inputs update initial outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment