PBBS utilities in Haskell