Skip to content

Commit

Permalink
undo redundant change
Browse files Browse the repository at this point in the history
  • Loading branch information
curranosaurus committed Dec 30, 2024
1 parent 7f990da commit 65969ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persistent-redis/Database/Persist/Redis/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ toLabel :: FieldDef -> B.ByteString
toLabel = U.fromString . unpack . unFieldNameDB . fieldDB

toEntityString :: PersistEntity val => val -> Text
toEntityString = unEntityNameDB . getEntityDBName . entityDef . Just
toEntityString = unEntityNameDB . entityDB . entityDef . Just

toEntityName :: EntityDef -> B.ByteString
toEntityName = U.fromString . unpack . unEntityNameDB . getEntityDBName
toEntityName = U.fromString . unpack . unEntityNameDB . entityDB

mkEntity :: (MonadFail m, PersistEntity val) => Key val -> [(B.ByteString, B.ByteString)] -> m (Entity val)
mkEntity key fields = do
Expand Down

0 comments on commit 65969ce

Please sign in to comment.