Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type OsPath = OsString
- type WindowsPath = WindowsString
- type PosixPath = PosixString
- type PlatformPath = PosixPath
- data WindowsString
- data PosixString
- data WindowsChar
- data PosixChar
- data OsString
- data OsChar
FilePath types
type OsPath = OsString Source #
Type representing filenames/pathnames.
This type doesn't add any guarantees over OsString
.
type WindowsPath = WindowsString Source #
Filepaths are wchar_t*
data on windows as passed to syscalls.
type PosixPath = PosixString Source #
Filepaths are char[]
data on unix as passed to syscalls.
type PlatformPath = PosixPath Source #
Ifdef around current platform (either WindowsPath
or PosixPath
).
OsString reexports
data WindowsString #
Commonly used windows string as wide character bytes.
Instances
data PosixString #
Commonly used Posix string as uninterpreted char[]
array.
Instances
data WindowsChar #
Instances
Instances
Generic PosixChar | |
Show PosixChar | |
NFData PosixChar | |
Defined in System.OsString.Internal.Types | |
Eq PosixChar | |
Ord PosixChar | |
Defined in System.OsString.Internal.Types | |
type Rep PosixChar | |
Defined in System.OsString.Internal.Types type Rep PosixChar = D1 ('MetaData "PosixChar" "System.OsString.Internal.Types" "os-string-2.0.2-27f806a199f6f3efce10ef8a799479bc865f98fc92b3f3b6e7a8c3bcc1b7a901" 'True) (C1 ('MetaCons "PosixChar" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPosixChar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8))) |
Newtype representing short operating system specific strings.
Internally this is either WindowsString
or PosixString
,
depending on the platform. Both use unpinned
ShortByteString
for efficiency.
The constructor is only exported via System.OsString.Internal.Types, since dealing with the internals isn't generally recommended, but supported in case you need to write platform specific code.
Instances
Monoid OsString | "String-Concatenation" for |
Semigroup OsString | |
Generic OsString | |
Show OsString | On windows, decodes as UCS-2. On unix prints the raw bytes without decoding. |
NFData OsString | |
Defined in System.OsString.Internal.Types | |
Eq OsString | Byte equality of the internal representation. |
Ord OsString | Byte ordering of the internal representation. |
Defined in System.OsString.Internal.Types | |
Lift OsString | |
type Rep OsString | |
Defined in System.OsString.Internal.Types type Rep OsString = D1 ('MetaData "OsString" "System.OsString.Internal.Types" "os-string-2.0.2-27f806a199f6f3efce10ef8a799479bc865f98fc92b3f3b6e7a8c3bcc1b7a901" 'True) (C1 ('MetaCons "OsString" 'PrefixI 'True) (S1 ('MetaSel ('Just "getOsString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlatformString))) |
Newtype representing a code unit.
On Windows, this is restricted to two-octet codepoints Word16
,
on POSIX one-octet (Word8
).
Instances
Generic OsChar | |
Show OsChar | |
NFData OsChar | |
Defined in System.OsString.Internal.Types | |
Eq OsChar | Byte equality of the internal representation. |
Ord OsChar | Byte ordering of the internal representation. |
type Rep OsChar | |
Defined in System.OsString.Internal.Types type Rep OsChar = D1 ('MetaData "OsChar" "System.OsString.Internal.Types" "os-string-2.0.2-27f806a199f6f3efce10ef8a799479bc865f98fc92b3f3b6e7a8c3bcc1b7a901" 'True) (C1 ('MetaCons "OsChar" 'PrefixI 'True) (S1 ('MetaSel ('Just "getOsChar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlatformChar))) |