| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
ModelCustom
Synopsis
- mkSlug :: Int -> IO Text
- newtype BmSlug = BmSlug {}
- mkBmSlug :: IO BmSlug
- newtype NtSlug = NtSlug {}
- mkNtSlug :: IO NtSlug
- policy :: HashingPolicy
- newtype BCrypt = BCrypt {}
- hashPassword :: Text -> IO BCrypt
- validatePasswordHash :: BCrypt -> Text -> Bool
- newtype ApiKey = ApiKey {}
- newtype HashedApiKey = HashedApiKey Text
- generateApiKey :: IO ApiKey
- hashApiKey :: ApiKey -> HashedApiKey
Documentation
Bookmark Slug
Instances
| FromJSON BmSlug Source # | |
Defined in ModelCustom | |
| ToJSON BmSlug Source # | |
| Read BmSlug Source # | |
| Show BmSlug Source # | |
| Eq BmSlug Source # | |
| Ord BmSlug Source # | |
| PathPiece BmSlug Source # | |
Defined in PathPiece | |
| PersistField BmSlug Source # | |
Defined in ModelCustom Methods toPersistValue :: BmSlug -> PersistValue # | |
| PersistFieldSql BmSlug Source # | |
| SymbolToField "slug" Bookmark BmSlug Source # | |
Defined in Model Methods | |
Note Slug
Instances
| FromJSON NtSlug Source # | |
Defined in ModelCustom | |
| ToJSON NtSlug Source # | |
| Read NtSlug Source # | |
| Show NtSlug Source # | |
| Eq NtSlug Source # | |
| Ord NtSlug Source # | |
| PathPiece NtSlug Source # | |
Defined in PathPiece | |
| PersistField NtSlug Source # | |
Defined in ModelCustom Methods toPersistValue :: NtSlug -> PersistValue # | |
| PersistFieldSql NtSlug Source # | |
| SymbolToField "slug" Note NtSlug Source # | |
Defined in Model Methods | |
Model Crypto
Instances
| FromJSON BCrypt Source # | |
Defined in ModelCustom | |
| ToJSON BCrypt Source # | |
| Show BCrypt Source # | |
| Eq BCrypt Source # | |
| Ord BCrypt Source # | |
| PersistField BCrypt Source # | |
Defined in ModelCustom Methods toPersistValue :: BCrypt -> PersistValue # | |
| PersistFieldSql BCrypt Source # | |
| SymbolToField "passwordHash" User BCrypt Source # | |
Defined in Model Methods | |
newtype HashedApiKey Source #
Constructors
| HashedApiKey Text |
Instances
hashApiKey :: ApiKey -> HashedApiKey Source #