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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 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.