bech32

Pure 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 (1723B)


      1 cabal-version:      3.0
      2 name:               ppad-bech32
      3 version:            0.2.3
      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.8.1
     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   build-depends:
     39       base >= 4.9 && < 5
     40     , bytestring >= 0.9 && < 0.13
     41 
     42 test-suite bech32-tests
     43   type:                exitcode-stdio-1.0
     44   default-language:    Haskell2010
     45   hs-source-dirs:      test
     46   main-is:             Main.hs
     47   other-modules:
     48       Reference.Bech32
     49 
     50   ghc-options:
     51     -rtsopts -Wall -O2
     52 
     53   build-depends:
     54       base
     55     , array
     56     , bytestring
     57     , ppad-bech32
     58     , tasty
     59     , tasty-quickcheck
     60 
     61 benchmark bech32-bench
     62   type:                exitcode-stdio-1.0
     63   default-language:    Haskell2010
     64   hs-source-dirs:      bench
     65   main-is:             Main.hs
     66   other-modules:
     67       Reference.Bech32
     68 
     69   ghc-options:
     70     -rtsopts -O2 -Wall
     71 
     72   build-depends:
     73       base
     74     , array
     75     , bytestring
     76     , criterion
     77     , deepseq
     78     , ppad-bech32
     79