name:                  bencoding
version:               0.2.1.0
license:               BSD3
license-file:          LICENSE
author:                Sam Truzjan
maintainer:            Sam Truzjan <pxqr.sta@gmail.com>
copyright:             (c) 2013, Sam Truzjan
category:              Data
build-type:            Simple
stability:             Experimental
cabal-version:         >= 1.10
tested-with:           GHC==7.4.1
                     , GHC==7.6.3
homepage:              https://github.com/cobit/bencoding
bug-reports:           https://github.com/cobit/bencoding/issues
synopsis:              A library for encoding and decoding of BEncode data.
description:

  A library for encoding and decoding of BEncode data.
  .
  [/Release notes/]
  .
    * /0.1.0.0:/ Initial version.
  .
    * /0.2.0.0:/ Added default decoders/encoders using GHC Generics.
  .
    * /0.2.1.0:/ Arbitrary length integers. (by specification)

extra-source-files:    README.md

source-repository head
  type:                git
  location:            git://github.com/cobit/bencoding.git
  branch:              master

source-repository this
  type:                git
  location:            git://github.com/cobit/bencoding.git
  branch:              master
  tag:                 v0.2.1.0

library
  default-language:    Haskell2010
  default-extensions:  PatternGuards
  hs-source-dirs:      src
  exposed-modules:     Data.BEncode
  build-depends:       base       == 4.*
                     , ghc-prim
                     , deepseq    == 1.3.*
                     , containers >= 0.4
                     , bytestring >= 0.10.0.2
                     , attoparsec >= 0.10
                     , text       >= 0.11
                     , pretty
  ghc-options:         -Wall -fno-warn-unused-do-bind


test-suite properties
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  hs-source-dirs:      tests
  main-is:             properties.hs
  build-depends:       base       == 4.*
                     , ghc-prim

                     , containers >= 0.4
                     , bytestring >= 0.10.0.2
                     , attoparsec >= 0.10

                     , test-framework
                     , test-framework-quickcheck2
                     , QuickCheck
                     , bencoding
  ghc-options:         -Wall -fno-warn-orphans


benchmark bench-comparison
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  hs-source-dirs:      bench
  main-is:             Main.hs
  build-depends:       base == 4.*
                     , ghc-prim

                     , attoparsec >= 0.10
                     , bytestring >= 0.10.0.2

                     , criterion
                     , deepseq

                     , bencoding
                     , bencode     >= 0.5
                     , AttoBencode >= 0.2
  ghc-options:         -O2 -Wall -fno-warn-orphans
