cabal-version: 1.12
name:           squeather
version:        0.9.4.0
synopsis:       Use databases with the version 3 series of the SQLite C library
description:
  This library allows you to use databases with the version 3 series
  of the [SQLite](https://sqlite.org) C library.  The biggest difference
  between this library and others available on Hackage is that it uses the
  extended error descriptions that SQLite makes available.  It also cleans up
  resources such as database and statement handles in an automatic, though
  non-deterministic, fashion.
  .
  This library is unstable and incomplete.  The most stable library
  that resembles it is direct-sqlite and you're
  probably better off using that library.

category:       Development
author:         Omari Norman
maintainer:     omari@smileystation.com
copyright:      2020-2021 Omari Norman
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    ChangeLog.md
  , README.md

library
  exposed-modules:
      Squeather
      Squeather.Internal
      Squeather.Internal.Bindings
      Squeather.Internal.Types
  other-modules:
      Paths_squeather
  hs-source-dirs:
      src
  ghc-options: -Wall
  cc-options:
    -DSQLITE_ENABLE_JSON1
    -DSQLITE_ENABLE_FTS3
    -DSQLITE_ENABLE_FTS3_PARENTHESIS
    -DSQLITE_THREADSAFE=1
    -DSQLITE_DQS=0
  include-dirs:
      sqlite
  install-includes:
      sqlite3.h
      sqlite3ext.h
  c-sources:
      sqlite/sqlite3.c
      sqlite/squeather-helpers.c
  build-depends:
      base >=4.7 && <5
    , bytestring
    , text
  default-language: Haskell2010

test-suite squeather-tests
  type: exitcode-stdio-1.0
  main-is: squeather-tests.hs
  other-modules:
    Paths_squeather
    Generators
    Specs
  hs-source-dirs:
    tests
  ghc-options: -Wall -threaded

  build-depends:
      squeather
    , base >=4.7 && <5
    , bytestring
    , directory
    , filepath
    , hedgehog
    , lifted-base
    , temporary
    , text
  default-language: Haskell2010