gamgee-1.2.2: Tool for generating TOTP MFA tokens.
Safe HaskellNone
LanguageHaskell2010

Gamgee.Effects.JSONStore

Synopsis

Effect

data JSONStore o m a where Source #

Constructors

JsonEncode :: o -> JSONStore o m () 
JsonDecode :: JSONStore o m o 

Instances

Instances details
type DefiningModule (JSONStore :: Type -> k -> Type -> Type) Source # 
Instance details

Defined in Gamgee.Effects.JSONStore

type DefiningModule (JSONStore :: Type -> k -> Type -> Type) = "Gamgee.Effects.JSONStore"

Actions

jsonEncode :: forall o r. MemberWithError (JSONStore o) r => o -> Sem r () Source #

jsonDecode :: forall o r. MemberWithError (JSONStore o) r => Sem r o Source #

Interpretations

runJSONStore :: Member (Error EffError) r => Sem (JSONStore Tokens ': r) a -> Sem (ByteStore ': r) a Source #

Reinterprets a JSONStore as a ByteStore