packages feed

tonatona-persistent-postgresql 0.1.0.2 → 0.2.0.0

raw patch · 5 files changed

+174/−94 lines, 5 filesdep −Globdep ~basedep ~persistentdep ~persistent-postgresqlbuild-type:Customsetup-changedPVP ok

version bump matches the API change (PVP)

Dependencies removed: Glob

Dependency ranges changed: base, persistent, persistent-postgresql, resource-pool, tonaparser, tonatona

API changes (from Hackage documentation)

- Tonatona.Persist.Postgresql: instance GHC.Show.Show Tonatona.Persist.Postgresql.Config

Files

Setup.hs view
@@ -1,2 +1,7 @@-import Distribution.Simple-main = defaultMain+module Main (main) where++import RIO+import Distribution.Extra.Doctest ( defaultMainWithDoctests )++main :: IO ()+main = defaultMainWithDoctests "doctests"
src/Tonatona/Persist/Postgresql.hs view
@@ -59,7 +59,6 @@   , connNum :: DbConnNum   , connPool :: Pool SqlBackend   }-  deriving (Show)  instance HasParser Config where   parser = do
− test/DocTest.hs
@@ -1,56 +0,0 @@-module Main (main) where--import RIO--import System.FilePath.Glob (glob)-import Test.DocTest (doctest)--main :: IO ()-main = glob "src/**/*.hs" >>= doDocTest--doDocTest :: [String] -> IO ()-doDocTest options =-  doctest $-    options <>-    ghcExtensions--ghcExtensions :: [String]-ghcExtensions =-    [ "-XBangPatterns"-    , "-XBinaryLiterals"-    , "-XConstraintKinds"-    , "-XDataKinds"-    , "-XDefaultSignatures"-    , "-XDeriveDataTypeable"-    , "-XDeriveFoldable"-    , "-XDeriveFunctor"-    , "-XDeriveGeneric"-    , "-XDeriveTraversable"-    , "-XDoAndIfThenElse"-    , "-XEmptyDataDecls"-    , "-XExistentialQuantification"-    , "-XFlexibleContexts"-    , "-XFlexibleInstances"-    , "-XFunctionalDependencies"-    , "-XGADTs"-    , "-XGeneralizedNewtypeDeriving"-    , "-XInstanceSigs"-    , "-XKindSignatures"-    , "-XLambdaCase"-    , "-XMultiParamTypeClasses"-    , "-XMultiWayIf"-    , "-XNamedFieldPuns"-    , "-XNoImplicitPrelude"-    , "-XOverloadedStrings"-    , "-XPartialTypeSignatures"-    , "-XPatternGuards"-    , "-XPolyKinds"-    , "-XRankNTypes"-    , "-XRecordWildCards"-    , "-XScopedTypeVariables"-    , "-XStandaloneDeriving"-    , "-XTupleSections"-    , "-XTypeFamilies"-    , "-XTypeSynonymInstances"-    , "-XViewPatterns"-    ]
+ test/doctests.hs view
@@ -0,0 +1,9 @@+module Main where++import RIO+import Build_doctests (flags, pkgs, module_sources)+import Test.DocTest++main :: IO ()+main = do+  doctest $ flags ++ pkgs ++ module_sources
tonatona-persistent-postgresql.cabal view
@@ -1,13 +1,11 @@-cabal-version: 1.12+cabal-version: 1.24 --- This file has been generated from package.yaml by hpack version 0.33.0.+-- This file has been generated from package.yaml by hpack version 0.35.1. -- -- see: https://github.com/sol/hpack------ hash: 6b21127161ffe2a460df786cef8ca84293784909b59252bb684fa2a4bfa13ca4  name:           tonatona-persistent-postgresql-version:        0.1.0.2+version:        0.2.0.0 synopsis:       tonatona plugin for accessing PostgreSQL database. description:    Tonatona plugin for accessing PostgreSQL database. This package provides a tonatona plugin for accessing PostgreSQL database. This plugin uses persistent to actually accessing PostgreSQL. category:       Database, Library, Tonatona@@ -18,7 +16,9 @@ copyright:      2018 Kadzuya Okamoto license:        MIT license-file:   LICENSE-build-type:     Simple+build-type:     Custom+tested-with:+    GHC==9.4.6, GHC==9.2.8, GHC==9.0.2, GHC==8.10.7 extra-source-files:     README.md @@ -26,6 +26,13 @@   type: git   location: https://github.com/tonatona-project/tonatona +custom-setup+  setup-depends:+      Cabal <3.12+    , base >=4.14 && <4.18+    , cabal-doctest >=1 && <1.1+    , rio ==0.1.*+ library   exposed-modules:       Tonatona.Persist.Postgresql@@ -33,37 +40,114 @@       Paths_tonatona_persistent_postgresql   hs-source-dirs:       src-  default-extensions: BangPatterns BinaryLiterals ConstraintKinds DataKinds DefaultSignatures DeriveDataTypeable DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable DoAndIfThenElse EmptyDataDecls ExistentialQuantification FlexibleContexts FlexibleInstances FunctionalDependencies GADTs GeneralizedNewtypeDeriving InstanceSigs KindSignatures LambdaCase MultiParamTypeClasses MultiWayIf NamedFieldPuns NoImplicitPrelude OverloadedStrings PartialTypeSignatures PatternGuards PolyKinds RankNTypes RecordWildCards ScopedTypeVariables StandaloneDeriving Strict StrictData TupleSections TypeFamilies TypeSynonymInstances ViewPatterns+  default-extensions:+      BangPatterns+      BinaryLiterals+      ConstraintKinds+      DataKinds+      DefaultSignatures+      DeriveDataTypeable+      DeriveFoldable+      DeriveFunctor+      DeriveGeneric+      DeriveTraversable+      DoAndIfThenElse+      EmptyDataDecls+      ExistentialQuantification+      FlexibleContexts+      FlexibleInstances+      FunctionalDependencies+      GADTs+      GeneralizedNewtypeDeriving+      InstanceSigs+      KindSignatures+      LambdaCase+      MultiParamTypeClasses+      MultiWayIf+      NamedFieldPuns+      NoImplicitPrelude+      OverloadedStrings+      PartialTypeSignatures+      PatternGuards+      PolyKinds+      RankNTypes+      RecordWildCards+      ScopedTypeVariables+      StandaloneDeriving+      Strict+      StrictData+      TupleSections+      TypeFamilies+      TypeSynonymInstances+      ViewPatterns   ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints   build-depends:-      base >=4.7 && <4.15-    , monad-logger >=0.3 && <0.4-    , persistent >=2.8 && <2.11-    , persistent-postgresql >=2.8 && <2.11-    , resource-pool >=0.2 && <0.3-    , rio >=0.1 && <0.2-    , tonaparser >=0.1 && <0.2-    , tonatona >=0.1 && <0.2+      base >=4.14 && <4.18+    , monad-logger ==0.3.*+    , persistent >=2.13 && <2.15+    , persistent-postgresql ==2.13.*+    , resource-pool >=0.2 && <0.5+    , rio ==0.1.*+    , tonaparser ==0.2.*+    , tonatona ==0.2.*   default-language: Haskell2010 -test-suite doctest+test-suite doctests   type: exitcode-stdio-1.0-  main-is: DocTest.hs+  main-is: doctests.hs   hs-source-dirs:       test-  default-extensions: BangPatterns BinaryLiterals ConstraintKinds DataKinds DefaultSignatures DeriveDataTypeable DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable DoAndIfThenElse EmptyDataDecls ExistentialQuantification FlexibleContexts FlexibleInstances FunctionalDependencies GADTs GeneralizedNewtypeDeriving InstanceSigs KindSignatures LambdaCase MultiParamTypeClasses MultiWayIf NamedFieldPuns NoImplicitPrelude OverloadedStrings PartialTypeSignatures PatternGuards PolyKinds RankNTypes RecordWildCards ScopedTypeVariables StandaloneDeriving Strict StrictData TupleSections TypeFamilies TypeSynonymInstances ViewPatterns+  default-extensions:+      BangPatterns+      BinaryLiterals+      ConstraintKinds+      DataKinds+      DefaultSignatures+      DeriveDataTypeable+      DeriveFoldable+      DeriveFunctor+      DeriveGeneric+      DeriveTraversable+      DoAndIfThenElse+      EmptyDataDecls+      ExistentialQuantification+      FlexibleContexts+      FlexibleInstances+      FunctionalDependencies+      GADTs+      GeneralizedNewtypeDeriving+      InstanceSigs+      KindSignatures+      LambdaCase+      MultiParamTypeClasses+      MultiWayIf+      NamedFieldPuns+      NoImplicitPrelude+      OverloadedStrings+      PartialTypeSignatures+      PatternGuards+      PolyKinds+      RankNTypes+      RecordWildCards+      ScopedTypeVariables+      StandaloneDeriving+      Strict+      StrictData+      TupleSections+      TypeFamilies+      TypeSynonymInstances+      ViewPatterns   ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints   build-depends:-      Glob-    , base >=4.7 && <4.15+      base >=4.14 && <4.18     , doctest-    , monad-logger >=0.3 && <0.4-    , persistent >=2.8 && <2.11-    , persistent-postgresql >=2.8 && <2.11-    , resource-pool >=0.2 && <0.3-    , rio >=0.1 && <0.2-    , tonaparser >=0.1 && <0.2-    , tonatona >=0.1 && <0.2+    , monad-logger ==0.3.*+    , persistent >=2.13 && <2.15+    , persistent-postgresql ==2.13.*+    , resource-pool >=0.2 && <0.5+    , rio ==0.1.*+    , tonaparser ==0.2.*+    , tonatona ==0.2.*   default-language: Haskell2010  test-suite spec@@ -71,15 +155,54 @@   main-is: Spec.hs   hs-source-dirs:       test-  default-extensions: BangPatterns BinaryLiterals ConstraintKinds DataKinds DefaultSignatures DeriveDataTypeable DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable DoAndIfThenElse EmptyDataDecls ExistentialQuantification FlexibleContexts FlexibleInstances FunctionalDependencies GADTs GeneralizedNewtypeDeriving InstanceSigs KindSignatures LambdaCase MultiParamTypeClasses MultiWayIf NamedFieldPuns NoImplicitPrelude OverloadedStrings PartialTypeSignatures PatternGuards PolyKinds RankNTypes RecordWildCards ScopedTypeVariables StandaloneDeriving Strict StrictData TupleSections TypeFamilies TypeSynonymInstances ViewPatterns+  default-extensions:+      BangPatterns+      BinaryLiterals+      ConstraintKinds+      DataKinds+      DefaultSignatures+      DeriveDataTypeable+      DeriveFoldable+      DeriveFunctor+      DeriveGeneric+      DeriveTraversable+      DoAndIfThenElse+      EmptyDataDecls+      ExistentialQuantification+      FlexibleContexts+      FlexibleInstances+      FunctionalDependencies+      GADTs+      GeneralizedNewtypeDeriving+      InstanceSigs+      KindSignatures+      LambdaCase+      MultiParamTypeClasses+      MultiWayIf+      NamedFieldPuns+      NoImplicitPrelude+      OverloadedStrings+      PartialTypeSignatures+      PatternGuards+      PolyKinds+      RankNTypes+      RecordWildCards+      ScopedTypeVariables+      StandaloneDeriving+      Strict+      StrictData+      TupleSections+      TypeFamilies+      TypeSynonymInstances+      ViewPatterns   ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints   build-depends:-      base >=4.7 && <4.15-    , monad-logger >=0.3 && <0.4-    , persistent >=2.8 && <2.11-    , persistent-postgresql >=2.8 && <2.11-    , resource-pool >=0.2 && <0.3-    , rio >=0.1 && <0.2-    , tonaparser >=0.1 && <0.2+      base >=4.14 && <4.18+    , monad-logger ==0.3.*+    , persistent >=2.13 && <2.15+    , persistent-postgresql ==2.13.*+    , resource-pool >=0.2 && <0.5+    , rio ==0.1.*+    , tonaparser ==0.2.*     , tonatona   default-language: Haskell2010