O(1) Extract the first element of a ByteString, which must be non-empty.
This is a partial function, consider using uncons instead.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulerio-0.1.22.0Haskell2010
Lazy ByteString partial functions. Import as:
import qualified RIO.ByteString.Lazy.Partial as BL'O(1) Extract the first element of a ByteString, which must be non-empty.
This is a partial function, consider using uncons instead.
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.
O(1) Extract the elements after the head of a ByteString, which must be non-empty.
This is a partial function, consider using uncons instead.
O(n/c) Returns all the elements of a ByteString except the last one.
This is a partial function, consider using unsnoc instead.
ByteStrings (folds)foldl1 is a variant of foldl that has no starting value argument, and thus must be applied to non-empty ByteStrings.
foldr1 is a variant of foldr that has no starting value argument, and thus must be applied to non-empty ByteStrings
O(n) maximum returns the maximum value from a ByteString
O(n) minimum returns the minimum value from a ByteString