I fell in love with Haskell almost the day I started using it. It’s not perfect, though, and one of its weaker areas is error/exception handling. I’m not going to cover all ways to return errors. For more details, see 8 ways to report errors in Haskell.
Haskell has an Exception class in the Control.Exception module, [...]