Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Mode
- data family Sing k (a :: k) :: *
- type SMode = (Sing :: Mode -> Type)
- type HOTPSym0 = HOTP
- type TOTPSym0 = TOTP
- data HashAlgo
- parseAlgo :: String -> Maybe HashAlgo
- data Secret :: Mode -> Type where
- data family ModeState :: Mode -> Type
- data Vault = Vault {}
- _Vault :: Functor f => ([DSum Sing (Secret :&: ModeState)] -> f [DSum Sing (Secret :&: ModeState)]) -> Vault -> f Vault
- hotp :: Secret HOTP -> ModeState HOTP -> (Text, ModeState HOTP)
- totp :: Secret TOTP -> IO Text
- totp_ :: Secret TOTP -> UTCTime -> Text
- otp :: forall m. SingI m => Secret m -> ModeState m -> IO (Text, ModeState m)
- someotp :: DSum Sing (Secret :&: ModeState) -> IO (Text, DSum Sing (Secret :&: ModeState))
- someSecret :: Functor f => (forall m. SingI m => Secret m -> ModeState m -> f (ModeState m)) -> DSum Sing (Secret :&: ModeState) -> f (DSum Sing (Secret :&: ModeState))
- vaultSecrets :: Applicative f => (forall m. SingI m => Secret m -> ModeState m -> f (ModeState m)) -> Vault -> f Vault
- describeSecret :: Secret m -> Text
- secretURI :: Parser (DSum Sing (Secret :&: ModeState))
- parseSecretURI :: String -> Either String (DSum Sing (Secret :&: ModeState))
Documentation
Show Mode Source # | |
Generic Mode Source # | |
ToJSON Mode Source # | |
Binary Mode Source # | |
SingKind Mode Source # | |
SingI Mode HOTP Source # | |
SingI Mode TOTP Source # | |
ToJSON (DSum Mode (Sing Mode) ((:&:) Mode Secret ModeState)) Source # | |
Binary (DSum Mode (Sing Mode) ((:&:) Mode Secret ModeState)) Source # | |
type Rep Mode Source # | |
data Sing Mode Source # | |
type DemoteRep Mode Source # | |
data family Sing k (a :: k) :: * #
The singleton kind-indexed data family.
ToJSON (DSum Mode (Sing Mode) ((:&:) Mode Secret ModeState)) # | |
Binary (DSum Mode (Sing Mode) ((:&:) Mode Secret ModeState)) # | |
data Sing Bool | |
data Sing Ordering | |
data Sing Nat | |
data Sing Symbol | |
data Sing () | |
data Sing Mode # | |
data Sing [a0] | |
data Sing (Maybe a0) | |
data Sing (NonEmpty a0) | |
data Sing (Either a0 b0) | |
data Sing (a0, b0) | |
data Sing ((~>) k1 k2) | |
data Sing (a0, b0, c0) | |
data Sing (a0, b0, c0, d0) | |
data Sing (a0, b0, c0, d0, e0) | |
data Sing (a0, b0, c0, d0, e0, f0) | |
data Sing (a0, b0, c0, d0, e0, f0, g0) | |
data family ModeState :: Mode -> Type Source #
Show (ModeState HOTP) Source # | |
Show (ModeState TOTP) Source # | |
Generic (ModeState HOTP) Source # | |
Generic (ModeState TOTP) Source # | |
ToJSON (ModeState HOTP) Source # | |
ToJSON (ModeState TOTP) Source # | |
Binary (ModeState HOTP) Source # | |
Binary (ModeState TOTP) Source # | |
ToJSON (DSum Mode (Sing Mode) ((:&:) Mode Secret ModeState)) Source # | |
Binary (DSum Mode (Sing Mode) ((:&:) Mode Secret ModeState)) Source # | |
data ModeState HOTP Source # | |
data ModeState TOTP Source # | |
type Rep (ModeState HOTP) Source # | |
type Rep (ModeState TOTP) Source # | |
_Vault :: Functor f => ([DSum Sing (Secret :&: ModeState)] -> f [DSum Sing (Secret :&: ModeState)]) -> Vault -> f Vault Source #
someSecret :: Functor f => (forall m. SingI m => Secret m -> ModeState m -> f (ModeState m)) -> DSum Sing (Secret :&: ModeState) -> f (DSum Sing (Secret :&: ModeState)) Source #
vaultSecrets :: Applicative f => (forall m. SingI m => Secret m -> ModeState m -> f (ModeState m)) -> Vault -> f Vault Source #
describeSecret :: Secret m -> Text Source #