packages feed

sophia-0.1.2: sophia.cabal

name:         sophia
version:      0.1.2
category:     Database

author:       Eyal Lotem <eyal.lotem+hackage@gmail.com>
maintainer:   Eyal Lotem <eyal.lotem+hackage@gmail.com>

license:      BSD3
license-file: LICENSE

synopsis:     Bindings to Sophia library
description:
  Bindings to <http://sphia.org/ sophia>, an open source, modern, fast
  key/value store.

cabal-version: >= 1.10
build-type:    Simple

extra-source-files:
  cbits/lexical_cmp.h

--------------------------------------------------------------------------------

library
  default-language: Haskell2010

  ghc-options: -Wall -O2
  if impl(ghc >= 6.8)
    ghc-options: -fwarn-tabs

  exposed-modules:
    Database.Sophia

  other-modules:
    Database.Sophia.Types

  build-depends:
    base             < 5,
    bindings-sophia >= 0.2,
    bytestring      >= 0.9

  include-dirs:
    cbits

  c-sources:
    cbits/lexical_cmp.c

  cc-options: -g -Wall -O2

--------------------------------------------------------------------------------

test-suite main-test-suite
  default-language: Haskell2010

  ghc-options: -Wall -O2
  if impl(ghc >= 6.8)
    ghc-options: -fwarn-tabs

  type: exitcode-stdio-1.0

  main-is: Test.hs
  build-depends:
      base             < 5
    , sophia
    , bindings-sophia
    , tasty           == 0.3.*
    , tasty-hunit     == 0.2.*
    , directory
    , bytestring

--------------------------------------------------------------------------------

benchmark main-bench
  default-language: Haskell2010

  ghc-options: -Wall -O2
  if impl(ghc >= 6.8)
    ghc-options: -fwarn-tabs

  type: exitcode-stdio-1.0
  main-is: Bench.hs
  build-depends:
      base < 5
    , sophia
    , bindings-sophia
    , directory
    , bytestring >= 0.9
    , binary >= 0.5
    , criterion >= 0.8

--------------------------------------------------------------------------------

source-repository head
  type:     git
  location: https://github.com/Peaker/hssophia.git