packages feed

sophia-0.1: sophia.cabal

name:         sophia
version:      0.1
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.1.*,
    bytestring      >= 0.10.2

  include-dirs:
    cbits

  c-sources:
    cbits/lexical_cmp.c

  cc-options: -g -Wall -O2

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

test-suite main
  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          == 0.1.*,
    bindings-sophia == 0.1.*,
    tasty           == 0.3.*,
    tasty-hunit     == 0.2.*,
    directory       >= 1.2,
    bytestring      >= 0.10.2

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

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