[GHC] #8079: Redo T7919 with a cabal file