unix-simple-0.1.0.0: Straightforward bindings to the posix API
Safe HaskellNone
LanguageHaskell2010

Unix

Synopsis

Documentation

fsync :: Fd -> EIO () Source #

fsyncExn :: Fd -> IO () Source #

fdatasync :: Fd -> EIO () Source #

ftruncate :: Fd -> COff -> EIO () Source #

mkdir :: CString -> CMode -> EIO () Source #

preadBuf :: Fd -> Ptr Word8 -> CSize -> COff -> EIO CSsize Source #

pread :: Fd -> CSize -> COff -> EIO ByteString Source #

pwriteFull :: Fd -> ByteString -> COff -> EIO () Source #

read :: Fd -> Int -> EIO ByteString Source #

remove :: CString -> EIO () Source #

rmdir :: CString -> EIO () Source #

writeFull :: Fd -> ByteString -> EIO () Source #

Wrapper around write that makes sure the full bytestring is written, handling short writes from the underlying system call.

newtype OpenFlag Source #

Constructors

OpenFlag CInt 

Instances

Instances details
Semigroup OpenFlag Source # 
Instance details

Defined in Unix

open :: CString -> OpenFlag -> CMode -> EIO Fd Source #

openat :: Fd -> CString -> OpenFlag -> CMode -> EIO Fd Source #

close :: Fd -> EIO () Source #

closeExn :: Fd -> IO () Source #

Re-exported for convenience

data CString Source #

A string for passing to C api functions. The C-compatible form is computed lazily; it will not be forced until the string is passed to a C API function. Internally, this is stored as a Builder with no trailing nul, so performance characteristics are mostly the same, only requiring a copy when first passing the string to an API function.

Instances

Instances details
IsString CString Source # 
Instance details

Defined in CString

Methods

fromString :: String -> CString #

Semigroup CString Source # 
Instance details

Defined in CString

Monoid CString Source # 
Instance details

Defined in CString