import Monitor
import Signal
import Text

main = Signal.map Text.asText (Signal.foldp (+) 0 Monitor.refresh)
import Monitor
import Signal
import Text
import Mouse
import Graphics.Element (flow, down)

display counter1 counter2 = flow down
    [ Text.asText counter1
    , Text.asText counter2
    ]

main = Signal.map2 display
    (Signal.foldp (+) 0 Monitor.refresh)
    (Signal.foldp (+) 0 (Monitor.refreshWhen Mouse.isDown))
Update example to use both `refresh` and `refreshWhen`.
Update example to use both `refresh` and `refreshWhen`.
