3 ms·
Exceptions in Haskell are unavoidable and awful. If you want to write code that responds to the errors that could occur, even some of them, you basically have t
by ferzul 7y ago
Exceptions in Haskell are unavoidable and awful. If you want to write code that responds to the errors that could occur, even some of them, you basically have to read the library source because they're completely undocumented in many libraries - even in the standard library (try something exotic like, um, reading a file). And that means you need to know your whole stack.
If they were at least declared in the type so the compiler could give me a warning.
- hopia 7y agoThat does suck, does it commonly occur because of non-total functions in the libraries or what?