esqueleto 2.1.2.1 → 2.1.2.2
raw patch · 2 files changed
+8/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- esqueleto.cabal +1/−1
- test/Test.hs +7/−0
esqueleto.cabal view
@@ -1,5 +1,5 @@ name: esqueleto-version: 2.1.2.1+version: 2.1.2.2 synopsis: Type-safe EDSL for SQL queries on persistent backends. homepage: https://github.com/prowdsponsor/esqueleto license: BSD3
test/Test.hs view
@@ -34,7 +34,10 @@ , defaultConnectInfo) #else import Database.Persist.Sqlite (withSqliteConn)+#if MIN_VERSION_persistent_sqlite(2,1,3)+import Database.Sqlite (SqliteException) #endif+#endif import Database.Persist.TH import Test.Hspec @@ -604,7 +607,11 @@ run (select $ from $ \p -> do return (coalesce [p ^. PersonAge]) :: SqlQuery (SqlExpr (Value (Maybe Int)))+#if MIN_VERSION_persistent_sqlite(2,1,3)+ ) `shouldThrow` (\(_ :: SqliteException) -> True)+#else ) `shouldThrow` (\(_ :: IOException) -> True)+#endif #endif describe "text functions" $