Network-NineP-0.1.1: High-level abstraction over 9P protocol

PortabilityI'm too young to die
StabilityUltra-Violence
Safe HaskellSafe-Inferred

Network.NineP.File

Description

Higher-level file patterns. Don't support read/write operations at offsets and handling stat changes as for now.

Synopsis

Documentation

chanFileSource

Arguments

:: forall m . (Monad m, EmbedIO m) 
=> String

File name

-> Maybe (Chan ByteString)

Chan to read from

-> Maybe (Chan ByteString)

Chan to write to

-> NineFile m 

A file that reads from and writes to the specified Chans

mVarFileSource

Arguments

:: forall m . (Monad m, EmbedIO m) 
=> String

File name

-> Maybe (MVar ByteString)

MVar to read from

-> Maybe (MVar ByteString)

MVar to write to

-> NineFile m 

A file that reads from and writes to the specified MVars

rwFileSource

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