Type representing filenames/pathnames.
This type doesn't add any guarantees over OsString.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulefilepath-1.5.4.0Haskell2010
Type representing filenames/pathnames.
This type doesn't add any guarantees over OsString.
Filepaths are wchar_t* data on windows as passed to syscalls.
Filepaths are char[] data on unix as passed to syscalls.
Ifdef around current platform (either WindowsPath or PosixPath).
Commonly used windows string as wide character bytes.
Eq WindowsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesOrd WindowsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesShow WindowsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesDecodes as UCS-2.
Generic WindowsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesSemigroup WindowsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesMonoid WindowsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesNFData WindowsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesLift WindowsStringDefined in os-string-2.0.7 · System.OsString.Internal.Typestype Rep WindowsString = D1 ('MetaData "WindowsString"
"System.OsString.Internal.Types"
"os-string-2.0.7-3011"
'True) (C1 ('MetaCons "WindowsString"
'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsString"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortByteString)))Defined in os-string-2.0.7 · System.OsString.Internal.TypesCommonly used Posix string as uninterpreted char[]
array.
Eq PosixStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesOrd PosixStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesShow PosixStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesPrints the raw bytes without decoding.
Generic PosixStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesSemigroup PosixStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesMonoid PosixStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesNFData PosixStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesLift PosixStringDefined in os-string-2.0.7 · System.OsString.Internal.Typestype Rep PosixString = D1 ('MetaData "PosixString"
"System.OsString.Internal.Types"
"os-string-2.0.7-3011"
'True) (C1 ('MetaCons "PosixString"
'PrefixI 'True) (S1 ('MetaSel ('Just "getPosixString"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortByteString)))Defined in os-string-2.0.7 · System.OsString.Internal.TypesEq WindowsCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesOrd WindowsCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesShow WindowsCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesGeneric WindowsCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesNFData WindowsCharDefined in os-string-2.0.7 · System.OsString.Internal.Typestype Rep WindowsChar = D1 ('MetaData "WindowsChar"
"System.OsString.Internal.Types"
"os-string-2.0.7-3011"
'True) (C1 ('MetaCons "WindowsChar"
'PrefixI 'True) (S1 ('MetaSel ('Just "getWindowsChar"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16)))Defined in os-string-2.0.7 · System.OsString.Internal.TypesEq PosixCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesOrd PosixCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesShow PosixCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesGeneric PosixCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesNFData PosixCharDefined in os-string-2.0.7 · System.OsString.Internal.Typestype Rep PosixChar = D1 ('MetaData "PosixChar"
"System.OsString.Internal.Types"
"os-string-2.0.7-3011"
'True) (C1 ('MetaCons "PosixChar"
'PrefixI 'True) (S1 ('MetaSel ('Just "getPosixChar"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8)))Defined in os-string-2.0.7 · System.OsString.Internal.TypesNewtype 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.
Eq OsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesByte equality of the internal representation.
Ord OsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesByte ordering of the internal representation.
Show OsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesOn windows, decodes as UCS-2. On unix prints the raw bytes without decoding.
Generic OsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesSemigroup OsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesMonoid OsStringDefined in os-string-2.0.7 · System.OsString.Internal.Types"String-Concatenation" for OsString. This is not the same
as (</>).
NFData OsStringDefined in os-string-2.0.7 · System.OsString.Internal.TypesLift OsStringDefined in os-string-2.0.7 · System.OsString.Internal.Typestype Rep OsString = D1 ('MetaData "OsString"
"System.OsString.Internal.Types"
"os-string-2.0.7-3011"
'True) (C1 ('MetaCons "OsString"
'PrefixI 'True) (S1 ('MetaSel ('Just "getOsString"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlatformString)))Defined in os-string-2.0.7 · System.OsString.Internal.TypesEq OsCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesByte equality of the internal representation.
Ord OsCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesByte ordering of the internal representation.
Show OsCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesGeneric OsCharDefined in os-string-2.0.7 · System.OsString.Internal.TypesNFData OsCharDefined in os-string-2.0.7 · System.OsString.Internal.Typestype Rep OsChar = D1 ('MetaData "OsChar"
"System.OsString.Internal.Types"
"os-string-2.0.7-3011"
'True) (C1 ('MetaCons "OsChar"
'PrefixI 'True) (S1 ('MetaSel ('Just "getOsChar"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PlatformChar)))Defined in os-string-2.0.7 · System.OsString.Internal.Types