[Git][ghc/ghc][master] 10 commits: Handle heap allocation failure in I/O primops