A backport of my ARM64 patches for GHC to GHC 7.8