Fix compatibility with older persistent #1324
This commit is contained in:
parent
8d85ad1ab5
commit
9dbbe030de
@ -1,3 +1,7 @@
|
|||||||
|
## 1.4.1.1
|
||||||
|
|
||||||
|
* Fix build failure with older persistent versions [#1324](https://github.com/yesodweb/yesod/issues/1324)
|
||||||
|
|
||||||
## 1.4.1.0
|
## 1.4.1.0
|
||||||
|
|
||||||
* add `insert400` and `insert400_`
|
* add `insert400` and `insert400_`
|
||||||
|
|||||||
@ -175,7 +175,7 @@ insert400 :: (MonadIO m, PersistUniqueWrite backend, PersistRecordBackend val ba
|
|||||||
=> val
|
=> val
|
||||||
-> ReaderT backend m (Key val)
|
-> ReaderT backend m (Key val)
|
||||||
#else
|
#else
|
||||||
insert400 :: (MonadIO m, PersistUniqueWrite (PersistEntityBackend val), PersistEntity val)
|
insert400 :: (MonadIO m, PersistUnique (PersistEntityBackend val), PersistEntity val)
|
||||||
=> val
|
=> val
|
||||||
-> ReaderT (PersistEntityBackend val) m (Key val)
|
-> ReaderT (PersistEntityBackend val) m (Key val)
|
||||||
#endif
|
#endif
|
||||||
@ -194,7 +194,7 @@ insert400_ :: (MonadIO m, PersistUniqueWrite backend, PersistRecordBackend val b
|
|||||||
=> val
|
=> val
|
||||||
-> ReaderT backend m ()
|
-> ReaderT backend m ()
|
||||||
#else
|
#else
|
||||||
insert400_ :: (MonadIO m, PersistUniqueWrite (PersistEntityBackend val), PersistEntity val)
|
insert400_ :: (MonadIO m, PersistUnique (PersistEntityBackend val), PersistEntity val)
|
||||||
=> val
|
=> val
|
||||||
-> ReaderT (PersistEntityBackend val) m ()
|
-> ReaderT (PersistEntityBackend val) m ()
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-persistent
|
name: yesod-persistent
|
||||||
version: 1.4.1.0
|
version: 1.4.1.1
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user