packages feed

poppy-1.0.0: poppy.cabal

cabal-version: 1.18

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

name:           poppy
version:        1.0.0
synopsis:       Postgres runtime for generated Poppy Clients
description:    Runtime used by Clients generated by poppy-codegen.
                Application code imports this package to query and write Postgres.
category:       Database
stability:      stable
homepage:       https://github.com/hnerdrum/poppy#readme
bug-reports:    https://github.com/hnerdrum/poppy/issues
author:         Henrik Nerdrum
maintainer:     henrik.nerdrum@gmail.com
copyright:      2023–2026 Henrik Nerdrum
license:        BSD3
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 9.4.8, GHC == 9.10.3
extra-source-files:
    test/migrations/001-test-widget.sql
    test/migrations/002-test-shelf-book.sql
    test/migrations/003-test-chapter.sql
    test/migrations/004-test-section.sql
    test/migrations/005-test-tag.sql
    test/migrations/006-test-author-post.sql
    test/migrations/007-test-packet.sql
    test/migrations/008-test-comment.sql
    test/migrations/009-test-widget-name-unique.sql
    include-fail/RecordUpdateAmbiguous.hs
    include-fail/SkippedChapters.hs
    include-fail/SkippedChaptersNoSelectors.hs
    include-fail/WrongChild.hs
    unique-fail/NonUniqueFilter.hs
extra-doc-files:
    README.md
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/hnerdrum/poppy

library
  exposed-modules:
      Poppy
      Poppy.Internal.Generated
      Poppy.Internal.Column
      Poppy.Internal.Core
      Poppy.Internal.Db
      Poppy.Internal.Delete
      Poppy.Internal.Errors
      Poppy.Internal.Group
      Poppy.Internal.Include
      Poppy.Internal.Insert
      Poppy.Internal.Migrate
      Poppy.Internal.Operations
      Poppy.Internal.PG
      Poppy.Internal.Query
      Poppy.Internal.Select
      Poppy.Internal.SelectIn
      Poppy.Internal.Sql
      Poppy.Internal.Update
      Poppy.Internal.Where
  other-modules:
      Paths_poppy
  hs-source-dirs:
      src
  default-extensions:
      DuplicateRecordFields
      NamedFieldPuns
      OverloadedRecordDot
      OverloadedStrings
      TypeFamilies
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
  build-depends:
      aeson >=2.0 && <2.3
    , base >=4.17 && <4.21
    , bytestring >=0.11 && <0.13
    , containers >=0.6 && <0.8
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , mtl >=2.2 && <2.4
    , postgresql-simple >=0.6 && <0.8
    , resource-pool ==0.4.*
    , scientific >=0.3.4 && <0.4
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , uuid ==1.3.*
  default-language: Haskell2010

test-suite poppy-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Poppy.AuthorFixtures
      Poppy.BelongsToSpec
      Poppy.ClientWriteSpec
      Poppy.CommentSpec
      Poppy.DbSpec
      Poppy.EnumSpec
      Poppy.ErrorsSpec
      Poppy.GroupSpec
      Poppy.IncludeFailSpec
      Poppy.IncludeSpec
      Poppy.IncludeUpdate
      Poppy.MigrateSpec
      Poppy.NestedWriteSpec
      Poppy.OperationsSpec
      Poppy.RawSpec
      Poppy.ScalarSpec
      Poppy.SelectSpec
      Poppy.ShelfFixtures
      Poppy.UniqueFailSpec
      Poppy.WhereSpec
      Poppy.WidgetFixtures
      Schema.Article
      Schema.Author
      Schema.Book
      Schema.Chapter
      Schema.Client.Article
      Schema.Client.Author
      Schema.Client.Book
      Schema.Client.Chapter
      Schema.Client.Comment
      Schema.Client.Editor
      Schema.Client.Post
      Schema.Client.Section
      Schema.Client.Shelf
      Schema.Client.Tag
      Schema.Client.Widget
      Schema.Comment
      Schema.Editor
      Schema.Include.Author
      Schema.Include.Book
      Schema.Include.Chapter
      Schema.Include.Comment
      Schema.Include.Editor
      Schema.Include.Post
      Schema.Include.Shelf
      Schema.Packet
      Schema.Post
      Schema.PostStatus
      Schema.Section
      Schema.Shelf
      Schema.Tag
      Schema.Widget
      Support.Assert
      Support.TestDb
      Support.TestMigrations
      Paths_poppy
  hs-source-dirs:
      test
  default-extensions:
      AllowAmbiguousTypes
      DuplicateRecordFields
      LambdaCase
      NamedFieldPuns
      OverloadedRecordDot
      OverloadedStrings
      ScopedTypeVariables
      TypeApplications
      TypeFamilies
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      aeson >=2.0 && <2.3
    , base >=4.17 && <4.21
    , bytestring >=0.11 && <0.13
    , containers >=0.6 && <0.8
    , directory ==1.3.*
    , filepath >=1.4 && <1.6
    , hspec >=2.11 && <2.13
    , mtl >=2.2 && <2.4
    , poppy
    , postgresql-simple >=0.6 && <0.8
    , process ==1.6.*
    , resource-pool ==0.4.*
    , scientific >=0.3.4 && <0.4
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , uuid ==1.3.*
  default-language: Haskell2010