→ also easy to end up in a Promise hell (especially for complex application) • But there is React + Typescript → good, but still inconistency in states • Bigger codebase → bigger complexity to handle
:: a → Event a → m (Behaviour a) • tag :: Behaviour a → Event b → Event a • attach :: Behaviour a → Event b → Event (a, b) • attachWith :: (a → b → c) → Behaviour a → Event b → Event c • switch :: Behaviour (Event a) → Event a
– constructor • holdDyn :: a → Event a → m (Dynamic a) – constructor • foldDyn :: (a → b → b) → b → Event a → m (Dynamic b) – constructor • current :: Dynamic a → Behavior a – accessor • updated :: Dynamic a → Event a – accessor