HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

  • Packageos-string-2.0.11
  • Exports32
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs

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.

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 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).

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