Modulestreamly-core-0.3.1Haskell2010
Streamly.Internal.FileSystem.Posix.File
Contents
Synopsis
- newtype OpenFlags
- value defaultOpenFlags
- value setAppend
- value setNonBlock
- value setSync
- value setCloExec
- value setDirectory
- value setExcl
- value setNoCtty
- value setNoFollow
- value setTrunc
- value defaultCreateMode
- value setUr
- value setUw
- value setUx
- value clrUr
- value clrUw
- value clrUx
- value setGr
- value setGw
- value setGx
- value clrGr
- value clrGw
- value clrGx
- value setOr
- value setOw
- value setOx
- value clrOr
- value clrOw
- value clrOx
- value setSuid
- value setSgid
- value setSticky
- value clrSuid
- value clrSgid
- value clrSticky
- value openAt
- value close
- value openFile
- value withFile
- value openBinaryFile
- value withBinaryFile
- newtype Fd
- Packagestreamly-core-0.3.1
- Exports43
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceFile.hsc
File open flags
Default values for the OpenFlags.
By default a 0 value is used, no flag is set. See the open system call man page.
File status flags
File creation flags
File create mode
User Permissions
Group Permissions
Other Permissions
Status bits
Fd based Low Level
openAt Open a file relative to an optional directory file descriptor.
Note: In Haskell, using an fd directly for IO may be problematic as blocking file system operations on the file might block the capability and GC for "unsafe" calls. "safe" calls may be more expensive. Also, you may have to synchronize concurrent access via multiple threads.
Handle based
Like openFile in base package but using Path instead of FilePath. Use hSetBinaryMode on the handle if you want to use binary mode.
Like withFile in base package but using Path instead of FilePath. Use hSetBinaryMode on the handle if you want to use binary mode.
Like openBinaryFile in base package but using Path instead of FilePath.
Like withBinaryFile in base package but using Path instead of FilePath.
Instances13Bounded, Enum, Eq, Integral, Num, Ord, …
Bounded FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesEnum FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesEq FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesIntegral FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesNum FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesOrd FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesRead FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesReal FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesShow FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesIx FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesBits FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesFiniteBits FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.TypesStorable FdDefined in ghc-internal-10.0.0 · GHC.Internal.System.Posix.Types