Copyright | (c) The University of Glasgow 2002 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | libraries@haskell.org |
Stability | provisional |
Portability | non-portable (requires POSIX) |
Safe Haskell | None |
Language | Haskell2010 |
System.Posix.PosixString
Description
POSIX.1-2008
support with ByteString
file paths and environment strings.
This module exports exactly the same API as System.Posix, except
that all file paths and environment strings are represented by
ByteString
instead of String
. The System.Posix API
implicitly translates all file paths and environment strings using
the locale encoding, whereas this version of the API does no
encoding or decoding and works directly in terms of raw bytes.
Note that if you do need to interpret file paths or environment strings as text, then some Unicode encoding or decoding should be applied first.
Synopsis
- data PosixString
- type PosixPath = PosixString
- module System.Posix.Types
- module System.Posix.Signals
- module System.Posix.Directory.PosixPath
- module System.Posix.Files.PosixString
- module System.Posix.Unistd
- module System.Posix.IO.PosixString
- module System.Posix.Env.PosixString
- module System.Posix.Process.PosixString
- module System.Posix.Temp.PosixString
- module System.Posix.Time
- module System.Posix.User
- module System.Posix.Resource
- module System.Posix.Semaphore
- module System.Posix.SharedMem
Documentation
data PosixString #
Commonly used Posix string as uninterpreted char[]
array.
Instances
Instances details
Instance details
Defined in System.OsString.Internal.Types.Hidden
Methods
mempty :: PosixString #
mappend :: PosixString -> PosixString -> PosixString #
mconcat :: [PosixString] -> PosixString #
Instance details
Defined in System.OsString.Internal.Types.Hidden
Methods
(<>) :: PosixString -> PosixString -> PosixString #
sconcat :: NonEmpty PosixString -> PosixString #
stimes :: Integral b => b -> PosixString -> PosixString #
Instance details
Defined in System.OsString.Internal.Types.Hidden
Associated Types
Instance details
Defined in System.OsString.Internal.Types.Hidden
Prints the raw bytes without decoding.
Instance details
Defined in System.OsString.Internal.Types.Hidden
Methods
showsPrec :: Int -> PosixString -> ShowS #
show :: PosixString -> String #
showList :: [PosixString] -> ShowS #
Instance details
Defined in System.OsString.Internal.Types.Hidden
Instance details
Defined in System.OsString.Internal.Types.Hidden
Methods
compare :: PosixString -> PosixString -> Ordering #
(<) :: PosixString -> PosixString -> Bool #
(<=) :: PosixString -> PosixString -> Bool #
(>) :: PosixString -> PosixString -> Bool #
(>=) :: PosixString -> PosixString -> Bool #
max :: PosixString -> PosixString -> PosixString #
min :: PosixString -> PosixString -> PosixString #
Instance details
Defined in System.OsString.Internal.Types.Hidden
Methods
lift :: Quote m => PosixString -> m Exp #
liftTyped :: forall (m :: Type -> Type). Quote m => PosixString -> Code m PosixString #
Instance details
Defined in System.OsString.Internal.Types.Hidden
type PosixPath = PosixString #
Filepaths are char[]
data on unix as passed to syscalls.
module System.Posix.Types
module System.Posix.Signals
module System.Posix.Unistd
module System.Posix.IO.PosixString
module System.Posix.Env.PosixString
module System.Posix.Time
module System.Posix.User
module System.Posix.Resource
module System.Posix.Semaphore
module System.Posix.SharedMem