Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

File handles with explicit IOModes
https://github.com/basvandijk/explicit-iomodes

haskell

Last synced: 29 days ago
JSON representation

File handles with explicit IOModes

Awesome Lists containing this project

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.

[explicit-iomodes-bytestring]: http://hackage.haskell.org/package/explicit-iomodes-bytestring
[explicit-iomodes-text]: http://hackage.haskell.org/package/explicit-iomodes-text