Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
160 lines (139 sloc) 4.52 KB
Name: hashable
Version: 1.2.0.8
Synopsis: A class for types that can be converted to a hash value
Description: 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.
Homepage: http://github.com/tibbe/hashable
License: BSD3
License-file: LICENSE
Author: Milan Straka <fox@ucw.cz>
Johan Tibell <johan.tibell@gmail.com>
Maintainer: johan.tibell@gmail.com
bug-reports: https://github.com/tibbe/hashable/issues
Stability: Provisional
Category: Data
Build-type: Simple
Cabal-version: >=1.8
-- tests/Properties.hs shouldn't have to go here, but the source files
-- for the test-suite stanzas don't get picked up by `cabal sdist`.
Extra-source-files:
CHANGES, README.md, tests/Properties.hs, benchmarks/Benchmarks.hs,
cbits/siphash.h
Flag integer-gmp
Description: Are we using integer-gmp to provide fast Integer instances?
Default: True
Flag fixed-salt
Description: Do we use a single fixed salt every time the program runs?
Default: False
Flag sse2
Description: Do we want to assume that a target supports SSE 2?
Default: True
Flag sse41
Description: Do we want to assume that a target supports SSE 4.1?
Default: False
Library
Exposed-modules: Data.Hashable
Other-modules: Data.Hashable.Class
Build-depends: base >= 4.0 && < 5.0,
bytestring >= 0.9
if impl(ghc)
Build-depends: ghc-prim,
text >= 0.11.0.5
if impl(ghc) && flag(integer-gmp)
Build-depends: integer-gmp >= 0.2
if impl(ghc >= 7.2.1)
CPP-Options: -DGENERICS
Other-modules: Data.Hashable.Generic
C-sources:
cbits/inthash.c
cbits/siphash.c
if arch(i386) && flag(sse2)
CPP-Options: -DHAVE_SSE2
C-sources: cbits/siphash-sse2.c
if flag(sse41)
CPP-Options: -DHAVE_SSE41
C-sources: cbits/siphash-sse41.c
Ghc-options: -Wall
if impl(ghc >= 6.8)
Ghc-options: -fwarn-tabs
if flag(fixed-salt)
Cpp-options: -DFIXED_SALT
else
c-sources: cbits/getRandomBytes.c
other-modules: Data.Hashable.RandomSource
if os(windows)
extra-libraries: advapi32
Test-suite tests
Type: exitcode-stdio-1.0
Hs-source-dirs: tests
Main-is: Main.hs
Other-modules: Properties Regress
Build-depends: base >= 4.0 && < 5.0,
bytestring,
ghc-prim,
hashable,
test-framework >= 0.3.3,
test-framework-hunit,
test-framework-quickcheck2 >= 0.2.9,
HUnit,
QuickCheck >= 2.4.0.1,
random == 1.0.*,
text >= 0.11.0.5
if !os(windows)
Build-depends: unix
CPP-options: -DHAVE_MMAP
Other-modules: Regress.Mmap
Ghc-options: -Wall -fno-warn-orphans
if impl(ghc >= 7.2.1)
CPP-Options: -DGENERICS
benchmark benchmarks
-- We cannot depend on the hashable library directly as that creates
-- a dependency cycle.
hs-source-dirs: . benchmarks
main-is: Benchmarks.hs
other-modules:
Data.Hashable
Data.Hashable.Class
Data.Hashable.RandomSource
type: exitcode-stdio-1.0
build-depends:
base,
bytestring,
criterion,
ghc-prim,
siphash,
text
if impl(ghc)
Build-depends: ghc-prim,
text >= 0.11.0.5
if impl(ghc) && flag(integer-gmp)
Build-depends: integer-gmp >= 0.2
c-sources:
cbits/inthash.c
cbits/siphash.c
benchmarks/cbits/fnv.c
benchmarks/cbits/inthash.c
if (arch(i386) || arch(x86_64)) && flag(sse2)
cpp-options: -DHAVE_SSE2
c-sources:
cbits/siphash-sse2.c
if flag(sse41)
cpp-options: -DHAVE_SSE41
c-sources:
cbits/siphash-sse41.c
Ghc-options: -Wall -O2
if impl(ghc >= 6.8)
Ghc-options: -fwarn-tabs
if flag(fixed-salt)
Cpp-options: -DFIXED_SALT
else
c-sources: cbits/getRandomBytes.c
other-modules: Data.Hashable.RandomSource
if os(windows)
extra-libraries: advapi32
source-repository head
type: git
location: https://github.com/tibbe/hashable.git
Jump to Line
Something went wrong with that request. Please try again.