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

Modulerio-0.1.22.0Haskell2010

RIO.ByteString.Lazy.Partial

Lazy ByteString partial functions. Import as:

import qualified RIO.ByteString.Lazy.Partial as BL'
  • 9 values
  • Packagerio-0.1.22.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