Skip to content

readProcessWithCmd' should include exception in CradleError - #530

Merged
mergify[bot] merged 1 commit into
haskell:masterfrom
Saizan:del-optional
Oct 7, 2026
Merged

mergify[bot] merged 1 commit into
haskell:masterfrom
Saizan:del-optional

Conversation

@Saizan

@Saizan Saizan commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

It was dropping any IOError with optional.

rather than return ExitSuccess I changed the exit code field to fit an IOError

@Saizan
Saizan force-pushed the del-optional branch 2 times, most recently from c3385cd to bb4c96b Compare October 6, 2026 14:01
@soulomoon

Copy link
Copy Markdown
Collaborator

already a sum type, so why don't we just add a field to ExitFailure ?

@Saizan

Saizan commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator Author

ExitFailure is a constructor of ExitCode from System.Exit.

I'm happy to change CradleError some other way though, as long as the exception case can't be mistaken for a success by looking at just the ExitCode field

@Saizan
Saizan marked this pull request as ready for review October 7, 2026 06:37
@Saizan

Saizan commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator Author

The remaining CI failures are about macro expansion errors when installing the prettyprinter package.

@Saizan
Saizan requested a review from fendor October 7, 2026 09:30

@fendor fendor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think we should redesign CradleError to make more sense :)

@mergify

mergify Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-07 12:58 UTC · Rule: default · triggered by @Saizan with the merge queue checkbox
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged — 2026-10-07 12:58 UTC · at 34a3f6114a2f782155e384f43615072a365271a3

This pull request spent 18 seconds in the queue, including 1 second running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Oct 7, 2026
@mergify
mergify Bot merged commit 34a3f61 into haskell:master Oct 7, 2026
74 of 76 checks passed
@mergify mergify Bot removed the queued label Oct 7, 2026
@Saizan
Saizan deleted the del-optional branch October 7, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants