Stability | Ultra-Violence |
---|---|
Portability | I'm too young to die |
Safe Haskell | Safe |
Language | Haskell98 |
Higher-level file patterns. Don't support read/write operations at offsets and handling stat changes as for now.
- isDir :: Word32 -> Bool
- simpleFile :: forall a b m rr wr. (Monad m, EmbedIO m, ReadRef rr m a, Convertible a ByteString, WriteRef wr m b, Convertible ByteString b) => String -> rr -> wr -> NineFile m
- simpleFileBy :: forall a b m. (Monad m, EmbedIO m) => String -> (m a, b -> m ()) -> (a -> ByteString, ByteString -> b) -> NineFile m
- simpleDirectory :: forall m. (Monad m, EmbedIO m) => String -> (String -> m (NineFile m)) -> (String -> m (NineFile m)) -> IO (NineFile m, IORef [(String, NineFile m)])
- rwFile :: forall m. EmbedIO m => String -> Maybe (m ByteString) -> Maybe (ByteString -> m ()) -> NineFile m
- memoryFile :: forall m. (Monad m, EmbedIO m) => String -> IO (NineFile m)
- memoryDirectory :: forall m. (Monad m, EmbedIO m) => String -> IO (NineFile m)
Documentation
:: (Monad m, EmbedIO m, ReadRef rr m a, Convertible a ByteString, WriteRef wr m b, Convertible ByteString b) | |
=> String | File name |
-> rr | Reading function |
-> wr | Writing function |
-> NineFile m |
:: (Monad m, EmbedIO m) | |
=> String | File name |
-> (m a, b -> m ()) | Reading and writing handle |
-> (a -> ByteString, ByteString -> b) | Type conversion handles |
-> NineFile m |
Typeclass-free version of simpleFile
.
:: (Monad m, EmbedIO m) | |
=> String | File name |
-> (String -> m (NineFile m)) | A function for creating new files |
-> (String -> m (NineFile m)) | A function for creating new directories |
-> IO (NineFile m, IORef [(String, NineFile m)]) |
A directory that stores its contents in the form of 'IORef [(String, NineFile 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.
A file that stores its contents in the form of IORef
ByteString
A composition of a simpleDirectory
and a memoryFile