Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CheckPermission permissionType
- = CPUndefined
- | CPInconsistent
- | CPDefined permissionType
- data CombineRolePermInfo (b :: BackendType) = CombineRolePermInfo {}
- rolePermInfoToCombineRolePermInfo :: RolePermInfo b -> CombineRolePermInfo b
- maybeToCheckPermission :: Maybe a -> CheckPermission a
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
CPUndefined | |
CPInconsistent | |
CPDefined permissionType |
Instances
OnlyRelevantEq permissionType => Monoid (CheckPermission permissionType) Source # | |
Defined in Hasura.RQL.Types.Roles.Internal mempty :: CheckPermission permissionType # mappend :: CheckPermission permissionType -> CheckPermission permissionType -> CheckPermission permissionType # mconcat :: [CheckPermission permissionType] -> CheckPermission permissionType # | |
OnlyRelevantEq permissionType => Semigroup (CheckPermission permissionType) Source # | |
Defined in Hasura.RQL.Types.Roles.Internal (<>) :: 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 # | |
Defined in Hasura.RQL.Types.Roles.Internal showsPrec :: Int -> CheckPermission permissionType -> ShowS # show :: CheckPermission permissionType -> String # showList :: [CheckPermission permissionType] -> ShowS # | |
Eq permissionType => Eq (CheckPermission permissionType) Source # | |
Defined in Hasura.RQL.Types.Roles.Internal (==) :: 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.
Instances
(Backend b, Monoid (CheckPermission (DelPermInfo b)), Monoid (CheckPermission (InsPermInfo b)), Monoid (CheckPermission (UpdPermInfo b)), Monoid (Maybe (CombinedSelPermInfo b))) => Monoid (CombineRolePermInfo b) Source # | |
Defined in Hasura.RQL.Types.Roles.Internal mempty :: CombineRolePermInfo b # mappend :: CombineRolePermInfo b -> CombineRolePermInfo b -> CombineRolePermInfo b # mconcat :: [CombineRolePermInfo b] -> CombineRolePermInfo b # | |
(Backend b, Semigroup (CheckPermission (DelPermInfo b)), Semigroup (CheckPermission (InsPermInfo b)), Semigroup (CheckPermission (UpdPermInfo b)), Semigroup (CombinedSelPermInfo b)) => Semigroup (CombineRolePermInfo b) Source # | |
Defined in Hasura.RQL.Types.Roles.Internal (<>) :: CombineRolePermInfo b -> CombineRolePermInfo b -> CombineRolePermInfo b # sconcat :: NonEmpty (CombineRolePermInfo b) -> CombineRolePermInfo b # stimes :: Integral b0 => b0 -> CombineRolePermInfo b -> CombineRolePermInfo b # |
maybeToCheckPermission :: Maybe a -> CheckPermission a Source #