persistent-template 2.8.2.1 → 2.8.2.2
raw patch · 3 files changed
+14/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- Database/Persist/TH.hs +9/−4
- persistent-template.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ ## Unreleased changes +## 2.8.2.2++* Fix the `mkPersist` function to not require importing the classes explicitly. [#1027](https://github.com/yesodweb/persistent/pull/1027)+ ## 2.8.2.1 * Fix the test-suite for persistent-template. [#1023](https://github.com/yesodweb/persistent/pull/1023)
Database/Persist/TH.hs view
@@ -1128,8 +1128,8 @@ [_] -> mappend <$> singleUniqueKey <*> atLeastOneKey (_:_) -> mappend <$> typeErrorMultiple <*> atLeastOneKey where- requireUniquesPName = mkName "requireUniquesP"- onlyUniquePName = mkName "onlyUniqueP"+ requireUniquesPName = 'requireUniquesP+ onlyUniquePName = 'onlyUniqueP typeErrorSingle = mkOnlyUniqueError typeErrorNoneCtx typeErrorMultiple = mkOnlyUniqueError typeErrorMultipleCtx @@ -1160,7 +1160,7 @@ [ Clause [ WildP ] (NormalB- (VarE (mkName "error") `AppE` LitE (StringL "impossible"))+ (VarE 'error `AppE` LitE (StringL "impossible")) ) [] ]@@ -1871,5 +1871,10 @@ ] where- requiredExtensions = [DerivingStrategies, GeneralizedNewtypeDeriving, StandaloneDeriving, UndecidableInstances]+ requiredExtensions =+ [ DerivingStrategies+ , GeneralizedNewtypeDeriving+ , StandaloneDeriving+ , UndecidableInstances+ ] extensionToPragma ext = "{-# LANGUAGE " <> show ext <> " #-}"
persistent-template.cabal view
@@ -1,5 +1,5 @@ name: persistent-template-version: 2.8.2.1+version: 2.8.2.2 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>