cql.cabal 2.82 KB
Newer Older
Toralf Wittner's avatar
Toralf Wittner committed
1
name:                 cql
2
version:              3.0.1
Toralf Wittner's avatar
Toralf Wittner committed
3 4 5 6 7 8
synopsis:             Cassandra CQL binary protocol.
stability:            experimental
license:              OtherLicense
license-file:         LICENSE
author:               Toralf Wittner, Roman S. Borschel
maintainer:           Toralf Wittner <tw@dtex.org>
9
copyright:            2014 Toralf Wittner, Roman S. Borschel
Toralf Wittner's avatar
Toralf Wittner committed
10 11
homepage:             https://github.com/twittner/cql/
bug-reports:          https://github.com/twittner/cql/issues
Toralf Wittner's avatar
Toralf Wittner committed
12 13 14 15 16 17
category:             Database
build-type:           Simple
cabal-version:        >= 1.10
extra-source-files:   README.md

description:
18 19 20 21 22 23 24 25 26 27
    Implementation of Cassandra's CQL Binary Protocol
    <https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v2.spec Version 2>
    and
    <https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v3.spec Version 3>.
    .
    It provides encoding and decoding functionality as well as representations
    of the various protocol related types.
    .
    Thus it can serve as a building block for writing Cassandra drivers, such
    as <http://hackage.haskell.org/package/cql-io cql-io>.
Toralf Wittner's avatar
Toralf Wittner committed
28 29 30 31 32 33 34 35 36 37 38 39

source-repository head
    type:             git
    location:         git@github.com:twittner/cql.git

library
    default-language: Haskell2010
    hs-source-dirs:   src
    ghc-options:      -Wall -O2 -fwarn-tabs -funbox-strict-fields
    ghc-prof-options: -prof -auto-all

    exposed-modules:
Toralf Wittner's avatar
Toralf Wittner committed
40
        Database.CQL.Protocol
41
        Database.CQL.Protocol.Internal
Toralf Wittner's avatar
Toralf Wittner committed
42 43

    other-modules:
Toralf Wittner's avatar
Toralf Wittner committed
44 45
        Database.CQL.Protocol.Class
        Database.CQL.Protocol.Codec
46
        Database.CQL.Protocol.Record
47
        Database.CQL.Protocol.Tuple
48
        Database.CQL.Protocol.Tuple.TH
Toralf Wittner's avatar
Toralf Wittner committed
49
        Database.CQL.Protocol.Types
Toralf Wittner's avatar
Toralf Wittner committed
50 51 52
        Database.CQL.Protocol.Header
        Database.CQL.Protocol.Request
        Database.CQL.Protocol.Response
Toralf Wittner's avatar
Toralf Wittner committed
53 54

    build-depends:
55 56
          base             >= 4.5    && < 5.0
        , bytestring       >= 0.10   && < 1.0
57
        , cereal           >= 0.3    && < 0.5
58
        , Decimal          >= 0.3    && < 1.0
59
        , iproute          >= 1.3    && < 1.4
60 61
        , network          >= 2.4    && < 3.0
        , text             >= 0.11   && < 2.0
62
        , template-haskell
63 64 65
        , time             >= 1.4    && < 2.0
        , transformers     >= 0.3    && < 0.5
        , uuid             >= 1.2.6  && < 2.0
66 67 68 69 70 71 72

test-suite cql-tests
    type:             exitcode-stdio-1.0
    default-language: Haskell2010
    main-is:          Main.hs
    hs-source-dirs:   test
    ghc-options:      -threaded -Wall -O2 -fwarn-tabs
73
    other-modules:    Tests
74 75 76 77 78 79 80

    build-depends:
          base
        , bytestring
        , cereal
        , cql
        , Decimal
81 82
        , iproute
        , network
83
        , QuickCheck
84 85
        , tasty            >= 0.8
        , tasty-quickcheck >= 0.8
86
        , text
87 88 89
        , time
        , uuid