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