posix-paths-0.3.0.0: POSIX filepath/directory functionality
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Posix.Directory.Foreign

Synopsis

Documentation

newtype DirType #

Constructors

DirType Int 

Instances

Instances details
Show DirType # 
Instance details

Defined in System.Posix.Directory.Foreign

Eq DirType # 
Instance details

Defined in System.Posix.Directory.Foreign

Methods

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

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

data Flags #

Instances

Instances details
Show Flags # 
Instance details

Defined in System.Posix.Directory.Foreign

Methods

showsPrec :: Int -> Flags -> ShowS #

show :: Flags -> String #

showList :: [Flags] -> ShowS #

Eq Flags # 
Instance details

Defined in System.Posix.Directory.Foreign

Methods

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

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

isSupported :: Flags -> Bool #

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 #

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.)