base16

Pure Haskell base16 encoding/decoding (docs.ppad.tech/base16).
git clone git://git.ppad.tech/base16.git
Log | Files | Refs | README | LICENSE

ppad-base16.cabal (1897B)


      1 cabal-version:      3.0
      2 name:               ppad-base16
      3 version:            0.2.1
      4 synopsis:           Pure base16 encoding and decoding on bytestrings.
      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   Pure base16 (hexadecimal) encoding and decoding on bytestrings.
     15 
     16 flag llvm
     17   description: Use GHC's LLVM backend.
     18   default:     False
     19   manual:      True
     20 
     21 source-repository head
     22   type:     git
     23   location: git.ppad.tech/base16.git
     24 
     25 library
     26   default-language: Haskell2010
     27   hs-source-dirs:   lib
     28   ghc-options:
     29       -Wall
     30   if flag(llvm)
     31     ghc-options: -fllvm -O2
     32   exposed-modules:
     33       Data.ByteString.Base16
     34   build-depends:
     35       base >= 4.9 && < 5
     36     , bytestring >= 0.9 && < 0.13
     37 
     38 test-suite base16-tests
     39   type:                exitcode-stdio-1.0
     40   default-language:    Haskell2010
     41   hs-source-dirs:      test
     42   main-is:             Main.hs
     43 
     44   ghc-options:
     45     -rtsopts -Wall -O2
     46 
     47   build-depends:
     48       base
     49     , base16-bytestring
     50     , bytestring
     51     , ppad-base16
     52     , tasty
     53     , tasty-hunit
     54     , tasty-quickcheck
     55 
     56 benchmark base16-bench
     57   type:                exitcode-stdio-1.0
     58   default-language:    Haskell2010
     59   hs-source-dirs:      bench
     60   main-is:             Main.hs
     61 
     62   ghc-options:
     63     -rtsopts -O2 -Wall
     64 
     65   build-depends:
     66       base
     67     , base16
     68     , base16-bytestring
     69     , bytestring
     70     , criterion
     71     , ppad-base16
     72 
     73 benchmark base16-weigh
     74   type:                exitcode-stdio-1.0
     75   default-language:    Haskell2010
     76   hs-source-dirs:      bench
     77   main-is:             Weight.hs
     78 
     79   ghc-options:
     80     -rtsopts -O2 -Wall
     81 
     82   build-depends:
     83       base
     84     , base16
     85     , base16-bytestring
     86     , bytestring
     87     , criterion
     88     , ppad-base16
     89     , weigh
     90