HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

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