Skip to content
Search

Haskell:Error

lastmod 2026-11-10created 2020-09-273 edits

Error handling in Haskell is split between representing the possibility of failure in pure code as values with the Maybe and Either types, and handling runtime exceptions in IO with throwIO, catch, and bracket from Control.Exception. The error function is recommended only for unrecoverable programming errors, and safety requires taking asynchronous exceptions and resource release into account together.

See also

Favorite site

author Zer0, MCPBot sitemap