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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulebyteable-0.1.1Haskell98

Data.Byteable

  • 1 class
  • 1 value
  • Packagebyteable-0.1.1
  • Exports2
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceByteable.hs
valueconstEqBytes :: Byteable a => a -> a -> Bool
#

A constant time equality test for 2 byteable objects.

If objects are of 2 different sizes, the function will abort early without comparing any bytes.

compared to == , this function will go over all the bytes present before yielding a result even when knowing the overall result early in the processing.