rel8 1.2.0.0 → 1.2.1.0
raw patch · 4 files changed
+18/−4 lines, 4 filesdep ~opaleyePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: opaleye
API changes (from Hackage documentation)
+ Rel8: (<:) :: forall a. OrdTable a => a -> a -> Expr Bool
+ Rel8: (<=:) :: forall a. OrdTable a => a -> a -> Expr Bool
+ Rel8: (>:) :: forall a. OrdTable a => a -> a -> Expr Bool
+ Rel8: (>=:) :: forall a. OrdTable a => a -> a -> Expr Bool
+ Rel8: castTable :: Table Expr a => a -> a
+ Rel8: greatest :: OrdTable a => a -> a -> a
+ Rel8: least :: OrdTable a => a -> a -> a
Files
- Changelog.md +12/−0
- rel8.cabal +2/−2
- src/Rel8.hs +3/−1
- src/Rel8/Query/Distinct.hs +1/−1
Changelog.md view
@@ -1,3 +1,15 @@+# 1.2.1.0 (2021-11-21)++## New features++* `castTable` has been added, which casts all columns selected from in `Query` according to the types of columns. This can occasionally be useful when using `many`/`some` on older PostgreSQL versions. ([#137](https://github.com/circuithub/rel8/pull/137))++* Added `<:`, `<=:`, `>:`, `>=:`, `greatest` and `least`, which sort all columns in a table lexicographically. These operators are like the `<.` operators which operate on `Expr`s, but the `<:` operate on entire tables. ([#139](https://github.com/circuithub/rel8/pull/139))++## Other++* Support opaleye-0.8 ([#142](https://github.com/circuithub/rel8/pull/142))+ # 1.2.0.0 (2021-10-22) ## New features
rel8.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.0 name: rel8-version: 1.2.0.0+version: 1.2.1.0 synopsis: Hey! Hey! Can u rel8? license: BSD3 license-file: LICENSE@@ -27,7 +27,7 @@ , comonad , contravariant , hasql ^>= 1.4.5.1- , opaleye ^>= 0.7.3.0+ , opaleye ^>= 0.8.0.0 , pretty , profunctors , product-profunctors
src/Rel8.hs view
@@ -47,10 +47,11 @@ , AltTable((<|>:)) , AlternativeTable( emptyTable ) , EqTable, (==:), (/=:)- , OrdTable, ascTable, descTable+ , OrdTable, (<:), (<=:), (>:), (>=:), ascTable, descTable, greatest, least , lit , bool , case_+ , castTable -- ** @MaybeTable@ , MaybeTable@@ -362,6 +363,7 @@ import Rel8.Table.Maybe import Rel8.Table.Name import Rel8.Table.NonEmpty+import Rel8.Table.Opaleye ( castTable ) import Rel8.Table.Ord import Rel8.Table.Order import Rel8.Table.Projection
src/Rel8/Query/Distinct.hs view
@@ -11,7 +11,7 @@ import Prelude -- opaleye-import qualified Opaleye.Distinct as Opaleye+import qualified Opaleye.Distinct as Opaleye hiding ( distinctOn, distinctOnBy ) import qualified Opaleye.Internal.Order as Opaleye import qualified Opaleye.Internal.QueryArr as Opaleye