Skip to content
  • GHC GitLab CI's avatar
    adf93721
    check-ppr,check-exact: Write out result as binary · adf93721
    GHC GitLab CI authored and Marge Bot's avatar Marge Bot committed
    Previously we would use `writeFile` to write the intermediate files to
    check for round-tripping. However, this will open the output handle as a
    text handle, which on Windows will change line endings. Avoid this by
    opening as binary.
    
    Explicitly use utf8 encoding.
    
    This is for tests only, do not need to worry about user compatibility.
    adf93721
    check-ppr,check-exact: Write out result as binary
    GHC GitLab CI authored and Marge Bot's avatar Marge Bot committed
    Previously we would use `writeFile` to write the intermediate files to
    check for round-tripping. However, this will open the output handle as a
    text handle, which on Windows will change line endings. Avoid this by
    opening as binary.
    
    Explicitly use utf8 encoding.
    
    This is for tests only, do not need to worry about user compatibility.
Loading