packages feed

bitcoin-compact-filters-0.1.0.2: bitcoin-compact-filters.cabal

cabal-version:       2.2
name:                bitcoin-compact-filters
version:             0.1.0.2
synopsis:            BIP 158 compact block filters

copyright:           2020 Bitnomial, Inc.
license:             BSD-3-Clause
license-file:        LICENSE
author:              Ian Shipman
maintainer:          ics@gambolingpangolin.com

build-type:          Simple
extra-source-files:  CHANGELOG.md
data-files:
    examples/*.json

tested-with:
    GHC == 8.10.4
  , GHC == 8.10.5
  , GHC == 9.0.1

common core
  default-language: Haskell2010
  ghc-options:      -Wall
  build-depends:
      base >=4.12 && <4.16
    , bytestring >=0.10 && <0.12
    , cereal ^>=0.5
    , haskoin-core >=0.17.1 && <0.21
    , text ^>=1.2

     
library
  import: core
  hs-source-dirs:   src

  exposed-modules:
    Bitcoin.CompactFilter

  build-depends:
      bitstream ^>=0.3.0.1
    , transformers ^>=0.5
    , memory >=0.15 && <0.17


test-suite bitcoin-cf-tests
  import:         core
  type:           exitcode-stdio-1.0
  hs-source-dirs: test
  main-is:        Main.hs

  other-modules:
    Test.CompactFilter
    Test.Examples.Bip
    Test.Examples.Mainnet
    Test.Util

    Paths_bitcoin_compact_filters

  autogen-modules:
    Paths_bitcoin_compact_filters

  build-depends:
      aeson >=1.0 && <1.6
    , bitcoin-compact-filters
    , tasty >=1.0 && <1.5
    , tasty-hunit >=0.9 && <0.11
    , tasty-quickcheck >=0.8.1 && <0.11