Making it easier to submit upstream patches using the head.hackage tooling
Right now the head.hackage tooling is mostly set up just to record patches to the tarballs uploaded to Hackage.
Recently I was making my work codebase compatible with GHC-9.6.1-alpha. I did this by using the head.hackage overlay and then locally checking out upstream repos for everything else that broke and submitting upstream patches with fixes. On reflection, I realised that this is very similar to the workflow I have when I submit patches to head.hackage instead.
At the moment the workflows differ enough that I'm tempted not to do both, but I'm wondering if we can improve the head.hackage tooling to make it easy to also turn a head.hackage patch into an upstream patch.
What I have in mind is that we read the upstream repo from the cabal file, add that as a remote, and then cherry-pick our change onto HEAD.
If I have time in the future I'll try to implement this if it sounds like a good idea. Do let me know if folks have thoughts