name:                base32-z-bytestring
version:             1.0.0.0
license:             BSD3
license-file:        LICENSE
author:              Sam Truzjan, Oscoin Engineering Team
maintainer:          Sam Truzjan <pxqr.sta@gmail.com>
copyright:           (c) 2013, Sam Truzjan, 2019 Oscoin Engineering Team
category:            Codec, Data
build-type:          Simple
cabal-version:       >= 1.10
homepage:            https://github.com/oscoin/z-base32-bytestring
bug-reports:         https://github.com/oscoin/z-base32-bytestring/issues
synopsis: Fast z-base32 and z-base32hex codec for ByteStrings
description:
  base32 and base32hex codec according to RFC4648
  <http://tools.ietf.org/html/rfc4648>, extended to support z-base32 encoding
  according to <https://gist.github.com/maaku/8996338#file-bip-ecc32-mediawiki>
  .
  The package API is similar to base64-bytestring.

extra-source-files:    README.md
                     , ChangeLog

source-repository head
  type:                git
  location:            git://github.com/oscoin/z-base32-bytestring.git
  branch:              master

source-repository this
  type:                git
  location:            git://github.com/oscoin/z-base32-bytestring.git
  branch:              master
  tag:                 v0.2.1.0

library
  default-language:    Haskell2010
  default-extensions:
  hs-source-dirs:      src
  exposed-modules:     Data.ByteString.Base32.Z
  other-modules:       Data.ByteString.Base32.Internal
  build-depends:       base        == 4.*
                     , bytestring  >= 0.9
                     , cpu         == 0.1.*
  ghc-options:         -O2 -Wall

test-suite tests
  default-language:    Haskell2010
  default-extensions:
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Main.hs
  other-modules:       Test.Data.ByteString.Base32
  build-depends:       base   == 4.*
                     , z-base32-bytestring
                     , bytestring
                     , hedgehog
                     , tasty
                     , tasty-fail-fast
                     , tasty-hedgehog
                     , tasty-hspec
  ghc-options:         -Wall

benchmark bench
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  hs-source-dirs:      bench
  main-is:             Main.hs
  build-depends:       base == 4.*
                     , z-base32-bytestring
                     , bytestring
                     , criterion
  ghc-options:         -O2 -Wall -fno-warn-orphans