packages feed

secp256k1-haskell-2.0.0: secp256k1-haskell.cabal

cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.39.6.
--
-- see: https://github.com/sol/hpack

name:           secp256k1-haskell
version:        2.0.0
synopsis:       Bindings for secp256k1
description:    Sign and verify signatures using the secp256k1 library.
category:       Crypto
homepage:       http://github.com/jprupp/secp256k1-haskell#readme
bug-reports:    https://github.com/jprupp/secp256k1-haskell/issues
author:         JP Rupp
maintainer:     jprupp@protonmail.ch
license:        MIT
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/jprupp/secp256k1-haskell

flag recovery
  description: Bind the ECDSA public key recovery module of libsecp256k1. The library must have been built with it (--enable-module-recovery), as the packages of the Linux distributions, Homebrew and Nixpkgs are. Turn the flag off for a library built without it.
  manual: True
  default: True

library
  exposed-modules:
      Crypto.Secp256k1
      Crypto.Secp256k1.Internal.Base
      Crypto.Secp256k1.Internal.BaseOps
      Crypto.Secp256k1.Internal.Context
      Crypto.Secp256k1.Internal.ForeignTypes
      Crypto.Secp256k1.Internal.Util
      Paths_secp256k1_haskell
  autogen-modules:
      Paths_secp256k1_haskell
  hs-source-dirs:
      src
  ghc-options: -Wall
  c-sources:
      cbits/illegal_callback.c
  pkgconfig-depends:
      libsecp256k1 >= 0.2.0
  build-depends:
      QuickCheck >=2.9.2
    , base >=4.9 && <5
    , base16 >=2.0
    , bytestring >=0.10.8
    , deepseq >=1.4.2
    , entropy >=0.3.8
    , hashable >=1.2.6
    , string-conversions >=0.4
  default-language: Haskell2010
  if flag(recovery)
    exposed-modules:
        Crypto.Secp256k1.Internal.Recovery
        Crypto.Secp256k1.Internal.RecoveryOps
        Crypto.Secp256k1.Recovery

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Crypto.Secp256k1.Fixtures
      Crypto.Secp256k1.InternalSpec
      Crypto.Secp256k1.RecoverySpec
      Crypto.Secp256k1Spec
      Paths_secp256k1_haskell
  autogen-modules:
      Paths_secp256k1_haskell
  hs-source-dirs:
      test
  ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      HUnit
    , QuickCheck >=2.9.2
    , base >=4.9 && <5
    , base16 >=2.0
    , bytestring >=0.10.8
    , deepseq >=1.4.2
    , entropy >=0.3.8
    , hashable >=1.2.6
    , hspec
    , monad-par
    , mtl
    , secp256k1-haskell
    , string-conversions >=0.4
  default-language: Haskell2010
  if flag(recovery)
    cpp-options: -DRECOVERY
  build-tool-depends: hspec-discover:hspec-discover