HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Modulerio-0.1.25.0Haskell2010

RIO.ByteString.Lazy.Partial

Lazy ByteString partial functions. Import as:

import qualified RIO.ByteString.Lazy.Partial as BL'
  • 9 values
  • Packagerio-0.1.25.0
  • Exports9
  • LanguageHaskell2010
  • LicenceMIT
  • SourcePartial.hs

Basic interface

4 declarations
valuelast :: HasCallStack => ByteString -> Word8
#

O(n/c) Extract the last element of a ByteString, which must be finite and non-empty.

This is a partial function, consider using unsnoc instead.

Reducing ByteStrings (folds)

3 declarations

Special folds