hpath-0.7.3: Support for well-typed paths

Safe HaskellSafe
LanguageHaskell2010

System.Posix.Directory.Foreign

Synopsis

Documentation

newtype DirType Source #

Constructors

DirType Int 

Instances

Eq DirType Source # 

Methods

(==) :: DirType -> DirType -> Bool

(/=) :: DirType -> DirType -> Bool

Show DirType Source # 

Methods

showsPrec :: Int -> DirType -> ShowS

show :: DirType -> String

showList :: [DirType] -> ShowS

data Flags Source #

Constructors

Flags Int 
UnsupportedFlag String 

Instances

Eq Flags Source # 

Methods

(==) :: Flags -> Flags -> Bool

(/=) :: Flags -> Flags -> Bool

Show Flags Source # 

Methods

showsPrec :: Int -> Flags -> ShowS

show :: Flags -> String

showList :: [Flags] -> ShowS

unFlags :: Flags -> Int Source #

isSupported :: Flags -> Bool Source #

Returns True if posix-paths was compiled with support for the provided flag. (As of this writing, the only flag for which this check may be necessary is oCloexec; all other flags will always yield True.)

oCloexec :: Flags Source #

O_CLOEXEC is not supported on every POSIX platform. Use isSupported oCloexec to determine if support for O_CLOEXEC was compiled into your version of posix-paths. (If not, using oCloexec will throw an exception.)

unionFlags :: [Flags] -> CInt Source #