explicit-iomodes

File handles with explicit IOModes

https://github.com/basvandijk/explicit-iomodes/

Latest on Hackage:0.6.0.5

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Bas van Dijk
Maintained by Bas van Dijk

The module System.IO.ExplicitIOModes exports a Handle to a file which is parameterized with the IOMode the handle is in. All operations on handles explicitly specify the needed IOMode. This way it is impossible to read from a write-only handle or write to a read-only handle for example.

See the explicit-iomodes-bytestring/text package for ByteString/Text operations.