| Portability | I'm too young to die |
|---|---|
| Stability | Ultra-Violence |
| Safe Haskell | Safe-Inferred |
Network.NineP.File
Description
Higher-level file patterns. Don't support read/write operations at offsets and handling stat changes as for now.
- chanFile :: forall m. (Monad m, EmbedIO m) => String -> Maybe (Chan ByteString) -> Maybe (Chan ByteString) -> NineFile m
- mVarFile :: forall m. (Monad m, EmbedIO m) => String -> Maybe (MVar ByteString) -> Maybe (MVar ByteString) -> NineFile m
- rwFile :: forall m. EmbedIO m => String -> Maybe (m ByteString) -> Maybe (ByteString -> m ()) -> NineFile m
Documentation
Arguments
| :: forall m . (Monad m, EmbedIO m) | |
| => String | File name |
| -> Maybe (Chan ByteString) |
|
| -> Maybe (Chan ByteString) |
|
| -> NineFile m |
A file that reads from and writes to the specified Chans
Arguments
| :: forall m . (Monad m, EmbedIO m) | |
| => String | File name |
| -> Maybe (MVar ByteString) |
|
| -> Maybe (MVar ByteString) |
|
| -> NineFile m |
A file that reads from and writes to the specified MVars
Arguments
| :: forall m . EmbedIO m | |
| => String | File name |
| -> Maybe (m ByteString) | Read handler |
| -> Maybe (ByteString -> m ()) | Write handler |
| -> NineFile m |
A file that reads and writes using simple user-specified callbacks