[GHC] #7594: GHCi becomes confused about IO type