name:            persistent-template
version:         2.7.1
license:         MIT
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>
maintainer:      Michael Snoyman <michael@snoyman.com>, Greg Weber <greg@gregweber.info>
synopsis:        Type-safe, non-relational, multi-backend persistence.
description:     Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/persistent-template>.
category:        Database, Yesod
stability:       Stable
cabal-version:   >= 1.10
build-type:      Simple
homepage:        http://www.yesodweb.com/book/persistent
bug-reports:     https://github.com/yesodweb/persistent/issues
extra-source-files: test/main.hs ChangeLog.md README.md

library
    build-depends:   base                     >= 4.9       && < 5
                   , persistent               >= 2.10      && < 3
                   , aeson                    >= 1.0       && < 1.5
                   , bytestring               >= 0.10
                   , containers
                   , http-api-data            >= 0.3.7
                   , monad-control            >= 1.0       && < 1.1
                   , monad-logger
                   , path-pieces
                   , template-haskell         >= 2.11
                   , text                     >= 1.2
                   , transformers             >= 0.5       && < 0.6
                   , unordered-containers
    exposed-modules: Database.Persist.TH
    ghc-options:     -Wall
    default-language: Haskell2010

test-suite test
    type:            exitcode-stdio-1.0
    main-is:         main.hs
    hs-source-dirs:  test
    other-modules:   TemplateTestImports
    ghc-options:     -Wall

    build-depends:   base                     >= 4.9 && < 5
                   , persistent
                   , persistent-template
                   , aeson
                   , bytestring
                   , hspec                    >= 2.4
                   , QuickCheck
                   , text
    default-language: Haskell2010

source-repository head
  type:     git
  location: git://github.com/yesodweb/persistent.git

benchmark persistent-th-bench
    ghc-options:      -O2
    type:             exitcode-stdio-1.0
    main-is:          Main.hs
    hs-source-dirs:   bench
    build-depends:    base
                    , persistent
                    , persistent-template
                    , criterion
                    , deepseq
                    , deepseq-generics
                    , file-embed
                    , text
                    , template-haskell
    other-modules:    Models
    default-language: Haskell2010
