Commit f9a49eaa authored by Clint Adams's avatar Clint Adams
Browse files

more patches

parent 99c9716c
Loading
Loading
Loading
Loading
+79 −0
Original line number Diff line number Diff line
name:                cryptohash-md5
version:             0.11.100.1
description:
    A practical incremental and one-pass, pure API to the
    <https://en.wikipedia.org/wiki/MD5 MD5 hash algorithm>
    (including <https://en.wikipedia.org/wiki/HMAC HMAC> support)
    with performance close to the fastest implementations available in other languages.
    .
    The implementation is made in C with a haskell FFI wrapper that hides the C implementation.
    .
    NOTE: This package has been forked off @cryptohash-0.11.7@ because the @cryptohash@ package
    has been deprecated and so this package continues to satisfy the need for a lightweight package
    providing the MD5 hash algorithm without any dependencies on packages other than
    @base@ and @bytestring@.
    .
    Consequently, this package can be used as a drop-in replacement for @cryptohash@'s
    "Crypto.Hash.MD5" module, though with a clearly smaller footprint.

license:             BSD3
license-file:        LICENSE
copyright:           Vincent Hanquez, Herbert Valerio Riedel
maintainer:          Herbert Valerio Riedel <hvr@gnu.org>
homepage:            https://github.com/hvr/cryptohash-md5
bug-reports:         https://github.com/hvr/cryptohash-md5/issues
synopsis:            Fast, pure and practical MD5 implementation
category:            Data, Cryptography
build-type:          Simple
cabal-version:       >=1.10
tested-with:         GHC == 7.4.2
                   , GHC == 7.6.3
                   , GHC == 7.8.4
                   , GHC == 7.10.3
                   , GHC == 8.0.1

extra-source-files:  cbits/md5.h
                     changelog.md

source-repository head
  type:     git
  location: https://github.com/hvr/cryptohash-md5.git

library
  default-language:  Haskell2010
  build-depends:     base             >= 4.5   && < 4.10
                   , bytestring       >= 0.9.2 && < 0.11

  hs-source-dirs:    src
  exposed-modules:   Crypto.Hash.MD5
  ghc-options:       -Wall -fno-cse -O2
  cc-options:        -Wall -O3
  c-sources:         cbits/md5.c
  include-dirs:      cbits

test-suite test-md5
  default-language:  Haskell2010
  other-extensions:  OverloadedStrings
  type:              exitcode-stdio-1.0
  hs-source-dirs:    src-tests
  main-is:           test-md5.hs
  ghc-options:       -Wall -threaded
  build-depends:     cryptohash-md5
                   , base
                   , bytestring

                   , base16-bytestring >= 0.1.1  && < 0.2
                   , pureMD5           >= 2.1.3  && < 2.2
                   , tasty             == 0.11.*
                   , tasty-quickcheck  == 0.8.*
                   , tasty-hunit       == 0.9.*

benchmark bench-md5
  default-language:  Haskell2010
  type:              exitcode-stdio-1.0
  main-is:           bench-md5.hs
  hs-source-dirs:    src-bench
  build-depends:     cryptohash-md5
                   , base
                   , bytestring
                   , criterion        == 1.1.*
+78 −0
Original line number Diff line number Diff line
name:                cryptohash-sha1
version:             0.11.100.1
description:
    A practical incremental and one-pass, pure API to the
    <https://en.wikipedia.org/wiki/SHA-1 SHA-1 hash algorithm>
    (including <https://en.wikipedia.org/wiki/HMAC HMAC> support)
    with performance close to the fastest implementations available in other languages.
    .
    The implementation is made in C with a haskell FFI wrapper that hides the C implementation.
    .
    NOTE: This package has been forked off @cryptohash-0.11.7@ because the @cryptohash@ package has been
    deprecated and so this package continues to satisfy the need for a lightweight package
    providing the SHA1 hash algorithm without any dependencies on packages other than
    @base@ and @bytestring@.
    .
    Consequently, this package can be used as a drop-in replacement for @cryptohash@'s
    "Crypto.Hash.SHA1" module, though with a clearly smaller footprint.

license:             BSD3
license-file:        LICENSE
copyright:           Vincent Hanquez, Herbert Valerio Riedel
maintainer:          Herbert Valerio Riedel <hvr@gnu.org>
homepage:            https://github.com/hvr/cryptohash-sha1
bug-reports:         https://github.com/hvr/cryptohash-sha1/issues
synopsis:            Fast, pure and practical SHA-1 implementation
category:            Data, Cryptography
build-type:          Simple
cabal-version:       >=1.10
tested-with:         GHC == 7.4.2
                   , GHC == 7.6.3
                   , GHC == 7.8.4
                   , GHC == 7.10.3
                   , GHC == 8.0.1

extra-source-files:  cbits/sha1.h
                     changelog.md

source-repository head
  type:     git
  location: https://github.com/hvr/cryptohash-sha1.git

library
  default-language:  Haskell2010
  build-depends:     base             >= 4.5   && < 4.10
                   , bytestring       >= 0.9.2 && < 0.11

  hs-source-dirs:    src
  exposed-modules:   Crypto.Hash.SHA1
  ghc-options:       -Wall -fno-cse -O2
  cc-options:        -Wall -O3
  c-sources:         cbits/sha1.c
  include-dirs:      cbits

test-suite test-sha1
  default-language:  Haskell2010
  other-extensions:  OverloadedStrings
  type:              exitcode-stdio-1.0
  hs-source-dirs:    src-tests
  main-is:           test-sha1.hs
  build-depends:     cryptohash-sha1
                   , base
                   , bytestring

                   , base16-bytestring >= 0.1.1  && < 0.2
                   , SHA               >= 1.6.4  && < 1.7
                   , tasty             == 0.11.*
                   , tasty-quickcheck  == 0.8.*
                   , tasty-hunit       == 0.9.*

benchmark bench-sha1
  default-language:  Haskell2010
  type:              exitcode-stdio-1.0
  main-is:           bench-sha1.hs
  hs-source-dirs:    src-bench
  build-depends:     cryptohash-sha1
                   , base
                   , bytestring
                   , criterion        == 1.1.*
+128 −0
Original line number Diff line number Diff line
cabal-version:       1.12
name:                cryptohash-sha256
version:             0.11.101.0

synopsis:            Fast, pure and practical SHA-256 implementation
description: {

A practical incremental and one-pass, pure API to
the [SHA-256 cryptographic hash algorithm](https://en.wikipedia.org/wiki/SHA-2) according
to [FIPS 180-4](http://dx.doi.org/10.6028/NIST.FIPS.180-4)
with performance close to the fastest implementations available in other languages.
.
The core SHA-256 algorithm is implemented in C and is thus expected
to be as fast as the standard [sha256sum(1) tool](https://linux.die.net/man/1/sha256sum);
for instance, on an /Intel Core i7-3770/ at 3.40GHz this implementation can
compute a SHA-256 hash over 230 MiB of data in under one second.
(If, instead, you require a pure Haskell implementation and performance is secondary, please refer to the [SHA package](https://hackage.haskell.org/package/SHA).)
.

.
Additionally, this package provides support for
.
- HMAC-SHA-256: SHA-256-based [Hashed Message Authentication Codes](https://en.wikipedia.org/wiki/HMAC) (HMAC)
- HKDF-SHA-256: [HMAC-SHA-256-based Key Derivation Function](https://en.wikipedia.org/wiki/HKDF) (HKDF)
.
conforming to [RFC6234](https://tools.ietf.org/html/rfc6234), [RFC4231](https://tools.ietf.org/html/rfc4231), [RFC5869](https://tools.ietf.org/html/rfc5869), et al..
.
=== Relationship to the @cryptohash@ package and its API
.
This package has been originally a fork of @cryptohash-0.11.7@ because the @cryptohash@
package had been deprecated and so this package continues to satisfy the need for a
lightweight package providing the SHA-256 hash algorithm without any dependencies on packages
other than @base@ and @bytestring@. The API exposed by @cryptohash-sha256-0.11.*@'s
"Crypto.Hash.SHA256" module is guaranteed to remain a compatible superset of the API provided
by the @cryptohash-0.11.7@'s module of the same name.
.
Consequently, this package is designed to be used as a drop-in replacement for @cryptohash-0.11.7@'s
"Crypto.Hash.SHA256" module, though with
a [clearly smaller footprint by almost 3 orders of magnitude](https://www.reddit.com/r/haskell/comments/5lxv75/psa_please_use_unique_module_names_when_uploading/dbzegx3/).

}

license:             BSD3
license-file:        LICENSE
copyright:           Vincent Hanquez, Herbert Valerio Riedel
maintainer:          Herbert Valerio Riedel <hvr@gnu.org>
homepage:            https://github.com/hvr/cryptohash-sha256
bug-reports:         https://github.com/hvr/cryptohash-sha256/issues
category:            Data, Cryptography
build-type:          Simple
tested-with:         GHC == 7.4.2
                   , GHC == 7.6.3
                   , GHC == 7.8.4
                   , GHC == 7.10.3
                   , GHC == 8.0.2
                   , GHC == 8.2.1

extra-source-files:  cbits/hs_sha256.h
                     changelog.md

source-repository head
  type:     git
  location: https://github.com/hvr/cryptohash-sha256.git

flag exe
  description: Enable building @sha256sum@ executable
  manual:   True
  default:  False

library
  default-language:  Haskell2010
  other-extensions:  BangPatterns
                     CApiFFI
                     Trustworthy
                     Unsafe

  build-depends:     base             >= 4.5   && < 4.11
                   , bytestring       >= 0.9.2 && < 0.11

  ghc-options:       -Wall

  hs-source-dirs:    src
  exposed-modules:   Crypto.Hash.SHA256
  other-modules:     Crypto.Hash.SHA256.FFI
  include-dirs:      cbits

executable sha256sum
  hs-source-dirs:    src-exe
  main-is:           sha256sum.hs
  ghc-options:       -Wall -threaded
  if flag(exe)
    default-language:  Haskell2010
    other-extensions:  RecordWildCards
    build-depends:     cryptohash-sha256
                     , base
                     , bytestring

                     , base16-bytestring >= 0.1.1  && < 0.2
  else
    buildable:       False

test-suite test-sha256
  default-language:  Haskell2010
  other-extensions:  OverloadedStrings
  type:              exitcode-stdio-1.0
  hs-source-dirs:    src-tests
  main-is:           test-sha256.hs
  ghc-options:       -Wall -threaded
  build-depends:     cryptohash-sha256
                   , base
                   , bytestring

                   , base16-bytestring >= 0.1.1  && < 0.2
                   , SHA               >= 1.6.4  && < 1.7
                   , tasty             == 0.11.*
                   , tasty-quickcheck  == 0.8.*
                   , tasty-hunit       == 0.9.*

benchmark bench-sha256
  default-language:  Haskell2010
  other-extensions:  BangPatterns
  type:              exitcode-stdio-1.0
  main-is:           bench-sha256.hs
  hs-source-dirs:    src-bench
  build-depends:     cryptohash-sha256
                   , base
                   , bytestring
                   , criterion        == 1.1.*
+48 −0
Original line number Diff line number Diff line
name:                edit-distance
version:             0.2.2.1
cabal-version:       >= 1.10
category:            Algorithms
synopsis:            Levenshtein and restricted Damerau-Levenshtein edit distances
description:         Optimized edit distances for fuzzy matching, including Levenshtein and restricted Damerau-Levenshtein algorithms.
license:             BSD3
license-File:        LICENSE
extra-source-files:  README.md
author:              Max Bolingbroke <batterseapower@hotmail.com>
copyright:           (c) 2008-2013 Maximilian Bolinbroke
maintainer:          Oleg Grenrus <oleg.grenrus@iki.fi>
homepage:            http://github.com/phadej/edit-distance
build-type:          Simple

library
  default-language:       Haskell98
  exposed-modules:        Text.EditDistance
  other-modules:          Text.EditDistance.EditCosts
                          Text.EditDistance.SquareSTUArray
                          Text.EditDistance.STUArray
                          Text.EditDistance.Bits
                          Text.EditDistance.MonadUtilities
                          Text.EditDistance.ArrayUtilities
  build-depends:          base >= 4.5 && < 5, array >= 0.1, random >= 1.0, containers >= 0.1.0.1
  ghc-options:            -O2 -Wall

test-suite edit-distance-tests
  default-language:       Haskell98
  main-is:                Text/EditDistance/Tests.hs
  other-modules:          Text.EditDistance.Tests.EditOperationOntology
                          Text.EditDistance.Tests.Properties
  type:                   exitcode-stdio-1.0
  ghc-options:            -O2 -Wall
  build-depends:          base >= 4.5 && < 5, array >= 0.1, random >= 1.0, containers >= 0.1.0.1,
                          test-framework >= 0.1.1, QuickCheck >= 2.4 && <2.9, test-framework-quickcheck2

benchmark edit-distance-benchmark
  default-language:       Haskell98
  main-is:                Text/EditDistance/Benchmark.hs
  type:                   exitcode-stdio-1.0
  build-depends:          base >= 4.5 && < 5, array >= 0.1, random >= 1.0, time >= 1.0, process >= 1.0,
                          deepseq >= 1.2, unix >= 2.3, criterion >= 1.1, containers >= 0.1.0.1
  ghc-options:            -O2

source-repository head
  type:     git
  location: https://github.com/phadej/edit-distance.git
+4 −2
Original line number Diff line number Diff line
@@ -287,6 +287,7 @@ generic-deriving 1.12.1
generics-sop 0.3.2.0
generic-trie 0.3.0.2 ignore # BROKEN: LTS 11: newer base
geniplate-mirror 0.7.6
genvalidity 0.4.0.4
getopt-generics 0.13.0.2
ghc-events 0.7.2
ghc-mod 5.8.0.0 binary ignore # BROKEN: LTS 11: newer base
@@ -356,7 +357,7 @@ HDBC-sqlite3 2.3.3.1 key
hdevtools 0.1.6.1 binary
hedgewars-server 0.1 meta key
hedis 0.10.1 key notest
heist 1.0.1.2
heist 1.0.1.2 notest
here 1.2.13
heredoc 0.2.0.0
hex 0.1.2
@@ -613,7 +614,7 @@ parsec 3.1.13.0 notest
parser-combinators 0.4.0
parsers 0.12.8
patat 0.6.1.0 binary ignore # BROKEN: LTS 11: newer ansi-terminal
path 0.6.1
path 0.6.1 notest # missing deps
path-io 1.3.3
path-pieces 0.2.1
patience 0.1.1
@@ -897,6 +898,7 @@ uuagc-cabal 1.0.4.0
uuid 1.3.13
uuid-types 1.0.3
uulib 0.9.20
validity 0.4.0.4
vault 0.3.1.0
vector 0.12.0.1 notest # Testing disabled during transition to 7.10
vector-algorithms 0.7.0.1 # Ahead due to vector
Loading