Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype WindowsString = WindowsString {}
- pattern WS :: ShortByteString -> WindowsString
- unWS :: WindowsString -> ShortByteString
- newtype PosixString = PosixString {}
- unPS :: PosixString -> ShortByteString
- pattern PS :: ShortByteString -> PosixString
- type PlatformString = PosixString
- newtype WindowsChar = WindowsChar {
- getWindowsChar :: Word16
- unWW :: WindowsChar -> Word16
- pattern WW :: Word16 -> WindowsChar
- newtype PosixChar = PosixChar {
- getPosixChar :: Word8
- unPW :: PosixChar -> Word8
- pattern PW :: Word8 -> PosixChar
- type PlatformChar = PosixChar
- newtype OsString = OsString {}
- newtype OsChar = OsChar {}
Documentation
newtype WindowsString Source #
Commonly used windows string as wide character bytes.
Instances
pattern WS :: ShortByteString -> WindowsString Source #
Just a short bidirectional synonym for WindowsString
constructor.
unWS :: WindowsString -> ShortByteString Source #
newtype PosixString Source #
Commonly used Posix string as uninterpreted char[]
array.
Instances
unPS :: PosixString -> ShortByteString Source #
pattern PS :: ShortByteString -> PosixString Source #
Just a short bidirectional synonym for PosixString
constructor.
type PlatformString = PosixString Source #
newtype WindowsChar Source #
WindowsChar | |
|
Instances
unWW :: WindowsChar -> Word16 Source #
pattern WW :: Word16 -> WindowsChar Source #
Just a short bidirectional synonym for WindowsChar
constructor.
PosixChar | |
|
Instances
Eq PosixChar Source # | |
Ord PosixChar Source # | |
Defined in System.OsString.Internal.Types | |
Show PosixChar Source # | |
Generic PosixChar Source # | |
NFData PosixChar Source # | |
Defined in System.OsString.Internal.Types | |
type Rep PosixChar Source # | |
Defined in System.OsString.Internal.Types type Rep PosixChar = D1 ('MetaData "PosixChar" "System.OsString.Internal.Types" "filepath-1.4.99.2-inplace" 'True) (C1 ('MetaCons "PosixChar" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPosixChar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8))) |
pattern PW :: Word8 -> PosixChar Source #
Just a short bidirectional synonym for PosixChar
constructor.
type PlatformChar = PosixChar Source #
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
Eq OsString Source # | Byte equality of the internal representation. |
Ord OsString Source # | Byte ordering of the internal representation. |
Defined in System.OsString.Internal.Types | |
Show OsString Source # | On windows, decodes as UCS-2. On unix prints the raw bytes without decoding. |
Generic OsString Source # | |
Semigroup OsString Source # | |
Monoid OsString Source # | "String-Concatenation" for |
NFData OsString Source # | |
Defined in System.OsString.Internal.Types | |
Lift OsString Source # | |
type Rep OsString Source # | |
Defined in System.OsString.Internal.Types type Rep OsString = D1 ('MetaData "OsString" "System.OsString.Internal.Types" "filepath-1.4.99.2-inplace" '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
Eq OsChar Source # | Byte equality of the internal representation. |
Ord OsChar Source # | Byte ordering of the internal representation. |
Show OsChar Source # | |
Generic OsChar Source # | |
NFData OsChar Source # | |
Defined in System.OsString.Internal.Types | |
type Rep OsChar Source # | |
Defined in System.OsString.Internal.Types type Rep OsChar = D1 ('MetaData "OsChar" "System.OsString.Internal.Types" "filepath-1.4.99.2-inplace" 'True) (C1 ('MetaCons "OsChar" 'PrefixI 'True) (S1 ('MetaSel ('Just "getOsChar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlatformChar))) |