postgresql-query 3.2.0 → 3.3.0
raw patch · 4 files changed
+17/−4 lines, 4 filesdep ~haskell-src-metadep ~inflections
Dependency ranges changed: haskell-src-meta, inflections
Files
- CHANGELOG.md +5/−0
- postgresql-query.cabal +2/−2
- src/Database/PostgreSQL/Query/TH/Entity.hs +6/−2
- src/Database/PostgreSQL/Query/TH/SqlExp.hs +4/−0
CHANGELOG.md view
@@ -1,5 +1,10 @@ # CHANGELOG +## 3.3.0+### Changed+* Support for ghc-8.2 (Catherine Galkina)+* Relax dependency constraints for inflections (Dmitry Bushev)+ ## 3.2.0 ### Changed * Change interface of `deriveEntity`: now you can state the schema of
postgresql-query.cabal view
@@ -1,5 +1,5 @@ name: postgresql-query-version: 3.2.0+version: 3.3.0 synopsis: Sql interpolating quasiquote plus some kind of primitive ORM using it@@ -81,7 +81,7 @@ , haskell-src-meta , hreader >= 1.0.0 && < 2.0.0 , hset >= 2.0.0 && < 3.0.0- , inflections >= 0.2 && < 0.4+ , inflections >= 0.2 && < 1 , monad-control == 0.3.3.1 || > 1.0.0.3 , monad-logger , mtl
src/Database/PostgreSQL/Query/TH/Entity.hs view
@@ -6,7 +6,6 @@ import Prelude import Data.Default-import Data.String import Data.Text (Text, pack, unpack) import Database.PostgreSQL.Query.Entity.Class import Database.PostgreSQL.Query.TH.Common@@ -98,7 +97,12 @@ idname = tnames ++ "Id" unidname = "get" ++ idname idtype = ConT (eoIdType opts)-#if MIN_VERSION_template_haskell(2,11,0)+#if MIN_VERSION_template_haskell(2,12,0)+ idcon = RecC (mkName idname)+ [(mkName unidname, Bang NoSourceUnpackedness NoSourceStrictness, idtype)]+ iddec = NewtypeInstD [] entityIdName [ConT tname] Nothing+ idcon [DerivClause Nothing (map ConT $ eoDeriveClasses opts)]+#elif MIN_VERSION_template_haskell(2,11,0) idcon = RecC (mkName idname) [(mkName unidname, Bang NoSourceUnpackedness NoSourceStrictness, idtype)] iddec = NewtypeInstD [] entityIdName [ConT tname] Nothing
src/Database/PostgreSQL/Query/TH/SqlExp.hs view
@@ -24,7 +24,11 @@ import Data.Monoid import Data.Text ( Text ) import Database.PostgreSQL.Query.SqlBuilder+#if MIN_VERSION_haskell_src_meta(0,8,0)+import Language.Haskell.Meta.Parse+#else import Language.Haskell.Meta.Parse.Careful+#endif import Language.Haskell.TH import Language.Haskell.TH.Quote import Language.Haskell.TH.Syntax