Port of https://github.com/pigworker/Pivotal to haskell