Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created August 28, 2015 20:14
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 amitaibu/671a66b22490b7f571f8 to your computer and use it in GitHub Desktop.
Save amitaibu/671a66b22490b7f571f8 to your computer and use it in GitHub Desktop.
import Signal exposing (foldp, (<~))
import Mouse
import Time exposing (Time, fps)
import Graphics.Element exposing (..)
import Debug exposing (watch)
timeSoFar : Signal Time
timeSoFar =
let
d = Debug.watch "foo" "bar"
in
foldp (+) 0 (fps 40)
main : Signal Element
main =
show <~ timeSoFar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment