Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
crypton Crypto.Hash Update the context with the first N bytes of a bytestring and return the digest. The code path is independent from N but much slower than a normal hashUpdate. The function can be called for the last bytes of a message, in order to exclude a variable padding, without leaking the padding length. The begining of the message, never impacted by the padding, should preferably go through hashUpdate for better performance.
hashPrefix :: (ByteArrayAccess ba, HashAlgorithmPrefix a) => ba -> Int -> Digest acrypton Crypto.Hash Hash the first N bytes of a bytestring, with code path independent from N.
hashPrefixWith :: (ByteArrayAccess ba, HashAlgorithmPrefix alg) => alg -> ba -> Int -> Digest algcrypton Crypto.Hash Run the hashPrefix function but takes an explicit hash algorithm parameter
class HashAlgorithm a =>
HashAlgorithmPrefix acrypton Crypto.Hash.Algorithms Hashing algorithms with a constant-time implementation.
generatePrefix :: MonadRandom m => Int -> m Integercrypton Crypto.Number.Generate Generate a number for a specific size of bits.
- generateParams n Nothing False generates bytes and uses the suffix of n bits
- generatePrefix n generates bytes and uses the prefix of n bits
InfixConstructor :: ConstructorVariantth-abstraction Language.Haskell.TH.Datatype Constructor without field names that is declared infix
reifyFixityCompat :: Name -> Q (Maybe Fixity)th-abstraction Language.Haskell.TH.Datatype Backwards compatibility wrapper for Fixity lookup. In template-haskell-2.11.0.0 and later, the answer will always be Just of a fixity. Before template-haskell-2.11.0.0 it was only possible to determine fixity information for variables, class methods, and data constructors. In this case for type operators the answer could be Nothing, which indicates that the answer is unavailable.
resolveInfixT :: Type -> Q Typeth-abstraction Language.Haskell.TH.Datatype Resolve any infix type application in a type using the fixities that are currently available. Starting in `template-haskell-2.11` types could contain unresolved infix applications.
showFixity :: Fixity -> Stringth-abstraction Language.Haskell.TH.Datatype Render a Fixity as it would appear in Haskell source. Example: infixl 5
showFixityDirection :: FixityDirection -> Stringth-abstraction Language.Haskell.TH.Datatype Render a FixityDirection like it would appear in Haskell source. Examples: infixl infixr infix