Events in a functional reactive style