summaryrefslogtreecommitdiff
path: root/base32-bytestring.cabal
blob: fa45827de72a4b0af959a666382eb00a7e9e2ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name:                base32-bytestring
version:             0.1.1.1
license:             BSD3
license-file:        LICENSE
author:              Sam Truzjan
maintainer:          Sam Truzjan <pxqr.sta@gmail.com>
copyright:           (c) 2013, Sam Truzjan
category:            Codec, Data
build-type:          Simple
cabal-version:       >= 1.10
homepage:            https://github.com/pxqr/base32-bytestring
bug-reports:         https://github.com/pxqr/base32-bytestring/issues
synopsis: Fast base32 and base32hex codec for ByteStrings
description:
  base32 and base32hex codec according to RFC4648
  <http://tools.ietf.org/html/rfc4648>
  .
  The package API is similar to base64-bytestring.

extra-source-files:    README.md
                     , ChangeLog

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

source-repository this
  type:                git
  location:            git://github.com/pxqr/base32-bytestring.git
  branch:              master
  tag:                 v0.1.1.1

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

test-suite spec
  default-language:    Haskell2010
  default-extensions:
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             Spec.hs
  build-depends:       base   == 4.*
                     , base32-bytestring
                     , bytestring
                     , hspec
                     , QuickCheck
  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.*
                     , base32-bytestring
                     , bytestring
                     , criterion
  ghc-options:         -O2 -Wall -fno-warn-orphans