Safe Haskell | None |
---|---|
Language | Haskell2010 |
System.OsString.Internal.Types
Synopsis
- newtype WindowsString = WS {}
- newtype PosixString = PS {}
- type PlatformString = PosixString
- newtype WindowsChar = WW {
- unWW :: Word16
- newtype PosixChar = PW {
- unPW :: Word8
- type PlatformChar = PosixChar
- newtype OsString = OsString PlatformString
- newtype OsChar = OsChar PlatformChar
Documentation
newtype WindowsString Source #
Commonly used windows string as UTF16 bytes.
Constructors
WS | |
Fields |
Instances
newtype PosixString Source #
Commonly used Posix string as uninterpreted char[]
array.
Constructors
PS | |
Fields |
Instances
type PlatformString = PosixString Source #
newtype WindowsChar Source #
Instances
Eq WindowsChar Source # | |
Defined in System.OsString.Internal.Types | |
Ord WindowsChar Source # | |
Defined in System.OsString.Internal.Types Methods compare :: WindowsChar -> WindowsChar -> Ordering (<) :: WindowsChar -> WindowsChar -> Bool (<=) :: WindowsChar -> WindowsChar -> Bool (>) :: WindowsChar -> WindowsChar -> Bool (>=) :: WindowsChar -> WindowsChar -> Bool max :: WindowsChar -> WindowsChar -> WindowsChar min :: WindowsChar -> WindowsChar -> WindowsChar | |
Show WindowsChar Source # | |
Defined in System.OsString.Internal.Types Methods showsPrec :: Int -> WindowsChar -> ShowS show :: WindowsChar -> String showList :: [WindowsChar] -> ShowS | |
Generic WindowsChar Source # | |
Defined in System.OsString.Internal.Types Associated Types type Rep WindowsChar :: Type -> Type | |
NFData WindowsChar Source # | |
Defined in System.OsString.Internal.Types Methods rnf :: WindowsChar -> () | |
type Rep WindowsChar Source # | |
Defined in System.OsString.Internal.Types type Rep WindowsChar = D1 ('MetaData "WindowsChar" "System.OsString.Internal.Types" "filepath-2.0.0.3-inplace" 'True) (C1 ('MetaCons "WW" 'PrefixI 'True) (S1 ('MetaSel ('Just "unWW") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16))) |
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-2.0.0.3-inplace" 'True) (C1 ('MetaCons "PW" 'PrefixI 'True) (S1 ('MetaSel ('Just "unPW") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8))) |
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.
Constructors
OsString PlatformString |
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 | |
Read OsString Source # | Encodes as UTF-8 on unix and UTF-16LE on windows. |
Defined in System.OsString.Internal.Types | |
Show OsString Source # | Decodes as UTF-16 on windows. Decodes as UTF-8 on unix and replaces invalid chars with unicode replacement char U+FFFD. |
IsString OsString Source # | Encodes as UTF16 on windows and UTF8 on unix. |
Defined in System.OsString.Internal.Types Methods fromString :: String -> OsString | |
Generic OsString Source # | |
Semigroup OsString Source # | |
Monoid OsString Source # | "String-Concatenation" for 'OsString. This is not the same
as |
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-2.0.0.3-inplace" 'True) (C1 ('MetaCons "OsString" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) '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
).
Constructors
OsChar PlatformChar |
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-2.0.0.3-inplace" 'True) (C1 ('MetaCons "OsChar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlatformChar))) |