Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jun 17, 2025

🎉 This pull request has been checked successfully and will be merged soon. 🎉

Branch master (e6a70eb), #10979 and #10988 are embarked together for merge.

This pull request has been created by Mergify to speculatively check the mergeability of #10988.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.

Required conditions of queue default for merge:

  • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of [🛡 GitHub branch protection]:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Validate post job
    • check-neutral = Validate post job
    • check-skipped = Validate post job
  • any of [🛡 GitHub branch protection]:
    • check-success = fourmolu
    • check-neutral = fourmolu
    • check-skipped = fourmolu
  • any of [🛡 GitHub branch protection]:
    • check-success = hlint
    • check-neutral = hlint
    • check-skipped = hlint
  • any of [🛡 GitHub branch protection]:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of [🛡 GitHub branch protection]:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of [🛡 GitHub branch protection]:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of [🛡 GitHub branch protection]:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs

Required conditions to stay in the queue:

---
previous_failed_batches: []
pull_requests:
  - number: 10988
...

Bodigrim and others added 4 commits June 17, 2025 13:05
This is to comply with haskell/core-libraries-committee#292

We could have achieved the immediate goal by replacing combine
in Distribution.Compat.Internal.TempFile with something like

    combine a [] = a
    combine a b = case unsnoc a of
        Nothing -> b
        Just (_, lastA)
            | pathSeparator [lastA] -> a ++ b
            | otherwise -> a ++ [pathSeparatorChar] ++ b

but honestly there is no reason to retain openNewBinaryFile implementation at all.
Let's just outsource all the work to openBinaryTempFileWithDefaultPermissions from base.
When using a development compiler the compilerId isn't a prefix of the Project Unit Id.
This led to a failure to parse the AbiTag.

We extend the parsing logic to handle these cases by only removing the
common prefix and then any leading '-'s.

Resolves #10170
@mergify mergify bot closed this Jun 17, 2025
@mergify mergify bot deleted the mergify/merge-queue/eddd4f6500 branch June 17, 2025 15:15
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