polysemy-account-0.2.0.0: Account management with Servant and Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.Account.Data.Account

Description

 
Synopsis

Documentation

data Account p Source #

A basic user account, consisting of a name, activation status, and an arbitrary privilege type.

Constructors

Account 

Instances

Instances details
FromJSON p => FromJSON (Account p) Source # 
Instance details

Defined in Polysemy.Account.Data.Account

ToJSON p => ToJSON (Account p) Source # 
Instance details

Defined in Polysemy.Account.Data.Account

Generic (Account p) Source # 
Instance details

Defined in Polysemy.Account.Data.Account

Associated Types

type Rep (Account p) :: Type -> Type #

Methods

from :: Account p -> Rep (Account p) x #

to :: Rep (Account p) x -> Account p #

Show p => Show (Account p) Source # 
Instance details

Defined in Polysemy.Account.Data.Account

Methods

showsPrec :: Int -> Account p -> ShowS #

show :: Account p -> String #

showList :: [Account p] -> ShowS #

Eq p => Eq (Account p) Source # 
Instance details

Defined in Polysemy.Account.Data.Account

Methods

(==) :: Account p -> Account p -> Bool #

(/=) :: Account p -> Account p -> Bool #

type Rep (Account p) Source # 
Instance details

Defined in Polysemy.Account.Data.Account

type Rep (Account p) = D1 ('MetaData "Account" "Polysemy.Account.Data.Account" "polysemy-account-0.2.0.0-JBrIF35CBfcBfeWmsi0YZS" 'False) (C1 ('MetaCons "Account" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccountName) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccountStatus) :*: S1 ('MetaSel ('Just "privileges") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 p))))

type AccountP = Account [Privilege] Source #

Convenience alias for using the default privilege type with Account.