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.
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.