packages feed

persistent-1.0.1.2: persistent.cabal

name:            persistent
version:         1.0.1.2
license:         MIT
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>
maintainer:      Michael Snoyman <michael@snoyman.com>
synopsis:        Type-safe, multi-backend data serialization.
description:     Type-safe, data serialization. You must use a specific backend in order to make this useful.
category:        Database, Yesod
stability:       Stable
cabal-version:   >= 1.8
build-type:      Simple
homepage:        http://www.yesodweb.com/book/persistent
extra-source-files:
  test/main.hs

flag nooverlap
    default: False
    description: test out our assumption that OverlappingInstances is just for String

flag blaze_html_0_5
    description: use blaze-html 0.5 and blaze-markup 0.5
    default: True

library
    if flag(nooverlap)
        cpp-options: -DNO_OVERLAP

    build-depends:   base                     >= 4       && < 5
                   , bytestring               >= 0.9
                   , transformers             >= 0.2.1
                   , time                     >= 1.1.4
                   , text                     >= 0.8
                   , containers               >= 0.2
                   , conduit                  >= 0.5     && < 0.6
                   , resourcet                >= 0.3     && < 0.5
                   , monad-control            >= 0.3     && < 0.4
                   , lifted-base              >= 0.1     && < 0.2
                   , pool-conduit             >= 0.1     && < 0.2
                   , path-pieces              >= 0.1     && < 0.2
                   , aeson                    >= 0.5     && < 0.7
                   , monad-logger             >= 0.2.1   && < 0.3
                   , transformers-base
                   , base64-bytestring
                   , unordered-containers
                   , vector
                   , attoparsec
                   , template-haskell

    if flag(blaze_html_0_5)
        build-depends:
                     blaze-html               >= 0.5     && < 0.6
                   , blaze-markup             >= 0.5.1   && < 0.6
    else
        build-depends:
                     blaze-html               >= 0.4     && < 0.5

    exposed-modules: Database.Persist
                     Database.Persist.EntityDef
                     Database.Persist.Store
                     Database.Persist.Quasi
                     Database.Persist.GenericSql
                     Database.Persist.GenericSql.Raw
                     Database.Persist.GenericSql.Migration
                     Database.Persist.TH.Library
                     Database.Persist.Util
                     Database.Persist.Query
                     Database.Persist.Query.Internal
                     Database.Persist.Query.GenericSql
                     Database.Persist.Query.Join
                     Database.Persist.Query.Join.Sql
                     Database.Persist.GenericSql.Internal

    ghc-options:     -Wall

test-suite test
    type:          exitcode-stdio-1.0
    main-is:       test/main.hs

    build-depends:   base >= 4 && < 5
                   , hspec >= 1.3
                   , containers
                   , text

    cpp-options: -DTEST

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