packages feed

password-instances 0.3.0.0 → 0.3.0.1

raw patch · 3 files changed

+10/−6 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,14 +1,19 @@ # Changelog for password-instances +## 0.3.0.1++-   Small fix to make sure the doctests build with stack.+    [#3](https://github.com/cdepillabout/password/pull/3)+ ## 0.3.0.0 -- Added instance for `PersistFieldSql` for `PassHash`.+-   Added instance for `PersistFieldSql` for `PassHash`.  ## 0.2.0.0 -- Added instance for `PersistField` for `PassHash`.+-   Added instance for `PersistField` for `PassHash`.  ## 0.1.0.0 -- Initial version.+-   Initial version. 
password-instances.cabal view
@@ -1,7 +1,7 @@ cabal-version: 1.12  name:           password-instances-version:        0.3.0.0+version:        0.3.0.1 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
@@ -54,7 +54,6 @@ -- Import needed functions. -- -- >>> import Data.Aeson (decode)--- >>> import Data.Text (Text) -- >>> import Database.Persist.Class (PersistField(toPersistValue)) -- >>> import Web.HttpApiData (parseUrlPiece) @@ -76,7 +75,7 @@ -- | This instance allows a 'Pass' to be created with functions like -- 'Web.HttpApiData.parseUrlPiece' or 'Web.HttpApiData.parseQueryParam'. ----- >>> let eitherPass = parseUrlPiece "foobar" :: Either Text Pass+-- >>> let eitherPass = parseUrlPiece "foobar" -- >>> fmap unsafeShowPassword eitherPass -- Right "foobar" deriving newtype instance FromHttpApiData Pass