6 ms·
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.o
by nitros 2y 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/Control-Exception.html#v:bracket https://hackage.haskell.org/package/base-4.20.0.1/docs/Contr...
[2]: https://hackage.haskell.org/package/base-4.20.0.1/docs/Control-Exception.html https://hackage.haskell.org/package/base-4.20.0.1/docs/Contr...
- whateveracct 2y agoNot 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.
- valcron1000 2y ago"The finest imperative programming language"