Copyright | (c) Dennis Gosnell 2019; Felix Paulusma 2020 |
---|---|
License | BSD-style (see LICENSE file) |
Maintainer | [email protected] |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Data.Password.Instances
Contents
Description
This module provides additional typeclass instances
for Password
and PasswordHash
.
See the Data.Password.Types module for more information.
Orphan instances
FromJSON Password Source # | This instance allows a
There is no instance for Similarly, there is no |
(TypeError (ErrMsg "JSON") :: Constraint) => ToJSON Password Source # | |
FromHttpApiData Password Source # | This instance allows a
|
Methods parseUrlPiece :: Text -> Either Text Password # parseHeader :: ByteString -> Either Text Password # | |
(TypeError (ErrMsg "HttpApiData") :: Constraint) => ToHttpApiData Password Source # | Type error! Do not transmit plain-text |
Methods toUrlPiece :: Password -> Text # toEncodedUrlPiece :: Password -> Builder # toHeader :: Password -> ByteString # toQueryParam :: Password -> Text # toEncodedQueryParam :: Password -> Builder # | |
(TypeError (ErrMsg "PersistValue") :: Constraint) => PersistField Password Source # | Type error! Do not store plain-text |
Methods toPersistValue :: Password -> PersistValue # | |
PersistField (PasswordHash a) Source # | This instance allows a
In the example above, the long We don't provide an instance of |
Methods toPersistValue :: PasswordHash a -> PersistValue # fromPersistValue :: PersistValue -> Either Text (PasswordHash a) # | |
PersistFieldSql (PasswordHash a) Source # | This instance allows a |
Methods sqlType :: Proxy (PasswordHash a) -> SqlType # |