[Git][ghc/ghc][wip/remove-legacy-define-in-foreign-stub] 20 commits: task: Substitute some datatypes for newtypes