Matching on ExitCode #51
Answered
by
chrisdone
MichaelXavier
asked this question in
Q&A
Replies: 1 comment
-
That’s right, I haven’t added a deconstructor for it. Now that you point it out, seems that I’ve only written scripts that stop on the first failure. Happy to add an Exit.exitCode destructor.
It might be worth adding the other functions in https://hackage.haskell.org/package/base-4.20.0.1/docs/System-Exit.html
…On Sun, Oct 27, 2024, at 7:36 PM, Michael Xavier wrote:
I'm gathering from the API that `Process.runProcess` is meant to let you run processes that are allowed to fail. However, because there is no support yet for case statements and seemingly the constructors for ExitCode aren't exported and can't be constructed, it seems like there's no way to tell *whether* a process failed or not or check for particular exit codes. Am I missing anything?
—
Reply to this email directly, view it on GitHub <#51>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAACWCZ62YUHR6F7MSH7CTLZ5U6FRAVCNFSM6AAAAABQWDKMEOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGM3TQMRSHE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MichaelXavier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm gathering from the API that
Process.runProcess
is meant to let you run processes that are allowed to fail. However, because there is no support yet for case statements and seemingly the constructors for ExitCode aren't exported and can't be constructed, it seems like there's no way to tell whether a process failed or not or check for particular exit codes. Am I missing anything?Beta Was this translation helpful? Give feedback.
All reactions