Skip to content
Snippets Groups Projects
Commit badea945 authored by Alexis Williams's avatar Alexis Williams Committed by chessai
Browse files

Add some basic type class instances for `OpenMode` and `OpenFileFlags`. (#141)

Add some basic type class instances for `OpenMode` and `OpenFileFlags`.
parent ba8a23d4
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,7 @@ stdOutput = Fd (#const STDOUT_FILENO)
stdError = Fd (#const STDERR_FILENO)
data OpenMode = ReadOnly | WriteOnly | ReadWrite
deriving (Read, Show, Eq, Ord)
-- |Correspond to some of the int flags from C's fcntl.h.
data OpenFileFlags =
......@@ -156,6 +157,7 @@ data OpenFileFlags =
--
-- @since 2.8.0.0
}
deriving (Read, Show, Eq, Ord)
-- | Default values for the 'OpenFileFlags' type.
......
......@@ -19,6 +19,8 @@
* Generalise return type of `exitImmediately` from `ExitCode -> IO ()` to
`∀a. ExitCode -> IO a` (#130)
* Add `Read`, `Show`, `Eq`, and `Ord` typeclass instances to `OpenFileFlags` and `OpenMode`. (#75, #141)
## 2.7.2.2 *May 2017*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment