hpath-0.7.3: Support for well-typed paths

Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Posix.Directory.Foreign

Synopsis

Documentation

newtype DirType Source

Constructors

DirType Int 

Instances

data Flags Source

Instances

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