packages feed

riak-0.9.0.0: riak.cabal

name:                riak
version:             0.9.0.0
synopsis:            A Haskell client for the Riak decentralized data store
description:
  A Haskell client library for the Riak decentralized data
  store, designed for efficiency, ease of use, and flexibility.  Uses
  the Riak protocol buffers API for speed.
  .
  This library is organized to allow a tradeoff between power
  and ease of use.  If you would like a different degree of
  automation with storage and conflict resolution, you may want to
  use one of the following modules (ranked from easiest to most
  tricky to use):
  .
  [Network.Riak] JSON for storage, automatic conflict resolution.
  This is the easiest module to work with.
  .
  [Network.Riak.JSON] JSON for storage, manual conflict resolution.
  .
  [Network.Riak.Value.Resolvable] More complex (but still automatic)
  storage, automatic conflict resolution.
  .
  [Network.Riak.Value] More complex (but still automatic) storage,
  manual conflict resolution.
  .
  [Network.Riak.Basic] manual storage, manual conflict resolution.
  This is the most demanding module to work with, as you must encode
  and decode data yourself, and handle all conflict resolution
  yourself.

homepage:            http://github.com/markhibberd/riak-haskell-client
license:             OtherLicense
license-file:        LICENSE
author:              Bryan O'Sullivan <bos@serpentine.com>
maintainer:          Mark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com>
copyright:           Copyright 2011 MailRank, Inc.
                     Portions copyright 2007-2010 Basho Technologies, Inc.
category:            Network
build-type:          Simple
extra-source-files:
  README.markdown

cabal-version:       >=1.8

source-repository head
    type: git
    location: https://github.com:markhibberd/riak-haskell-client.git

flag debug
  description: allow debug logging
  default: True

flag developer
  description: operate in developer mode
  default: False
  manual: True

flag test2i
  description: test secondary indexes (requires default riak engine to have that support)
  default: False

library
  hs-source-dirs: src

  exposed-modules:
    Network.Riak
    Network.Riak.Basic
    Network.Riak.Connection
    Network.Riak.Connection.Pool
    Network.Riak.Content
    Network.Riak.Debug
    Network.Riak.Escape
    Network.Riak.Functions
    Network.Riak.JSON
    Network.Riak.JSON.Resolvable
    Network.Riak.Request
    Network.Riak.Resolvable
    Network.Riak.Response
    Network.Riak.Types
    Network.Riak.Value
    Network.Riak.Value.Resolvable

  other-modules:
    Network.Riak.Connection.Internal
    Network.Riak.Connection.NoPush
    Network.Riak.Resolvable.Internal
    Network.Riak.Tag
    Network.Riak.Types.Internal

  build-depends:
                aeson                         >= 0.8 && < 0.10,
                attoparsec                    >= 0.12.1.6 && < 0.14,
                base                          >= 3 && <5,
                binary,
                blaze-builder                 >= 0.3 && <= 0.5,
                bytestring,
                containers,
                transformers                  >= 0.3 && < 0.5,
                monad-control ,
                network                       >= 2.3,
                resource-pool                 == 0.2.*,
                protocol-buffers >= 2.1.4 && < 2.2,
                pureMD5,
                random,
                riak-protobuf                 == 0.20.*,
                text                          == 1.2.*,
                time

  if flag(debug)
    cpp-options: -DASSERTS -DDEBUG

  if flag(developer)
    ghc-options: -Werror
    ghc-prof-options: -auto-all
    cpp-options: -DASSERTS -DDEBUG

  ghc-options: -Wall

test-suite test
  type: exitcode-stdio-1.0
  main-is: Properties.hs
  hs-source-dirs: tests
  ghc-options: -Wall

  if flag(test2i)
    cpp-options: -DTEST2I

  build-depends:
    base,
    riak,
    bytestring,
    containers,
    HUnit,
    QuickCheck,
    test-framework,
    test-framework-hunit,
    test-framework-quickcheck2,
    text