mirror of
https://github.com/serokell/haskell-with-utf8.git
synced 2024-08-15 09:40:21 +03:00
This function allows one to not only safely set the best encoding on a file descriptor, but also restore the previous one. The idea is that it will be used on file descriptors that come from the outside and so we don’t know how they were used and will be used after us.
273 B
273 B
Changelog
Unreleased
Initial release.
Added
withUtf8StdHandles
hSetEncoding
hWithEncoding
openFile
withFile
readFile
writeFile