Better use of event-structure monad
Merge branch 'master' of https://github.com/herd/herdtools