packages feed

lmdb-simple-0.2.0.0: lmdb-simple.cabal

name:                lmdb-simple
version:             0.2.0.0

synopsis:            Simple API for LMDB

description:         This package provides a simple API for using the
                     Lightning Memory-mapped Database (LMDB).

homepage:            https://github.com/verement/lmdb-simple#readme
bug-reports:         https://github.com/verement/lmdb-simple/issues

license:             BSD3
license-file:        LICENSE

author:              Rob Leslie
maintainer:          rob@mars.org
copyright:           © 2017 Robert Leslie

stability:           experimental
category:            Database

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

extra-source-files:  README.md
                     stack.yaml
                     test/env/.keep

source-repository head
  type:              git
  location:          https://github.com/verement/lmdb-simple.git

library
  hs-source-dirs:      src

  exposed-modules:     Database.LMDB.Simple
                       Database.LMDB.Simple.DBRef
                       Database.LMDB.Simple.Extra
                       Database.LMDB.Simple.View
  other-modules:       Database.LMDB.Simple.Internal

  build-depends:       base >= 4.7 && < 5
                     , binary >= 0.8 && < 0.9
                     , bytestring >= 0.10 && < 0.11
                     , lmdb >= 0.2 && < 0.3
  ghc-options:         -Wall -Wno-name-shadowing -Wno-unused-do-bind
  default-language:    Haskell2010
  default-extensions:  Trustworthy
  other-extensions:    ConstraintKinds
                       KindSignatures
                       TypeFamilies

test-suite sample
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             sample.hs
  build-depends:       base
                     , lmdb-simple
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

test-suite hspec
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             hspec.hs
  other-modules:       Database.LMDB.SimpleSpec
                       Database.LMDB.Simple.DBRefSpec
                       Harness
  build-depends:       base
                     , hspec
                     , lmdb-simple
                     , QuickCheck
  ghc-options:         -Wall -Wno-unused-do-bind
                       -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

benchmark criterion
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             criterion.hs
  other-modules:       Harness
  build-depends:       base
                     , criterion
                     , lmdb-simple
  ghc-options:         -Wall -Wno-name-shadowing
                       -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010