packages feed

opaleye 0.3.1.1 → 0.3.1.2

raw patch · 3 files changed

+9/−3 lines, 3 filesdep +time-locale-compatdep ~attoparsecdep ~profunctorsdep ~timePVP ok

version bump matches the API change (PVP)

Dependencies added: time-locale-compat

Dependency ranges changed: attoparsec, profunctors, time

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+## 0.3.1.2++* Use time >= 1.4 and time-locale-compat+ ## 0.3.1.1  * Bump time to >= 1.5
opaleye.cabal view
@@ -1,5 +1,5 @@ name:            opaleye-version:         0.3.1.1+version:         0.3.1.2 synopsis:        An SQL-generating DSL targeting PostgreSQL description:     An SQL-generating DSL targeting PostgreSQL.  Allows                  Postgres queries to be written within Haskell in a@@ -37,7 +37,8 @@     , semigroups          >= 0.13    && < 0.17     , text                >= 0.11    && < 1.3     , transformers        >= 0.3     && < 0.5-    , time                >= 1.5     && < 1.6+    , time                >= 1.4     && < 1.6+    , time-locale-compat  >= 0.1     && < 0.2     , uuid                >= 1.3     && < 1.4   exposed-modules: Opaleye,                    Opaleye.Aggregate,
src/Opaleye/PGTypes.hs view
@@ -13,6 +13,7 @@ import qualified Data.ByteString as SByteString import qualified Data.ByteString.Lazy as LByteString import qualified Data.Time as Time+import qualified Data.Time.Locale.Compat as Locale import qualified Data.UUID as UUID  import           Data.Int (Int64)@@ -86,7 +87,7 @@                                      . HPQ.ConstExpr                                      . HPQ.OtherLit                                      . format-  where format = Time.formatTime Time.defaultTimeLocale formatString+  where format = Time.formatTime Locale.defaultTimeLocale formatString  pgDay :: Time.Day -> Column PGDate pgDay = unsafePgFormatTime "date" "'%F'"