Better implementation for invalid? #176
Labels
bug
Something isn't working
core-program
Issues involving the Program type and command-line options & argument parsing
A long while ago we added
invalid
in Core.Program to make it clear when you'd hit an illegal state (when in monadic context).unbeliever/core-program/lib/Core/Program/Execute.hs
Lines 1103 to 1108 in e55e65f
I bet that could be done better.
At the very least an HasCallStack => constraint might be good, but is there something better than using
error
here? MonadFailfail
?The text was updated successfully, but these errors were encountered: