graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.Types.Roles.Internal

Synopsis

Documentation

data CheckPermission permissionType Source #

CheckPermission is a type which can be used to combine multiple permissions when the permission type implements the OnlyRelevantEq instance

Constructors

CPUndefined 
CPInconsistent 
CPDefined permissionType 

Instances

Instances details
OnlyRelevantEq permissionType => Monoid (CheckPermission permissionType) Source # 
Instance details

Defined in Hasura.RQL.Types.Roles.Internal

Methods

mempty :: CheckPermission permissionType #

mappend :: CheckPermission permissionType -> CheckPermission permissionType -> CheckPermission permissionType #

mconcat :: [CheckPermission permissionType] -> CheckPermission permissionType #

OnlyRelevantEq permissionType => Semigroup (CheckPermission permissionType) Source # 
Instance details

Defined in Hasura.RQL.Types.Roles.Internal

Methods

(<>) :: CheckPermission permissionType -> CheckPermission permissionType -> CheckPermission permissionType #

sconcat :: NonEmpty (CheckPermission permissionType) -> CheckPermission permissionType #

stimes :: Integral b => b -> CheckPermission permissionType -> CheckPermission permissionType #

Show permissionType => Show (CheckPermission permissionType) Source # 
Instance details

Defined in Hasura.RQL.Types.Roles.Internal

Methods

showsPrec :: Int -> CheckPermission permissionType -> ShowS #

show :: CheckPermission permissionType -> String #

showList :: [CheckPermission permissionType] -> ShowS #

Eq permissionType => Eq (CheckPermission permissionType) Source # 
Instance details

Defined in Hasura.RQL.Types.Roles.Internal

Methods

(==) :: CheckPermission permissionType -> CheckPermission permissionType -> Bool #

(/=) :: CheckPermission permissionType -> CheckPermission permissionType -> Bool #

data CombineRolePermInfo (b :: BackendType) Source #

CombineRolePermInfo acts as an intermediate type to be able to combine multiple role permissions into one, using the Monoid instance. Multiple role permissions are combined for inherited role permissions where this is used.