Can't you just handle this with something like `Either ErrCode T`?
(And if not, please do explain why!)
You can, but the existence (and use in libraries!) of Maybe is still bad for the same reason having 'null' is bad. It's an anti-feature that would enrich the language by not existing.
Re:What is wrong with NULL
by dragonwriter on Monday August 31, 2015 @05:29PM
(#10149218)
When you need to distinguish missing values, that's why Haskell has Either. Maybe is for when you only care if there is a good result are not, Either covers the case when you need to distinguish different kinds of "not".
edit: carsongross beat me to what I'm talking about with a better explanation: https://news.ycombinator.com/item?id=10149129