packages feed

base32-0.2.2.0: base32.cabal

cabal-version:      2.0
name:               base32
version:            0.2.2.0
synopsis:           Fast RFC 4648-compliant Base32 encoding
description:
  RFC 4648-compliant Base32 encodings and decodings.
  This library provides performant encoding and decoding primitives, as well as support for textual values.

homepage:           https://github.com/emilypi/base32
bug-reports:        https://github.com/emilypi/base32/issues
license:            BSD3
license-file:       LICENSE
author:             Emily Pillmore
maintainer:         emilypi@cohomolo.gy
copyright:          (c) 2020-2022 Emily Pillmore
category:           Data
build-type:         Simple
extra-source-files:
  CHANGELOG.md
  README.md

tested-with:
  GHC ==8.10.7 || ==9.0.2 || ==9.2.2

source-repository head
  type:     git
  location: https://github.com/emilypi/base32.git

library
  exposed-modules:
    Data.ByteString.Base32
    Data.ByteString.Base32.Hex
    Data.ByteString.Base32.Internal
    Data.ByteString.Lazy.Base32
    Data.ByteString.Lazy.Base32.Hex
    Data.ByteString.Short.Base32
    Data.ByteString.Short.Base32.Hex
    Data.Text.Encoding.Base32
    Data.Text.Encoding.Base32.Error
    Data.Text.Encoding.Base32.Hex
    Data.Text.Lazy.Encoding.Base32
    Data.Text.Lazy.Encoding.Base32.Hex
    Data.Text.Short.Encoding.Base32
    Data.Text.Short.Encoding.Base32.Hex

  other-modules:
    Data.ByteString.Base32.Internal.Head
    Data.ByteString.Base32.Internal.Loop
    Data.ByteString.Base32.Internal.Tables
    Data.ByteString.Base32.Internal.Tail
    Data.ByteString.Base32.Internal.Utils

  build-depends:
      base           >=4.14     && <4.17
    , bytestring     >=0.10     && <0.12
    , deepseq        ^>=1.4
    , text           ^>=1.2
    , text-short     ^>=0.1

  hs-source-dirs:   src
  default-language: Haskell2010
  ghc-options:      -Wall

test-suite tasty
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  other-modules:    Internal
  main-is:          Main.hs
  build-depends:
      base               >=4.14 && <4.17
    , base32
    , bytestring
    , memory
    , QuickCheck
    , random-bytestring
    , tasty
    , tasty-hunit
    , tasty-quickcheck
    , text
    , text-short

benchmark bench
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  hs-source-dirs:   benchmarks
  main-is:          Base32Bench.hs
  build-depends:
      base               >=4.14 && <4.17
    , base32
    , bytestring
    , criterion
    , deepseq
    , memory
    , random-bytestring
    , text