@hackage / hashable

A class for types that can be converted to a hash value

Latest1.5.1.0

About

Metadata

  • Last updated , by phadej
  • License BSD-3-Clause
  • Maintained by: Oleg Grenrus <oleg.grenrus@iki.fi>

  • Lottery factor: 2

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.2
  3. 9.8.3
  4. 9.8.2
  5. 9.6.5

Package Flags

Use the -f option with cabal commands to enable flags

    arch-native (off by default)

    Use -march=native when compiling C sources. Portable implementation is 15-50% slower. Consider enabling this flag if hashing performance is important.

    random-initial-seed (off by default)

    Randomly initialize the initial seed on each final executable invocation This is useful for catching cases when you rely on (non-existent) stability of hashable's hash functions. This is not a security feature.

Readme

The hashable package

This package defines a class, Hashable, for types that can be converted to a hash value. This class exists for the benefit of hashing-based data structures. The package provides instances for basic types and a way to combine hash values.