summaryrefslogtreecommitdiff
path: root/bytes.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'bytes.cabal')
-rw-r--r--bytes.cabal78
1 files changed, 78 insertions, 0 deletions
diff --git a/bytes.cabal b/bytes.cabal
new file mode 100644
index 0000000..813bdbc
--- /dev/null
+++ b/bytes.cabal
@@ -0,0 +1,78 @@
+name: bytes
+category: Data, Serialization
+version: 0.1
+license: BSD3
+cabal-version: >= 1.8
+license-file: LICENSE
+author: Edward A. Kmett
+maintainer: Edward A. Kmett <ekmett@gmail.com>
+stability: experimental
+homepage: http://github.com/analytics/bytes
+bug-reports: http://github.com/analytics/bytes/issues
+copyright: Copyright (C) 2013 Edward A. Kmett
+build-type: Custom
+tested-with: GHC == 7.4.1, GHC == 7.6.1
+synopsis: Sharing code for serialization between binary and cereal
+description: Sharing code for serialization between binary and cereal
+
+extra-source-files:
+ .travis.yml
+ .ghci
+ .gitignore
+ .vim.custom
+ travis/cabal-apt-install
+ travis/config
+ AUTHORS.markdown
+ README.markdown
+ CHANGELOG.markdown
+
+source-repository head
+ type: git
+ location: git://github.com/analytics/bytes.git
+
+-- You can disable the doctests test suite with -f-test-doctests
+flag test-doctests
+ default: True
+ manual: True
+
+flag lib-Werror
+ default: False
+ manual: True
+
+library
+ build-depends:
+ base >= 4.3 && < 5,
+ binary >= 0.5 && < 0.8,
+ bytestring >= 0.9 && < 0.11,
+ cereal >= 0.3.5 && < 0.4,
+ mtl >= 2.0 && < 2.2,
+ transformers >= 0.2 && < 0.4,
+ transformers-compat >= 0.1 && < 1
+
+ exposed-modules:
+ Data.Bytes.Get
+ Data.Bytes.Put
+
+ if flag(lib-Werror)
+ ghc-options: -Werror
+
+ ghc-options: -Wall -fwarn-tabs -O2
+ hs-source-dirs: src
+
+test-suite doctests
+ type: exitcode-stdio-1.0
+ main-is: doctests.hs
+ ghc-options: -Wall -threaded
+ hs-source-dirs: tests
+
+ if !flag(test-doctests)
+ buildable: False
+ else
+ build-depends:
+ base,
+ directory >= 1.0,
+ doctest >= 0.9.1,
+ filepath >= 1.2
+
+ if impl(ghc<7.6.1)
+ ghc-options: -Werror