packages feed

trek-db-0.1.0.0: trek-db.cabal

cabal-version: 2.0

-- This file has been generated from package.yaml by hpack version 0.31.1.
--
-- see: https://github.com/sol/hpack
--
-- hash: ab7f58e2ba372fd8cc72dcb41598085a170ea1109e6522551fd9f2b2d1fd5bde

name:           trek-db
version:        0.1.0.0
description:    Please see the README on GitHub at <https://github.com/jfischoff/trek#readme>
homepage:       https://github.com/jfischoff/trek#readme
bug-reports:    https://github.com/jfischoff/trek/issues
author:         Jonathan Fischoff
maintainer:     jonathangfischoff at gmail.com
copyright:      2019 Jonathan Fischoff
license:        BSD3
license-file:   LICENSE
build-type:     Simple
tested-with: GHC==8.8.1
category: Database
synopsis: A PostgreSQL Database Migrator

source-repository head
  type: git
  location: https://github.com/jfischoff/trek

library
  exposed-modules:
      Database.Trek.Db
    -- , Database.Trek.Db.Metadata
    -- , Database.Trek.Db.Metadata.Impl
    -- , Database.PostgreSQL.Simple.Statement
    -- This could have a plugin interface
    -- , Database.Trek.Db.BackupHooks.Impl
    -- this are different version of migrate filePath
    -- , Database.Trek.Db.FromDirectory
    -- , Database.Trek.Db.FromManifest
    -- , Database.Trek.Db.FromSql
    -- , Database.Trek.Db.FromSh
    -- This exposes a new interface
    -- that is something like setup, teardown, migrate filePath, listMigrations

    -- add the simpler  teardown, migrate filePath, listMigrations
  hs-source-dirs:
      src
  default-extensions: DataKinds GADTs KindSignatures QuasiQuotes RecordWildCards LambdaCase RankNTypes ScopedTypeVariables OverloadedStrings GeneralizedNewtypeDeriving DerivingVia DeriveGeneric DeriveAnyClass TupleSections
  ghc-options: -Wall
  build-depends:
      base >=4.7 && <5
    , bytestring
    , containers
    , pg-transact >= 0.2.1.0
    , postgresql-simple
    , semigroups
    , text
    , time
    , cryptohash-sha1
  default-language: Haskell2010

test-suite test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules: Tests.Database.Trek.DbSpec
  hs-source-dirs: test
  default-extensions: QuasiQuotes
    , RecordWildCards
    , LambdaCase
    , RankNTypes
    , ScopedTypeVariables
    , OverloadedStrings
    , GeneralizedNewtypeDeriving
    , DerivingVia
    , DeriveGeneric
    , DeriveAnyClass
    , TupleSections
    , NamedFieldPuns
    , FlexibleContexts
  ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
  build-depends:
      base >=4.7 && <5
    , hspec
    , hspec-discover
    , trek-db
    , time-qq
    , tmp-postgres
    , resource-pool
    , hspec-expectations-lifted
    , async
    , postgresql-simple
    , pg-transact
  default-language: Haskell2010
  build-tool-depends: hspec-discover:hspec-discover