bech32

Fast Haskell bech32, bech32m encoding/decoding (docs.ppad.tech/bech32).
git clone git://git.ppad.tech/bech32.git
Log | Files | Refs | README | LICENSE

ppad-bech32.cabal (1779B)


      1 cabal-version:      3.0
      2 name:               ppad-bech32
      3 version:            0.2.5
      4 synopsis:           bech32 and bech32m encoding/decoding, per BIPs 173 & 350.
      5 license:            MIT
      6 license-file:       LICENSE
      7 author:             Jared Tobin
      8 maintainer:         jared@ppad.tech
      9 category:           Cryptography
     10 build-type:         Simple
     11 tested-with:        GHC == 9.10.3
     12 extra-doc-files:    CHANGELOG
     13 description:
     14   bech32 and bech32m encoding/decoding on strict bytestrings, per BIPs
     15   173 & 350.
     16 
     17 flag llvm
     18   description: Use GHC's LLVM backend.
     19   default:     False
     20   manual:      True
     21 
     22 source-repository head
     23   type:     git
     24   location: git.ppad.tech/bech32.git
     25 
     26 library
     27   default-language: Haskell2010
     28   hs-source-dirs:   lib
     29   ghc-options:
     30       -Wall
     31   if flag(llvm)
     32     ghc-options: -fllvm -O2
     33   exposed-modules:
     34       Data.ByteString.Base32
     35     , Data.ByteString.Bech32.Internal
     36     , Data.ByteString.Bech32
     37     , Data.ByteString.Bech32m
     38   other-modules:
     39       Data.ByteString.Base32.Internal
     40   build-depends:
     41       base >= 4.9 && < 5
     42     , bytestring >= 0.9 && < 0.13
     43 
     44 test-suite bech32-tests
     45   type:                exitcode-stdio-1.0
     46   default-language:    Haskell2010
     47   hs-source-dirs:      test
     48   main-is:             Main.hs
     49   other-modules:
     50       Reference.Bech32
     51 
     52   ghc-options:
     53     -rtsopts -Wall -O2
     54 
     55   build-depends:
     56       base
     57     , array
     58     , bytestring
     59     , ppad-bech32
     60     , tasty
     61     , tasty-quickcheck
     62 
     63 benchmark bech32-bench
     64   type:                exitcode-stdio-1.0
     65   default-language:    Haskell2010
     66   hs-source-dirs:      bench
     67   main-is:             Main.hs
     68   other-modules:
     69       Reference.Bech32
     70 
     71   ghc-options:
     72     -rtsopts -O2 -Wall
     73 
     74   build-depends:
     75       base
     76     , array
     77     , bytestring
     78     , criterion
     79     , deepseq
     80     , ppad-bech32
     81