Building a Primitive State Machine in Haskell | Hacker News Reader