packages feed

cql-4.1.0.0: cql.cabal

cabal-version:        3.6
name:                 cql
version:              4.1.0.0
synopsis:             Cassandra CQL binary protocol.
stability:            experimental
license:              0BSD
license-file:         LICENSE
author:               Kyle Butt, Toralf Wittner, Roman S. Borschel
maintainer:           Kyle Butt <kyle@iteratee.net>
copyright:            (C) 2014-2015 Toralf Wittner, Roman S. Borschel (C) 2024-2025 Kyle Butt
homepage:             https://github.com/iteratee/cql/
bug-reports:          https://github.com/iteratee/cql/issues
category:             Database
build-type:           Simple
extra-doc-files:      README.md
                      CHANGELOG
                      CONTRIBUTING
                      AUTHORS

description:
    Implementation of Cassandra's CQL Binary Protocol
    <https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v3.spec Version 3>
    and
    <https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec Version 4>.
    .
    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>.

source-repository head
    type:     git
    location: https://github.com/iteratee/cql

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

    exposed-modules:
        Database.CQL.Protocol
        Database.CQL.Protocol.Internal

    other-modules:
        Database.CQL.Protocol.Class
        Database.CQL.Protocol.Codec
        Database.CQL.Protocol.Header
        Database.CQL.Protocol.Murmur3
        Database.CQL.Protocol.Record
        Database.CQL.Protocol.Request
        Database.CQL.Protocol.Response
        Database.CQL.Protocol.Tuple
        Database.CQL.Protocol.Tuple.TH
        Database.CQL.Protocol.Types
    include-dirs:
        murmur-src/
    includes:
        murmur-src/murmur_hash_3_cassandra.h
    install-includes:
        murmur-src/murmur_hash_3_cassandra.h
    c-sources:
        murmur-src/murmur_hash_3_cassandra.c

    build-depends:
          base             >= 4.9   && < 5
        , bytestring       >= 0.10  && < 0.13
        , persist          >= 1.0   && < 1.1
        , containers       >= 0.5   && < 0.9
        , Decimal          >= 0.3   && < 0.6
        , iproute          >= 1.3   && < 1.8
        , network          >= 2.4   && < 3.3
        , text             >= 0.11  && < 2.2
        , template-haskell >= 2.18  && < 2.24
        , time             >= 1.4   && < 1.16
        , transformers     >= 0.3   && < 0.7
        , uuid             >= 1.2.6 && < 1.4
        , vector           >= 0.10  && < 0.14

test-suite cql-tests
    type:             exitcode-stdio-1.0
    default-language: Haskell2010
    main-is:          Main.hs
    hs-source-dirs:   test
    ghc-options:      -threaded -Wall -fwarn-tabs
    other-modules:    Tests

    build-depends:
          base
        , bytestring
        , cql
        , Decimal
        , iproute
        , network
        , persist
        , QuickCheck
        , tasty            >= 0.8
        , tasty-quickcheck >= 0.8
        , tasty-hunit      >= 0.10 && < 0.11
        , text
        , time
        , uuid