Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SecretInput i m a where
- SecretInput :: Text -> SecretInput i m i
- secretInput :: forall i r. MemberWithError (SecretInput i) r => Text -> Sem r i
- runSecretInputIO :: Member (Embed IO) r => Sem (SecretInput Text ': r) a -> Sem r a
Effect
data SecretInput i m a where Source #
An effect that provides input to the application. Intended to be used in contexts where the input is a secret such as passwords. Interpretations may chose to "protect" the input appropriately. For example, an IO interpretation may chose not to echo the input to the console.
SecretInput | Retrieve a secret input |
|
Instances
type DefiningModule (SecretInput :: k1 -> k2 -> k1 -> Type) Source # | |
Defined in Gamgee.Effects.SecretInput |
Actions
secretInput :: forall i r. MemberWithError (SecretInput i) r => Text -> Sem r i Source #
Interpretations
runSecretInputIO :: Member (Embed IO) r => Sem (SecretInput Text ': r) a -> Sem r a Source #