Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
WikiMusic.Free.UserCommand
Documentation
data UserCommand a Source #
Constructors
Instances
Functor UserCommand Source # | |
Defined in WikiMusic.Free.UserCommand Methods fmap :: (a -> b) -> UserCommand a -> UserCommand b # (<$) :: a -> UserCommand b -> UserCommand a # | |
Exec UserCommand Source # | |
Defined in WikiMusic.Sqlite.UserCommand Methods execAlgebra :: UserCommand (IO a) -> IO a # |
makeResetPasswordLink :: UserCommand :<: f => Env -> UserEmail -> Free f (Either UserCommandError Text) Source #
changePasswordByEmail :: UserCommand :<: f => Env -> UserEmail -> UserPassword -> Free f (Either UserCommandError ()) Source #
invalidateResetTokenByEmail :: UserCommand :<: f => Env -> UserEmail -> Free f (Either UserCommandError ()) Source #
inviteUser :: UserCommand :<: f => Env -> WikiMusicUser -> UserEmail -> UserName -> UserRole -> Maybe Text -> Free f (Either UserCommandError Text) Source #
deleteUser :: UserCommand :<: f => Env -> WikiMusicUser -> UserEmail -> Free f (Either UserCommandError ()) Source #
data UserCommandError Source #
Constructors
PersistenceError Text | |
LogicError Text | |
NotificationError Text |
Instances
Show UserCommandError Source # | |
Defined in WikiMusic.Free.UserCommand Methods showsPrec :: Int -> UserCommandError -> ShowS # show :: UserCommandError -> String # showList :: [UserCommandError] -> ShowS # |
newtype UserPassword Source #
Constructors
UserPassword | |
Instances
Generic UserPassword Source # | |
Defined in WikiMusic.Free.UserCommand Associated Types type Rep UserPassword :: Type -> Type # | |
Show UserPassword Source # | |
Defined in WikiMusic.Free.UserCommand Methods showsPrec :: Int -> UserPassword -> ShowS # show :: UserPassword -> String # showList :: [UserPassword] -> ShowS # | |
Eq UserPassword Source # | |
Defined in WikiMusic.Free.UserCommand | |
(k ~ An_Iso, a ~ Text, b ~ Text) => LabelOptic "value" k UserPassword UserPassword a b Source # | |
Defined in WikiMusic.Free.UserCommand Methods labelOptic :: Optic k NoIx UserPassword UserPassword a b # | |
type Rep UserPassword Source # | |
Defined in WikiMusic.Free.UserCommand type Rep UserPassword = D1 ('MetaData "UserPassword" "WikiMusic.Free.UserCommand" "wikimusic-api-1.2.0.8-JHwpuK3L2G3YDoKuoiL6D" 'True) (C1 ('MetaCons "UserPassword" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |