eventListener :: forall a. (Event -> Effect a) -> Effect EventListener
Creates an EventListener from a normal PureScript Effect function.
This function itself is effectful as otherwise it would break referential
eventListener f /= eventListener f. This is worth noting
as you can only remove the exact event listener value that was added for