File handles with explicit IOModes
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
System/IO
LICENSE
NEWS
README.markdown
Setup.hs
explicit-iomodes.cabal

README.markdown

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 and explicit-iomodes-text packages for ByteString / Text operations.