Haskell solutions to "Software tools in Pascal"