packages feed

password-instances 0.2.0.0 → 0.3.0.0

raw patch · 3 files changed

+14/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Data.Password.Instances: instance Database.Persist.Sql.Class.PersistFieldSql Data.Password.PassHash

Files

ChangeLog.md view
@@ -1,5 +1,13 @@ # Changelog for password-instances +## 0.3.0.0++- Added instance for `PersistFieldSql` for `PassHash`.++## 0.2.0.0++- Added instance for `PersistField` for `PassHash`.+ ## 0.1.0.0  - Initial version.
password-instances.cabal view
@@ -1,7 +1,7 @@ cabal-version: 1.12  name:           password-instances-version:        0.2.0.0+version:        0.3.0.0 category:       Data synopsis:       typeclass instances for password package description:    A library providing typeclass instances for common libraries for the types from the password package.
src/Data/Password/Instances.hs view
@@ -44,6 +44,7 @@ import Data.Aeson (FromJSON) import Data.Password import Database.Persist.Class (PersistField)+import Database.Persist.Sql (PersistFieldSql) import Web.HttpApiData (FromHttpApiData)  @@ -95,3 +96,7 @@ -- We don't provide an instance of 'PersistField' for 'Pass', because we don't -- want to make it easy to store a plain-text password in the database. deriving newtype instance PersistField PassHash++-- | This instance allows a 'PassHash' to be stored as a field in an SQL+-- database in "Database.Persist.Sql".+deriving newtype instance PersistFieldSql PassHash