Skip to content

Instantly share code, notes, and snippets.

@doppioslash
Created April 12, 2016 07:31
Show Gist options
  • Save doppioslash/90eb5185f33173b2183f0a01c109faa3 to your computer and use it in GitHub Desktop.
Save doppioslash/90eb5185f33173b2183f0a01c109faa3 to your computer and use it in GitHub Desktop.
import Graphics.Element exposing (..)
import Mouse
clickCount : Signal Int
clickCount =
Signal.foldp (\click total -> total + 1) 0 Mouse.clicks
main : Signal Element
main = Signal.map show clickCount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment