Hacker News new | ask | show | jobs
by nitros 741 days ago
bracket [1] is easy to use and ensures that the cleanup operation runs, the Control.Exception module is also well documented [2]

[1]: https://hackage.haskell.org/package/base-4.20.0.1/docs/Contr...

[2]: https://hackage.haskell.org/package/base-4.20.0.1/docs/Contr...

1 comments

Not to mention the widespread safe-exceptions and unliftio provide an API that makes it hard to shoot yourself in the foot.

Pretty funny that Haskell of all languages also has best-in-class exceptions & exception handling haha.

"The finest imperative programming language"