@hackage / explicit-iomodes

File handles with explicit IOModes

Latest0.6.0.5

About

Metadata

  • Last updated , by BasVanDijk
  • License BSD-3-Clause
  • Categories Systems Programming
  • Maintained by: Bas van Dijk <v.dijk.bas@gmail.com>

  • Lottery factor: 0

Links

Installation

Readme

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.