You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Illegal internal state resulting from what should be unreachable code or
otherwise a programmer error.
-}
invalid::Programτα
invalid =error"Invalid State"
is the current implementation
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? MonadFail fail?
The text was updated successfully, but these errors were encountered:
istathar
added
bug
Something isn't working
core-program
Issues involving the Program type and command-line options & argument parsing
labels
Mar 3, 2023
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: