packages feed

cozo-hs-0.1.0.0: cozo-hs.cabal

cabal-version:      3.0
name:               cozo-hs
version:            0.1.0.0
synopsis:           Haskell bindings to the CozoDB C API
description:        Simple, relatively low-level bindings to the C API
                    provided by cozo. Additionally, there are some convenience types for
                    serializing function arguments and deserializing query results.
license:            MPL-2.0
license-file:       LICENSE
author:             Henry Johnson
maintainer:         hencutJohnson@gmail.com
-- copyright:
category:           Database
build-type:         Simple
extra-doc-files:    CHANGELOG.md
                    README.md

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:
        Database.Cozo
    other-modules:
        Database.Cozo.Internal
        Database.Cozo.Internal.Bindings
    other-extensions:
        CApiFFI
        ForeignFunctionInterface
        OverloadedStrings
        StrictData
    build-depends:
        base ^>=4.18.0.0,
        aeson >= 2.2.1 && < 2.3,
        bytestring >= 0.11.4 && < 0.12,
        text >= 2.0.2 && < 2.1,
    hs-source-dirs:   src
    default-language: GHC2021
    pkgconfig-depends: libcozo_c == 0.7.5

test-suite cozo-hs-test
    import: warnings
    build-depends:
        base ^>= 4.18.0.0,
        cozo-hs,
        aeson >= 2.2.1 && < 2.3,
        bytestring >= 0.11.4 && < 0.12,
        text >= 2.0.2 && < 2.1,
        tasty == 1.5,
        tasty-hunit == 0.10.1
    type: exitcode-stdio-1.0
    main-is: Main.hs
    hs-source-dirs: test
    default-language: GHC2021