Some useful tools for handling errors in haskell.