[Git][ghc/ghc][wip/fendor/27835] 13 commits: Add regression test for #7803