[Git][ghc/ghc][wip/fendor/27834] 9 commits: Add regression test for #7803