persistent-template 0.8.1.2 → 0.8.2
raw patch · 2 files changed
+6/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Database/Persist/TH.hs +5/−1
- persistent-template.cabal +1/−1
Database/Persist/TH.hs view
@@ -619,8 +619,12 @@ instance Lift UniqueDef where lift (UniqueDef a b c) = [|UniqueDef $(lift a) $(lift b) $(lift c)|] +pack' :: String -> Text +pack' = pack +{-# NOINLINE pack' #-} + liftT :: Text -> Q Exp -liftT t = [|pack $(lift (unpack t))|] +liftT t = [|pack' $(lift (unpack t))|] liftTs :: [Text] -> Q Exp liftTs = fmap ListE . mapM liftT
persistent-template.cabal view
@@ -1,5 +1,5 @@ name: persistent-template -version: 0.8.1.2 +version: 0.8.2 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>