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

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.