From 3c82f6740cfab315892d6cf0186ec0b8188d8d57 Mon Sep 17 00:00:00 2001 From: Sam T Date: Sun, 31 Mar 2013 15:44:10 +0400 Subject: add src --- bencoding.cabal | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 bencoding.cabal (limited to 'bencoding.cabal') diff --git a/bencoding.cabal b/bencoding.cabal new file mode 100644 index 0000000..d4d9f16 --- /dev/null +++ b/bencoding.cabal @@ -0,0 +1,76 @@ +name: bencoding +version: 0.1.0.0 +synopsis: +description: +license: MIT +license-file: LICENSE +author: Sam T. +maintainer: Sam T. +copyright: (c) 2013, Sam T. +category: Codec, Data +build-type: Simple +cabal-version: >= 1.8 + +source-repository head + type: git + location: https://github.com/fmap/bencoding.git + + +library + exposed-modules: Data.BEncode + other-modules: + build-depends: base == 4.5.* + , containers >= 0.4.0 + , bytestring >= 0.10.2.0 + , attoparsec >= 0.10.4.0 + , ansi-wl-pprint + + hs-source-dirs: src + + ghc-options: -Wall -fno-warn-unused-do-bind -Werror + +executable pp + main-is: pp.hs + build-depends: base == 4.5.* + , bytestring >= 0.10.2.0 + , bencoding >= 0.1.0.0 + + hs-source-dirs: pp + ghc-options: -Wall -Werror -O2 + +test-suite properties + type: exitcode-stdio-1.0 + main-is: properties.hs + hs-source-dirs: tests + + build-depends: base == 4.5.* + , containers >= 0.4.0 + , bytestring >= 0.10.2.0 + , attoparsec >= 0.10.4.0 + , ansi-wl-pprint + + , test-framework + , test-framework-quickcheck2 + , QuickCheck + , bencoding >= 0.1.0.0 + + ghc-options: -Wall -fno-warn-orphans + + +benchmark bench-comparison + type: exitcode-stdio-1.0 + main-is: Main.hs + hs-source-dirs: bench + + build-depends: base == 4.5.* + , attoparsec >= 0.10.4.0 + , bytestring >= 0.10.2.0 + + , criterion + , deepseq + + , bencoding >= 0.1.0.0 + , bencode >= 0.5 + , AttoBencode >= 0.2.0.1 + + ghc-options: -O2 -Wall -fno-warn-orphans -- cgit v1.2.3