Idris2-boot icon indicating copy to clipboard operation
Idris2-boot copied to clipboard

MonadError, the errorful Monad transformer

Open alrunner4 opened this issue 6 years ago • 1 comments

Utilities for working simply with mainly IO-threaded programs.

alrunner4 avatar Jan 15 '20 21:01 alrunner4

There's a test failure here due to the prelude change (I should do something about the line number display there, it is fairly useless.)

Still, I'm not sure this should be in base - it's probably better in contrib for now, because I would rather not encourage monad transformers for this sort of thing. Of course people might want to do things that way, which is fine, and it's understandable if people want to do things in a way which is familiar from Haskell, but I'm shortly going to add an error+state+IO type which I've been finding works quite nicely.

(I know we have State and Trans in base too. Should we?)

edwinb avatar Jan 19 '20 16:01 edwinb