Modelling domain with state machines in ReasonML | Hacker News Reader