Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions persistent-redis/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Unreleased

* [#1621](https://github.com/yesodweb/persistent/pull/1621)
* Fix typo in function name

### 2.13.0.2

* [#1536](https://github.com/yesodweb/persistent/pull/1536)
Expand Down
2 changes: 1 addition & 1 deletion persistent-redis/Database/Persist/Redis/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mkEntity
=> Key val -> [(B.ByteString, B.ByteString)] -> m (Entity val)
mkEntity key fields = do
let
values = redisToPerisistValues fields
values = redisToPersistValues fields
let
v = fromPersistValues values
case v of
Expand Down
6 changes: 3 additions & 3 deletions persistent-redis/Database/Persist/Redis/Parser.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Database.Persist.Redis.Parser
( redisToPerisistValues
( redisToPersistValues
, toValue
) where

Expand Down Expand Up @@ -157,5 +157,5 @@ toValue = L.toStrict . encode . BinPersistValue
castOne :: B.ByteString -> PersistValue
castOne = unBinPersistValue . Q.decode . L.fromStrict

redisToPerisistValues :: [(B.ByteString, B.ByteString)] -> [PersistValue]
redisToPerisistValues = map (castOne . snd)
redisToPersistValues :: [(B.ByteString, B.ByteString)] -> [PersistValue]
redisToPersistValues = map (castOne . snd)