HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulefilepath-1.5.4.0Haskell2010

System.OsPath.Encoding

  • 1 type
  • 17 values
  • Packagefilepath-1.5.4.0
  • Exports18
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs

Types

2 declarations
datadata EncodingException
#

Constructors

  • EncodingError String (Maybe Word8)

    Could not decode a byte sequence because it was invalid under the given encoding, or ran out of input in mid-decode.

Instances4Eq, Show, Exception, NFData

UCS-2

6 declarations

UTF-16LE_b

6 declarations

Mimics the base encoding for filesystem operations. This should be total on all inputs (word16 byte arrays).

Note that this has a subtle difference to encodeWithBaseWindows/decodeWithBaseWindows: it doesn't care for the 0x0000 end marker and will as such produce different results. Use takeWhile (/= 'NUL') on the input to recover this behavior.

base encoding

4 declarations

This mimics the filepath encoder base uses on unix (using PEP-383), with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).

This mimics the filepath decoder base uses on unix (using PEP-383), with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).

This mimics the filepath dencoder base uses on windows, with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).

This mimics the filepath decoder base uses on windows, with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).