newtype WindowsString
Commonly used windows string as wide character bytes.
newtype WindowsStringCommonly used windows string as wide character bytes.
WindowsString :: BS.ShortByteString -> WindowsStringgetWindowsString :: WindowsString -> BS.ShortByteStringWS :: BS.ShortByteString -> WindowsStringJust a short bidirectional synonym for WindowsString constructor.
newtype PosixStringCommonly used Posix string as uninterpreted char[]
array.
PosixString :: BS.ShortByteString -> PosixStringgetPosixString :: PosixString -> BS.ShortByteStringPS :: BS.ShortByteString -> PosixStringJust a short bidirectional synonym for PosixString constructor.
type PlatformString = PosixStringnewtype WindowsCharThis represents a "wide char" on windows.
A better name would maybe have been WindowsWord, since
this is just Word16 in a UCS-2 sequence.
WindowsChar :: Word16 -> WindowsChargetWindowsChar :: WindowsChar -> Word16WW :: Word16 -> WindowsCharJust a short bidirectional synonym for WindowsChar constructor.
newtype PosixCharThis represents a byte.
A better name would maybe have been PosixWord, since
it is just Word8 in an encoded byte sequence.
PosixChar :: Word8 -> PosixChargetPosixChar :: PosixChar -> Word8PW :: Word8 -> PosixCharJust a short bidirectional synonym for PosixChar constructor.
type PlatformChar = PosixCharnewtype OsStringNewtype 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.
OsString :: PlatformString -> OsStringgetOsString :: OsString -> PlatformStringnewtype OsCharNewtype representing a code unit.
On Windows, this is restricted to two-octet codepoints Word16,
on POSIX one-octet (Word8).
This should maybe have been worded OsWord, since it is not
a unicode code point by any means. It represents a byte in a
OsChar :: PlatformChar -> OsChargetOsChar :: OsChar -> PlatformCharcoercionToPlatformTypes :: Either (Coercion OsChar WindowsChar, Coercion OsString WindowsString) (Coercion OsChar PosixChar, Coercion OsString PosixString)This is a type-level evidence that OsChar is a newtype wrapper
over WindowsChar or PosixChar and OsString is a newtype wrapper
over WindowsString or PosixString. If you pattern match on
coercionToPlatformTypes, GHC will know that relevant types
are coercible to each other. This helps to avoid CPP in certain scenarios.
instance Eq WindowsStringinstance Ord WindowsStringinstance Semigroup WindowsStringinstance Monoid WindowsStringinstance Typeable WindowsStringinstance Generic WindowsStringinstance NFData WindowsStringinstance Lift WindowsStringinstance Show WindowsStringDecodes as UCS-2.
instance Eq PosixStringinstance Ord PosixStringinstance Semigroup PosixStringinstance Monoid PosixStringinstance Typeable PosixStringinstance Generic PosixStringinstance NFData PosixStringinstance Lift PosixStringinstance Show PosixStringPrints the raw bytes without decoding.
instance Eq WindowsCharinstance Ord WindowsCharinstance Typeable WindowsCharinstance Generic WindowsCharinstance NFData WindowsCharinstance Lift WindowsCharinstance Show WindowsCharinstance Eq PosixCharinstance Ord PosixCharinstance Typeable PosixCharinstance Generic PosixCharinstance NFData PosixCharinstance Lift PosixCharinstance Show PosixCharinstance Typeable OsStringinstance Generic OsStringinstance NFData OsStringinstance Lift OsStringinstance Show OsStringOn windows, decodes as UCS-2. On unix prints the raw bytes without decoding.
instance Eq OsStringByte equality of the internal representation.
instance Ord OsStringByte ordering of the internal representation.
instance Monoid OsString"String-Concatenation" for OsString. This is not the same
as </>.
instance Semigroup OsStringinstance Typeable OsCharinstance Generic OsCharinstance NFData OsCharinstance Lift OsCharinstance Show OsCharinstance Eq OsCharByte equality of the internal representation.
instance Ord OsCharByte ordering of the internal representation.
Community contribution. The service has not verified this documentation. The generator reported 4 diagnostics.
Target: Linux on x86-64. Some inferred types and resolved links are not available.
Generator: aihc-haddock-858b1951-web-1
Metadata snapshot: 467adfa4e90b59b0072712e32d97437632176e89f16e62151dd53a2e41646abb
Open the dependency plan · Download the documentation model