A re-implementation of minibcs in Haskell.