project-m36-1.0.1: Relational Algebra Engine
Safe HaskellSafe-Inferred
LanguageHaskell2010

ProjectM36.Base

Synopsis

Documentation

data Atom Source #

Database atoms are the smallest, undecomposable units of a tuple. Common examples are integers, text, or unique identity keys.

Instances

Instances details
Generic Atom Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep Atom :: Type -> Type Source #

Methods

from :: Atom -> Rep Atom x Source #

to :: Rep Atom x -> Atom Source #

Read Atom Source # 
Instance details

Defined in ProjectM36.Base

Show Atom Source # 
Instance details

Defined in ProjectM36.Base

NFData Atom Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: Atom -> () Source #

Eq Atom Source # 
Instance details

Defined in ProjectM36.Base

Methods

(==) :: Atom -> Atom -> Bool Source #

(/=) :: Atom -> Atom -> Bool Source #

Hashable Atom Source # 
Instance details

Defined in ProjectM36.Base

HashBytes Atom Source # 
Instance details

Defined in ProjectM36.HashSecurely

Methods

hashBytes :: Atom -> Ctx -> Ctx Source #

HashBytes AtomFunction Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes AtomFunctions Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes DatabaseContextFunction Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes DatabaseContextFunctions Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise Atom Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep Atom Source # 
Instance details

Defined in ProjectM36.Base

type Rep Atom = D1 ('MetaData "Atom" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (((C1 ('MetaCons "IntegerAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Integer)) :+: (C1 ('MetaCons "IntAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :+: C1 ('MetaCons "ScientificAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Scientific)))) :+: ((C1 ('MetaCons "DoubleAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :+: C1 ('MetaCons "TextAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) :+: (C1 ('MetaCons "DayAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Day)) :+: C1 ('MetaCons "DateTimeAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UTCTime))))) :+: ((C1 ('MetaCons "ByteStringAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString)) :+: (C1 ('MetaCons "BoolAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :+: C1 ('MetaCons "UUIDAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UUID)))) :+: ((C1 ('MetaCons "RelationAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Relation)) :+: C1 ('MetaCons "RelationalExprAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 RelationalExpr))) :+: (C1 ('MetaCons "SubrelationFoldAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Relation) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AttributeName)) :+: C1 ('MetaCons "ConstructedAtom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DataConstructorName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AtomType) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Atom])))))))

data AtomType Source #

The AtomType uniquely identifies the type of a atom.

Instances

Instances details
Generic AtomType Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep AtomType :: Type -> Type Source #

Read AtomType Source # 
Instance details

Defined in ProjectM36.Base

Show AtomType Source # 
Instance details

Defined in ProjectM36.Base

NFData AtomType Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: AtomType -> () Source #

Eq AtomType Source # 
Instance details

Defined in ProjectM36.Base

Hashable AtomType Source # 
Instance details

Defined in ProjectM36.Base

HashBytes AtomType Source # 
Instance details

Defined in ProjectM36.HashSecurely

Methods

hashBytes :: AtomType -> Ctx -> Ctx Source #

Serialise AtomType Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep AtomType Source # 
Instance details

Defined in ProjectM36.Base

type Rep AtomType = D1 ('MetaData "AtomType" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (((C1 ('MetaCons "IntAtomType" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IntegerAtomType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScientificAtomType" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "DoubleAtomType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextAtomType" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DayAtomType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DateTimeAtomType" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "ByteStringAtomType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BoolAtomType" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UUIDAtomType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RelationAtomType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attributes)))) :+: ((C1 ('MetaCons "SubrelationFoldAtomType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AtomType)) :+: C1 ('MetaCons "ConstructedAtomType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeConstructorName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeVarMap))) :+: (C1 ('MetaCons "RelationalExprAtomType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TypeVariableType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeVarName))))))

isRelationAtomType :: AtomType -> Bool Source #

Return True iff the atom type argument is relation-valued. If True, this indicates that the Atom contains a relation.

type AttributeName = StringType Source #

The AttributeName is the name of an attribute in a relation.

data Attribute Source #

A relation's type is composed of attribute names and types.

Instances

Instances details
Generic Attribute Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep Attribute :: Type -> Type Source #

Read Attribute Source # 
Instance details

Defined in ProjectM36.Base

Show Attribute Source # 
Instance details

Defined in ProjectM36.Base

NFData Attribute Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: Attribute -> () Source #

Eq Attribute Source # 
Instance details

Defined in ProjectM36.Base

Hashable Attribute Source # 
Instance details

Defined in ProjectM36.Base

HashBytes Attribute Source # 
Instance details

Defined in ProjectM36.HashSecurely

Methods

hashBytes :: Attribute -> Ctx -> Ctx Source #

Serialise Attribute Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep Attribute Source # 
Instance details

Defined in ProjectM36.Base

newtype Attributes Source #

Attributes represent the head of a relation.

Constructors

Attributes 

Instances

Instances details
Monoid Attributes Source # 
Instance details

Defined in ProjectM36.Attribute

Semigroup Attributes Source # 
Instance details

Defined in ProjectM36.Attribute

Generic Attributes Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep Attributes :: Type -> Type Source #

Read Attributes Source # 
Instance details

Defined in ProjectM36.Base

Show Attributes Source # 
Instance details

Defined in ProjectM36.Base

NFData Attributes Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: Attributes -> () Source #

Eq Attributes Source # 
Instance details

Defined in ProjectM36.Base

Hashable Attributes Source # 
Instance details

Defined in ProjectM36.Base

HashBytes Attributes Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise Attributes Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep Attributes Source # 
Instance details

Defined in ProjectM36.Base

type Rep Attributes = D1 ('MetaData "Attributes" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'True) (C1 ('MetaCons "Attributes" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributesVec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector Attribute))))

newtype RelationTupleSet Source #

The relation's tuple set is the body of the relation.

Constructors

RelationTupleSet 

Fields

Instances

Instances details
Generic RelationTupleSet Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep RelationTupleSet :: Type -> Type Source #

Read RelationTupleSet Source # 
Instance details

Defined in ProjectM36.Base

Show RelationTupleSet Source # 
Instance details

Defined in ProjectM36.Base

NFData RelationTupleSet Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: RelationTupleSet -> () Source #

Eq RelationTupleSet Source # 
Instance details

Defined in ProjectM36.Base

Hashable RelationTupleSet Source # 
Instance details

Defined in ProjectM36.Base

HashBytes RelationTupleSet Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise RelationTupleSet Source #

A special instance of Serialise which cuts down on duplicate attributes- we should only serialise the attributes at the top-level and not duplicate them per tuple. If we have an empty tupleset, we lack all attributes which is fine in this case.

Instance details

Defined in ProjectM36.Serialise.Base

type Rep RelationTupleSet Source # 
Instance details

Defined in ProjectM36.Base

type Rep RelationTupleSet = D1 ('MetaData "RelationTupleSet" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'True) (C1 ('MetaCons "RelationTupleSet" 'PrefixI 'True) (S1 ('MetaSel ('Just "asList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RelationTuple])))

data RelationTuple Source #

A tuple is a set of attributes mapped to their Atom values.

Instances

Instances details
Generic RelationTuple Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep RelationTuple :: Type -> Type Source #

Read RelationTuple Source # 
Instance details

Defined in ProjectM36.Base

Show RelationTuple Source # 
Instance details

Defined in ProjectM36.Base

NFData RelationTuple Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: RelationTuple -> () Source #

Eq RelationTuple Source # 
Instance details

Defined in ProjectM36.Base

Hashable RelationTuple Source # 
Instance details

Defined in ProjectM36.Base

HashBytes RelationTuple Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise RelationTuple Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep RelationTuple Source # 
Instance details

Defined in ProjectM36.Base

type Rep RelationTuple = D1 ('MetaData "RelationTuple" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "RelationTuple" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attributes) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector Atom))))

data Relation Source #

Instances

Instances details
Generic Relation Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep Relation :: Type -> Type Source #

Read Relation Source # 
Instance details

Defined in ProjectM36.Base

Show Relation Source # 
Instance details

Defined in ProjectM36.Base

NFData Relation Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: Relation -> () Source #

Eq Relation Source # 
Instance details

Defined in ProjectM36.Base

Hashable Relation Source # 
Instance details

Defined in ProjectM36.Base

HashBytes Relation Source # 
Instance details

Defined in ProjectM36.HashSecurely

Methods

hashBytes :: Relation -> Ctx -> Ctx Source #

Serialise Relation Source #

A special instance of Serialise which cuts down on duplicate attributes- we should only serialise the attributes at the top-level and not duplicate them per tuple.

Instance details

Defined in ProjectM36.Serialise.Base

HashBytes (Map RelVarName Relation) Source # 
Instance details

Defined in ProjectM36.HashSecurely

type Rep Relation Source # 
Instance details

Defined in ProjectM36.Base

data RelationCardinality Source #

Used to represent the number of tuples in a relation.

Constructors

Countable 
Finite Int 

Instances

Instances details
Generic RelationCardinality Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep RelationCardinality :: Type -> Type Source #

Show RelationCardinality Source # 
Instance details

Defined in ProjectM36.Base

Eq RelationCardinality Source # 
Instance details

Defined in ProjectM36.Base

Ord RelationCardinality Source # 
Instance details

Defined in ProjectM36.Base

Serialise RelationCardinality Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep RelationCardinality Source # 
Instance details

Defined in ProjectM36.Base

type Rep RelationCardinality = D1 ('MetaData "RelationCardinality" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "Countable" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Finite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

type RelVarName = StringType Source #

Relation variables are identified by their names.

data RelationalExprBase a Source #

A relational expression represents query (read) operations on a database.

Instances

Instances details
Foldable RelationalExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => RelationalExprBase m -> m Source #

foldMap :: Monoid m => (a -> m) -> RelationalExprBase a -> m Source #

foldMap' :: Monoid m => (a -> m) -> RelationalExprBase a -> m Source #

foldr :: (a -> b -> b) -> b -> RelationalExprBase a -> b Source #

foldr' :: (a -> b -> b) -> b -> RelationalExprBase a -> b Source #

foldl :: (b -> a -> b) -> b -> RelationalExprBase a -> b Source #

foldl' :: (b -> a -> b) -> b -> RelationalExprBase a -> b Source #

foldr1 :: (a -> a -> a) -> RelationalExprBase a -> a Source #

foldl1 :: (a -> a -> a) -> RelationalExprBase a -> a Source #

toList :: RelationalExprBase a -> [a] Source #

null :: RelationalExprBase a -> Bool Source #

length :: RelationalExprBase a -> Int Source #

elem :: Eq a => a -> RelationalExprBase a -> Bool Source #

maximum :: Ord a => RelationalExprBase a -> a Source #

minimum :: Ord a => RelationalExprBase a -> a Source #

sum :: Num a => RelationalExprBase a -> a Source #

product :: Num a => RelationalExprBase a -> a Source #

Traversable RelationalExprBase Source # 
Instance details

Defined in ProjectM36.Base

Functor RelationalExprBase Source # 
Instance details

Defined in ProjectM36.Base

Hashable RelationalExpr Source # 
Instance details

Defined in ProjectM36.Base

HashBytes RelationVariables Source # 
Instance details

Defined in ProjectM36.HashSecurely

Morph RelationalExpr Source # 
Instance details

Defined in ProjectM36.IsomorphicSchema

ReferencedTransactionIds RelationVariables Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

ResolveGraphRefTransactionMarker GraphRefRelationalExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

KnownSymbol x => IsLabel x RelationalExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible RelVarName RelationalExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible RelationalExpr AtomExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible RelationalExpr RestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Generic (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (RelationalExprBase a) :: Type -> Type Source #

Read a => Read (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: RelationalExprBase a -> () Source #

Eq a => Eq (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds a => ReferencedTransactionIds (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Corecursive (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Recursive (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Serialise a => Serialise (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (RelationalExprBase a) = D1 ('MetaData "RelationalExprBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) ((((C1 ('MetaCons "MakeRelationFromExprs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [AttributeExprBase a])) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TupleExprsBase a))) :+: C1 ('MetaCons "MakeStaticRelation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attributes) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationTupleSet))) :+: (C1 ('MetaCons "ExistingRelation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Relation)) :+: C1 ('MetaCons "RelationVariable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))) :+: ((C1 ('MetaCons "RelationValuedAttribute" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName)) :+: C1 ('MetaCons "Project" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AttributeNamesBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)))) :+: (C1 ('MetaCons "Union" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))) :+: C1 ('MetaCons "Join" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)))))) :+: (((C1 ('MetaCons "Rename" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set (AttributeName, AttributeName))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))) :+: C1 ('MetaCons "Difference" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)))) :+: (C1 ('MetaCons "Group" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AttributeNamesBase a)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)))) :+: C1 ('MetaCons "Ungroup" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))))) :+: ((C1 ('MetaCons "Restrict" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RestrictionPredicateExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))) :+: C1 ('MetaCons "Equals" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)))) :+: (C1 ('MetaCons "NotEquals" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))) :+: (C1 ('MetaCons "Extend" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ExtendTupleExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))) :+: C1 ('MetaCons "With" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithNamesAssocsBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))))))))
type Base (RelationalExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

data WithNameExprBase a Source #

Constructors

WithNameExpr RelVarName a 

Instances

Instances details
Foldable WithNameExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => WithNameExprBase m -> m Source #

foldMap :: Monoid m => (a -> m) -> WithNameExprBase a -> m Source #

foldMap' :: Monoid m => (a -> m) -> WithNameExprBase a -> m Source #

foldr :: (a -> b -> b) -> b -> WithNameExprBase a -> b Source #

foldr' :: (a -> b -> b) -> b -> WithNameExprBase a -> b Source #

foldl :: (b -> a -> b) -> b -> WithNameExprBase a -> b Source #

foldl' :: (b -> a -> b) -> b -> WithNameExprBase a -> b Source #

foldr1 :: (a -> a -> a) -> WithNameExprBase a -> a Source #

foldl1 :: (a -> a -> a) -> WithNameExprBase a -> a Source #

toList :: WithNameExprBase a -> [a] Source #

null :: WithNameExprBase a -> Bool Source #

length :: WithNameExprBase a -> Int Source #

elem :: Eq a => a -> WithNameExprBase a -> Bool Source #

maximum :: Ord a => WithNameExprBase a -> a Source #

minimum :: Ord a => WithNameExprBase a -> a Source #

sum :: Num a => WithNameExprBase a -> a Source #

product :: Num a => WithNameExprBase a -> a Source #

Traversable WithNameExprBase Source # 
Instance details

Defined in ProjectM36.Base

Functor WithNameExprBase Source # 
Instance details

Defined in ProjectM36.Base

ResolveGraphRefTransactionMarker GraphRefWithNameExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

Generic (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (WithNameExprBase a) :: Type -> Type Source #

Read a => Read (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: WithNameExprBase a -> () Source #

Eq a => Eq (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Hashable a => Hashable (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds a => ReferencedTransactionIds (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Serialise a => Serialise (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (WithNameExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (WithNameExprBase a) = D1 ('MetaData "WithNameExprBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "WithNameExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))

data Notification Source #

When the changeExpr returns a different result in the database context, then the reportExpr is triggered and sent asynchronously to all clients.

Instances

Instances details
Generic Notification Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep Notification :: Type -> Type Source #

Show Notification Source # 
Instance details

Defined in ProjectM36.Base

NFData Notification Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: Notification -> () Source #

Eq Notification Source # 
Instance details

Defined in ProjectM36.Base

HashBytes Notification Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes Notifications Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise Notification Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep Notification Source # 
Instance details

Defined in ProjectM36.Base

type Rep Notification = D1 ('MetaData "Notification" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "Notification" 'PrefixI 'True) (S1 ('MetaSel ('Just "changeExpr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr) :*: (S1 ('MetaSel ('Just "reportOldExpr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr) :*: S1 ('MetaSel ('Just "reportNewExpr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr))))

data TypeConstructorDef Source #

Metadata definition for type constructors such as data Either a b.

Instances

Instances details
Generic TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep TypeConstructorDef :: Type -> Type Source #

Read TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

Show TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

NFData TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: TypeConstructorDef -> () Source #

Eq TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

Hashable TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

HashBytes TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes TypeConstructorMapping Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep TypeConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

type TypeConstructor = TypeConstructorBase () Source #

Found in data constructors and type declarations: Left (Either Int Text) | Right Int

data TypeConstructorBase a Source #

Instances

Instances details
HashBytes TypeConstructor Source # 
Instance details

Defined in ProjectM36.HashSecurely

Generic (TypeConstructorBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (TypeConstructorBase a) :: Type -> Type Source #

Read a => Read (TypeConstructorBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (TypeConstructorBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (TypeConstructorBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: TypeConstructorBase a -> () Source #

Eq a => Eq (TypeConstructorBase a) Source # 
Instance details

Defined in ProjectM36.Base

Hashable a => Hashable (TypeConstructorBase a) Source # 
Instance details

Defined in ProjectM36.Base

Serialise a => Serialise (TypeConstructorBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (TypeConstructorBase a) Source # 
Instance details

Defined in ProjectM36.Base

data DataConstructorDef Source #

Used to define a data constructor in a type constructor context such as Left a | Right b

Instances

Instances details
Generic DataConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep DataConstructorDef :: Type -> Type Source #

Read DataConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

Show DataConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

NFData DataConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: DataConstructorDef -> () Source #

Eq DataConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

Hashable DataConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

HashBytes DataConstructorDef Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes TypeConstructorMapping Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise DataConstructorDef Source # 
Instance details

Defined in ProjectM36.Serialise.Base

HashBytes [DataConstructorDef] Source # 
Instance details

Defined in ProjectM36.HashSecurely

type Rep DataConstructorDef Source # 
Instance details

Defined in ProjectM36.Base

data DataConstructorDefArg Source #

Instances

Instances details
Generic DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep DataConstructorDefArg :: Type -> Type Source #

Read DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.Base

Show DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.Base

NFData DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.Base

Eq DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.Base

Hashable DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.Base

HashBytes DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep DataConstructorDefArg Source # 
Instance details

Defined in ProjectM36.Base

type Rep DataConstructorDefArg = D1 ('MetaData "DataConstructorDefArg" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "DataConstructorDefTypeConstructorArg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeConstructor)) :+: C1 ('MetaCons "DataConstructorDefTypeVarNameArg" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeVarName)))

data GraphRefTransactionMarker Source #

Instances

Instances details
Generic GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep GraphRefTransactionMarker :: Type -> Type Source #

Show GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.Base

NFData GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.Base

Eq GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.Base

Ord GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.Base

HashBytes GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes RelationVariables Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

ReferencedTransactionIds RelationVariables Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

ResolveGraphRefTransactionMarker GraphRefAtomExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

ResolveGraphRefTransactionMarker GraphRefAttributeNames Source # 
Instance details

Defined in ProjectM36.RelationalExpression

ResolveGraphRefTransactionMarker GraphRefExtendTupleExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

ResolveGraphRefTransactionMarker GraphRefRelationalExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

ResolveGraphRefTransactionMarker GraphRefRestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

ResolveGraphRefTransactionMarker GraphRefTupleExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

ResolveGraphRefTransactionMarker GraphRefTupleExprs Source # 
Instance details

Defined in ProjectM36.RelationalExpression

ResolveGraphRefTransactionMarker GraphRefWithNameExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

Serialise GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep GraphRefTransactionMarker Source # 
Instance details

Defined in ProjectM36.Base

type Rep GraphRefTransactionMarker = D1 ('MetaData "GraphRefTransactionMarker" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "TransactionMarker" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TransactionId)) :+: C1 ('MetaCons "UncommittedContextMarker" 'PrefixI 'False) (U1 :: Type -> Type))

data Schemas Source #

Every transaction has one concrete database context and any number of isomorphic subschemas.

Instances

Instances details
Generic Schemas Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep Schemas :: Type -> Type Source #

type Rep Schemas Source # 
Instance details

Defined in ProjectM36.Base

newtype Schema Source #

The DatabaseContext is a snapshot of a database's evolving state and contains everything a database client can change over time. I spent some time thinking about whether the VirtualDatabaseContext/Schema and DatabaseContext data constructors should be the same constructor, but that would allow relation variables to be created in a "virtual" context which would appear to defeat the isomorphisms of the contexts. It should be possible to switch to an alternative schema to view the same equivalent information without information loss. However, allowing all contexts to reference another context while maintaining its own relation variables, new types, etc. could be interesting from a security perspective. For example, if a user creates a new relvar in a virtual context, then does it necessarily appear in all linked contexts? After deliberation, I think the relvar should appear in *all* linked contexts to retain the isomorphic properties, even when the isomorphism is for a subset of the context. This hints that the IsoMorphs should allow for "fall-through"; that is, when a relvar is not defined in the virtual context (for morphing), then the lookup should fall through to the underlying context.

Constructors

Schema SchemaIsomorphs 

Instances

Instances details
Generic Schema Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep Schema :: Type -> Type Source #

HashBytes Schema Source # 
Instance details

Defined in ProjectM36.HashSecurely

Methods

hashBytes :: Schema -> Ctx -> Ctx Source #

Serialise Schema Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep Schema Source # 
Instance details

Defined in ProjectM36.Base

type Rep Schema = D1 ('MetaData "Schema" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'True) (C1 ('MetaCons "Schema" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SchemaIsomorphs)))

data SchemaIsomorph Source #

Instances

Instances details
Generic SchemaIsomorph Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep SchemaIsomorph :: Type -> Type Source #

Show SchemaIsomorph Source # 
Instance details

Defined in ProjectM36.Base

HashBytes SchemaIsomorph Source # 
Instance details

Defined in ProjectM36.HashSecurely

Serialise SchemaIsomorph Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep SchemaIsomorph Source # 
Instance details

Defined in ProjectM36.Base

data DatabaseContext Source #

Instances

Instances details
Generic DatabaseContext Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep DatabaseContext :: Type -> Type Source #

NFData DatabaseContext Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: DatabaseContext -> () Source #

HashBytes DatabaseContext Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes DatabaseContextFunction Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes DatabaseContextFunctions Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds DatabaseContext Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

type Rep DatabaseContext Source # 
Instance details

Defined in ProjectM36.Base

data InclusionDependency Source #

Inclusion dependencies represent every possible database constraint. Constraints enforce specific, arbitrarily-complex rules to which the database context's relation variables must adhere unconditionally.

Instances

Instances details
Generic InclusionDependency Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep InclusionDependency :: Type -> Type Source #

Read InclusionDependency Source # 
Instance details

Defined in ProjectM36.Base

Show InclusionDependency Source # 
Instance details

Defined in ProjectM36.Base

NFData InclusionDependency Source # 
Instance details

Defined in ProjectM36.Base

Eq InclusionDependency Source # 
Instance details

Defined in ProjectM36.Base

Hashable InclusionDependency Source # 
Instance details

Defined in ProjectM36.Base

HashBytes InclusionDependencies Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes InclusionDependency Source # 
Instance details

Defined in ProjectM36.HashSecurely

Morph InclusionDependencies Source # 
Instance details

Defined in ProjectM36.IsomorphicSchema

Morph InclusionDependency Source #

The names of inclusion dependencies might leak context about a different schema, but that's arbitrary and cannot be altered without having the user provide a renaming function or a new set of incDep names- seems extraneous.

Instance details

Defined in ProjectM36.IsomorphicSchema

Serialise InclusionDependency Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep InclusionDependency Source # 
Instance details

Defined in ProjectM36.Base

type Rep InclusionDependency = D1 ('MetaData "InclusionDependency" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "InclusionDependency" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr)))

data DatabaseContextExprBase a Source #

Database context expressions modify the database context.

Instances

Instances details
Hashable DatabaseContextExpr Source # 
Instance details

Defined in ProjectM36.Base

Generic (DatabaseContextExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (DatabaseContextExprBase a) :: Type -> Type Source #

Read a => Read (DatabaseContextExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (DatabaseContextExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (DatabaseContextExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Eq a => Eq (DatabaseContextExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Serialise a => Serialise (DatabaseContextExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (DatabaseContextExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (DatabaseContextExprBase a) = D1 ('MetaData "DatabaseContextExprBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) ((((C1 ('MetaCons "NoOperation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Define" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AttributeExprBase a]))) :+: (C1 ('MetaCons "Undefine" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName)) :+: C1 ('MetaCons "Assign" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))))) :+: ((C1 ('MetaCons "Insert" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a))) :+: C1 ('MetaCons "Delete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RestrictionPredicateExprBase a)))) :+: (C1 ('MetaCons "Update" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeNameAtomExprMap) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RestrictionPredicateExprBase a)))) :+: (C1 ('MetaCons "AddInclusionDependency" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IncDepName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InclusionDependency)) :+: C1 ('MetaCons "RemoveInclusionDependency" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IncDepName)))))) :+: (((C1 ('MetaCons "AddNotification" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotificationName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr))) :+: C1 ('MetaCons "RemoveNotification" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotificationName))) :+: (C1 ('MetaCons "AddTypeConstructor" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeConstructorDef) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DataConstructorDef])) :+: (C1 ('MetaCons "RemoveTypeConstructor" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeConstructorName)) :+: C1 ('MetaCons "RemoveAtomFunction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionName))))) :+: ((C1 ('MetaCons "RemoveDatabaseContextFunction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionName)) :+: C1 ('MetaCons "ExecuteDatabaseContextFunction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AtomExprBase a]))) :+: (C1 ('MetaCons "AddRegisteredQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RegisteredQueryName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr)) :+: (C1 ('MetaCons "RemoveRegisteredQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RegisteredQueryName)) :+: C1 ('MetaCons "MultipleExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DatabaseContextExprBase a])))))))

type Range = (Int, Int) Source #

data DatabaseContextIOExprBase a Source #

Adding an atom function should be nominally a DatabaseExpr except for the fact that it cannot be performed purely. Thus, we create the DatabaseContextIOExpr.

Instances

Instances details
Generic (DatabaseContextIOExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (DatabaseContextIOExprBase a) :: Type -> Type Source #

Show a => Show (DatabaseContextIOExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Eq a => Eq (DatabaseContextIOExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Serialise a => Serialise (DatabaseContextIOExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (DatabaseContextIOExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (DatabaseContextIOExprBase a) = D1 ('MetaData "DatabaseContextIOExprBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) ((C1 ('MetaCons "AddAtomFunction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TypeConstructor]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionBodyScript))) :+: C1 ('MetaCons "LoadAtomFunctions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ObjModuleName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ObjFunctionName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)))) :+: (C1 ('MetaCons "AddDatabaseContextFunction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TypeConstructor]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionBodyScript))) :+: (C1 ('MetaCons "LoadDatabaseContextFunctions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ObjModuleName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ObjFunctionName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath))) :+: C1 ('MetaCons "CreateArbitraryRelation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelVarName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AttributeExprBase a]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Range))))))

data RestrictionPredicateExprBase a Source #

Restriction predicates are boolean algebra components which, when composed, indicate whether or not a tuple should be retained during a restriction (filtering) operation.

Instances

Instances details
Foldable RestrictionPredicateExprBase Source # 
Instance details

Defined in ProjectM36.Base

Traversable RestrictionPredicateExprBase Source # 
Instance details

Defined in ProjectM36.Base

Functor RestrictionPredicateExprBase Source # 
Instance details

Defined in ProjectM36.Base

Hashable RestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.Base

ResolveGraphRefTransactionMarker GraphRefRestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

Convertible AtomExpr RestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible RelationalExpr RestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible RestrictionPredicateExpr RestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Atomable a => Convertible a RestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Generic (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (RestrictionPredicateExprBase a) :: Type -> Type Source #

Read a => Read (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Eq a => Eq (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds a => ReferencedTransactionIds (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Serialise a => Serialise (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (RestrictionPredicateExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (RestrictionPredicateExprBase a) = D1 ('MetaData "RestrictionPredicateExprBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) ((C1 ('MetaCons "TruePredicate" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AndPredicate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RestrictionPredicateExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RestrictionPredicateExprBase a))) :+: C1 ('MetaCons "OrPredicate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RestrictionPredicateExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RestrictionPredicateExprBase a))))) :+: ((C1 ('MetaCons "NotPredicate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RestrictionPredicateExprBase a))) :+: C1 ('MetaCons "RelationalExprPredicate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)))) :+: (C1 ('MetaCons "AtomExprPredicate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AtomExprBase a))) :+: C1 ('MetaCons "AttributeEqualityPredicate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AtomExprBase a))))))

type HeadName = StringType Source #

A transaction graph's head name references the leaves of the transaction graph and can be used during session creation to indicate at which point in the graph commits should persist.

data TransactionGraph Source #

The transaction graph is the global database's state which references every committed transaction.

Instances

Instances details
Generic TransactionGraph Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep TransactionGraph :: Type -> Type Source #

type Rep TransactionGraph Source # 
Instance details

Defined in ProjectM36.Base

data TransactionInfo Source #

Every transaction has context-specific information attached to it. The TransactionDiffs represent child/edge relationships to previous transactions (branches or continuations of the same branch).

type TransactionId = UUID Source #

Every set of modifications made to the database are atomically committed to the transaction graph as a transaction.

data Transaction Source #

data DisconnectedTransaction Source #

The disconnected transaction represents an in-progress workspace used by sessions before changes are committed. This is similar to git's "index". After a transaction is committed, it is "connected" in the transaction graph and can no longer be modified.

data AtomExprBase a Source #

An atom expression represents an action to take when extending a relation or when statically defining a relation or a new tuple.

Instances

Instances details
Foldable AtomExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => AtomExprBase m -> m Source #

foldMap :: Monoid m => (a -> m) -> AtomExprBase a -> m Source #

foldMap' :: Monoid m => (a -> m) -> AtomExprBase a -> m Source #

foldr :: (a -> b -> b) -> b -> AtomExprBase a -> b Source #

foldr' :: (a -> b -> b) -> b -> AtomExprBase a -> b Source #

foldl :: (b -> a -> b) -> b -> AtomExprBase a -> b Source #

foldl' :: (b -> a -> b) -> b -> AtomExprBase a -> b Source #

foldr1 :: (a -> a -> a) -> AtomExprBase a -> a Source #

foldl1 :: (a -> a -> a) -> AtomExprBase a -> a Source #

toList :: AtomExprBase a -> [a] Source #

null :: AtomExprBase a -> Bool Source #

length :: AtomExprBase a -> Int Source #

elem :: Eq a => a -> AtomExprBase a -> Bool Source #

maximum :: Ord a => AtomExprBase a -> a Source #

minimum :: Ord a => AtomExprBase a -> a Source #

sum :: Num a => AtomExprBase a -> a Source #

product :: Num a => AtomExprBase a -> a Source #

Traversable AtomExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

traverse :: Applicative f => (a -> f b) -> AtomExprBase a -> f (AtomExprBase b) Source #

sequenceA :: Applicative f => AtomExprBase (f a) -> f (AtomExprBase a) Source #

mapM :: Monad m => (a -> m b) -> AtomExprBase a -> m (AtomExprBase b) Source #

sequence :: Monad m => AtomExprBase (m a) -> m (AtomExprBase a) Source #

Functor AtomExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fmap :: (a -> b) -> AtomExprBase a -> AtomExprBase b Source #

(<$) :: a -> AtomExprBase b -> AtomExprBase a Source #

Hashable AtomExpr Source # 
Instance details

Defined in ProjectM36.Base

ResolveGraphRefTransactionMarker GraphRefAtomExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

KnownSymbol x => IsLabel x AtomExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible AtomExpr AtomExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible AtomExpr RestrictionPredicateExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible RelVarName AtomExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Convertible RelationalExpr AtomExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Atomable a => Convertible a AtomExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

(KnownSymbol x, Convertible a AtomExpr) => IsLabel x ([a] -> AtomExpr) Source # 
Instance details

Defined in ProjectM36.Shortcuts

Methods

fromLabel :: [a] -> AtomExpr Source #

(Convertible a AtomExpr, KnownSymbol x) => IsLabel x (a -> (AttributeName, AtomExpr)) Source # 
Instance details

Defined in ProjectM36.Shortcuts

Generic (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (AtomExprBase a) :: Type -> Type Source #

Read a => Read (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: AtomExprBase a -> () Source #

Eq a => Eq (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

Methods

hashBytes :: AtomExprBase a -> Ctx -> Ctx Source #

ReferencedTransactionIds a => ReferencedTransactionIds (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Serialise a => Serialise (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (AtomExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (AtomExprBase a) = D1 ('MetaData "AtomExprBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) ((C1 ('MetaCons "AttributeAtomExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName)) :+: (C1 ('MetaCons "SubrelationAttributeAtomExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName)) :+: C1 ('MetaCons "NakedAtomExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Atom)))) :+: ((C1 ('MetaCons "FunctionAtomExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FunctionName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AtomExprBase a]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a))) :+: C1 ('MetaCons "RelationAtomExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (RelationalExprBase a)))) :+: (C1 ('MetaCons "IfThenAtomExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AtomExprBase a)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AtomExprBase a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AtomExprBase a)))) :+: C1 ('MetaCons "ConstructedAtomExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DataConstructorName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AtomExprBase a]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a))))))

data ExtendTupleExprBase a Source #

Used in tuple creation when creating a relation.

Instances

Instances details
Foldable ExtendTupleExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => ExtendTupleExprBase m -> m Source #

foldMap :: Monoid m => (a -> m) -> ExtendTupleExprBase a -> m Source #

foldMap' :: Monoid m => (a -> m) -> ExtendTupleExprBase a -> m Source #

foldr :: (a -> b -> b) -> b -> ExtendTupleExprBase a -> b Source #

foldr' :: (a -> b -> b) -> b -> ExtendTupleExprBase a -> b Source #

foldl :: (b -> a -> b) -> b -> ExtendTupleExprBase a -> b Source #

foldl' :: (b -> a -> b) -> b -> ExtendTupleExprBase a -> b Source #

foldr1 :: (a -> a -> a) -> ExtendTupleExprBase a -> a Source #

foldl1 :: (a -> a -> a) -> ExtendTupleExprBase a -> a Source #

toList :: ExtendTupleExprBase a -> [a] Source #

null :: ExtendTupleExprBase a -> Bool Source #

length :: ExtendTupleExprBase a -> Int Source #

elem :: Eq a => a -> ExtendTupleExprBase a -> Bool Source #

maximum :: Ord a => ExtendTupleExprBase a -> a Source #

minimum :: Ord a => ExtendTupleExprBase a -> a Source #

sum :: Num a => ExtendTupleExprBase a -> a Source #

product :: Num a => ExtendTupleExprBase a -> a Source #

Traversable ExtendTupleExprBase Source # 
Instance details

Defined in ProjectM36.Base

Functor ExtendTupleExprBase Source # 
Instance details

Defined in ProjectM36.Base

Hashable ExtendTupleExpr Source # 
Instance details

Defined in ProjectM36.Base

ResolveGraphRefTransactionMarker GraphRefExtendTupleExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

(Convertible a AtomExpr, KnownSymbol x) => IsLabel x (a -> ExtendTupleExpr) Source # 
Instance details

Defined in ProjectM36.Shortcuts

Generic (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (ExtendTupleExprBase a) :: Type -> Type Source #

Read a => Read (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: ExtendTupleExprBase a -> () Source #

Eq a => Eq (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds a => ReferencedTransactionIds (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Serialise a => Serialise (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (ExtendTupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (ExtendTupleExprBase a) = D1 ('MetaData "ExtendTupleExprBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "AttributeExtendTupleExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AtomExprBase a))))

data AttributeNamesBase a Source #

An AtomFunction has a name, a type, and a function body to execute when called.

The AttributeNamesBase structure represents a set of attribute names or the same set of names but inverted in the context of a relational expression. For example, if a relational expression has attributes named "a", "b", and "c", the InvertedAttributeNames of ("a","c") is ("b").

Instances

Instances details
Foldable AttributeNamesBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => AttributeNamesBase m -> m Source #

foldMap :: Monoid m => (a -> m) -> AttributeNamesBase a -> m Source #

foldMap' :: Monoid m => (a -> m) -> AttributeNamesBase a -> m Source #

foldr :: (a -> b -> b) -> b -> AttributeNamesBase a -> b Source #

foldr' :: (a -> b -> b) -> b -> AttributeNamesBase a -> b Source #

foldl :: (b -> a -> b) -> b -> AttributeNamesBase a -> b Source #

foldl' :: (b -> a -> b) -> b -> AttributeNamesBase a -> b Source #

foldr1 :: (a -> a -> a) -> AttributeNamesBase a -> a Source #

foldl1 :: (a -> a -> a) -> AttributeNamesBase a -> a Source #

toList :: AttributeNamesBase a -> [a] Source #

null :: AttributeNamesBase a -> Bool Source #

length :: AttributeNamesBase a -> Int Source #

elem :: Eq a => a -> AttributeNamesBase a -> Bool Source #

maximum :: Ord a => AttributeNamesBase a -> a Source #

minimum :: Ord a => AttributeNamesBase a -> a Source #

sum :: Num a => AttributeNamesBase a -> a Source #

product :: Num a => AttributeNamesBase a -> a Source #

Traversable AttributeNamesBase Source # 
Instance details

Defined in ProjectM36.Base

Functor AttributeNamesBase Source # 
Instance details

Defined in ProjectM36.Base

Hashable AttributeNames Source # 
Instance details

Defined in ProjectM36.Base

ResolveGraphRefTransactionMarker GraphRefAttributeNames Source # 
Instance details

Defined in ProjectM36.RelationalExpression

IsList (AttributeNamesBase ()) Source # 
Instance details

Defined in ProjectM36.Shortcuts

Associated Types

type Item (AttributeNamesBase ()) Source #

Generic (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (AttributeNamesBase a) :: Type -> Type Source #

Read a => Read (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: AttributeNamesBase a -> () Source #

Eq a => Eq (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds a => ReferencedTransactionIds (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Serialise a => Serialise (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Item (AttributeNamesBase ()) Source # 
Instance details

Defined in ProjectM36.Shortcuts

type Rep (AttributeNamesBase a) Source # 
Instance details

Defined in ProjectM36.Base

data PersistenceStrategy Source #

The persistence strategy is a global database option which represents how to persist the database in the filesystem, if at all.

Constructors

NoPersistence

no filesystem persistence/memory-only database

MinimalPersistence FilePath

fsync off, not crash-safe

CrashSafePersistence FilePath

full fsync to disk (flushes kernel and physical drive buffers to ensure that the transaction is on non-volatile storage)

data AttributeExprBase a Source #

Create attributes dynamically.

Instances

Instances details
Foldable AttributeExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => AttributeExprBase m -> m Source #

foldMap :: Monoid m => (a -> m) -> AttributeExprBase a -> m Source #

foldMap' :: Monoid m => (a -> m) -> AttributeExprBase a -> m Source #

foldr :: (a -> b -> b) -> b -> AttributeExprBase a -> b Source #

foldr' :: (a -> b -> b) -> b -> AttributeExprBase a -> b Source #

foldl :: (b -> a -> b) -> b -> AttributeExprBase a -> b Source #

foldl' :: (b -> a -> b) -> b -> AttributeExprBase a -> b Source #

foldr1 :: (a -> a -> a) -> AttributeExprBase a -> a Source #

foldl1 :: (a -> a -> a) -> AttributeExprBase a -> a Source #

toList :: AttributeExprBase a -> [a] Source #

null :: AttributeExprBase a -> Bool Source #

length :: AttributeExprBase a -> Int Source #

elem :: Eq a => a -> AttributeExprBase a -> Bool Source #

maximum :: Ord a => AttributeExprBase a -> a Source #

minimum :: Ord a => AttributeExprBase a -> a Source #

sum :: Num a => AttributeExprBase a -> a Source #

product :: Num a => AttributeExprBase a -> a Source #

Traversable AttributeExprBase Source # 
Instance details

Defined in ProjectM36.Base

Functor AttributeExprBase Source # 
Instance details

Defined in ProjectM36.Base

(KnownSymbol x, Atomable a) => IsLabel x (HaskAtomType a -> AttributeExpr) Source # 
Instance details

Defined in ProjectM36.Shortcuts

Generic (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (AttributeExprBase a) :: Type -> Type Source #

Read a => Read (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: AttributeExprBase a -> () Source #

Eq a => Eq (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Hashable a => Hashable (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes a => HashBytes (Maybe [AttributeExprBase a]) Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds a => ReferencedTransactionIds (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Serialise a => Serialise (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep (AttributeExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

newtype TupleExprBase a Source #

Dynamically create a tuple from attribute names and AtomExprs.

Instances

Instances details
Foldable TupleExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => TupleExprBase m -> m Source #

foldMap :: Monoid m => (a -> m) -> TupleExprBase a -> m Source #

foldMap' :: Monoid m => (a -> m) -> TupleExprBase a -> m Source #

foldr :: (a -> b -> b) -> b -> TupleExprBase a -> b Source #

foldr' :: (a -> b -> b) -> b -> TupleExprBase a -> b Source #

foldl :: (b -> a -> b) -> b -> TupleExprBase a -> b Source #

foldl' :: (b -> a -> b) -> b -> TupleExprBase a -> b Source #

foldr1 :: (a -> a -> a) -> TupleExprBase a -> a Source #

foldl1 :: (a -> a -> a) -> TupleExprBase a -> a Source #

toList :: TupleExprBase a -> [a] Source #

null :: TupleExprBase a -> Bool Source #

length :: TupleExprBase a -> Int Source #

elem :: Eq a => a -> TupleExprBase a -> Bool Source #

maximum :: Ord a => TupleExprBase a -> a Source #

minimum :: Ord a => TupleExprBase a -> a Source #

sum :: Num a => TupleExprBase a -> a Source #

product :: Num a => TupleExprBase a -> a Source #

Traversable TupleExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

traverse :: Applicative f => (a -> f b) -> TupleExprBase a -> f (TupleExprBase b) Source #

sequenceA :: Applicative f => TupleExprBase (f a) -> f (TupleExprBase a) Source #

mapM :: Monad m => (a -> m b) -> TupleExprBase a -> m (TupleExprBase b) Source #

sequence :: Monad m => TupleExprBase (m a) -> m (TupleExprBase a) Source #

Functor TupleExprBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fmap :: (a -> b) -> TupleExprBase a -> TupleExprBase b Source #

(<$) :: a -> TupleExprBase b -> TupleExprBase a Source #

IsList TupleExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

Associated Types

type Item TupleExpr Source #

Hashable TupleExpr Source # 
Instance details

Defined in ProjectM36.Base

ResolveGraphRefTransactionMarker GraphRefTupleExpr Source # 
Instance details

Defined in ProjectM36.RelationalExpression

Generic (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (TupleExprBase a) :: Type -> Type Source #

Read a => Read (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: TupleExprBase a -> () Source #

Eq a => Eq (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds a => ReferencedTransactionIds (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Serialise a => Serialise (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Item TupleExpr Source # 
Instance details

Defined in ProjectM36.Shortcuts

type Rep (TupleExprBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (TupleExprBase a) = D1 ('MetaData "TupleExprBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'True) (C1 ('MetaCons "TupleExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map AttributeName (AtomExprBase a)))))

data TupleExprsBase a Source #

Constructors

TupleExprs a [TupleExprBase a] 

Instances

Instances details
Foldable TupleExprsBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => TupleExprsBase m -> m Source #

foldMap :: Monoid m => (a -> m) -> TupleExprsBase a -> m Source #

foldMap' :: Monoid m => (a -> m) -> TupleExprsBase a -> m Source #

foldr :: (a -> b -> b) -> b -> TupleExprsBase a -> b Source #

foldr' :: (a -> b -> b) -> b -> TupleExprsBase a -> b Source #

foldl :: (b -> a -> b) -> b -> TupleExprsBase a -> b Source #

foldl' :: (b -> a -> b) -> b -> TupleExprsBase a -> b Source #

foldr1 :: (a -> a -> a) -> TupleExprsBase a -> a Source #

foldl1 :: (a -> a -> a) -> TupleExprsBase a -> a Source #

toList :: TupleExprsBase a -> [a] Source #

null :: TupleExprsBase a -> Bool Source #

length :: TupleExprsBase a -> Int Source #

elem :: Eq a => a -> TupleExprsBase a -> Bool Source #

maximum :: Ord a => TupleExprsBase a -> a Source #

minimum :: Ord a => TupleExprsBase a -> a Source #

sum :: Num a => TupleExprsBase a -> a Source #

product :: Num a => TupleExprsBase a -> a Source #

Traversable TupleExprsBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

traverse :: Applicative f => (a -> f b) -> TupleExprsBase a -> f (TupleExprsBase b) Source #

sequenceA :: Applicative f => TupleExprsBase (f a) -> f (TupleExprsBase a) Source #

mapM :: Monad m => (a -> m b) -> TupleExprsBase a -> m (TupleExprsBase b) Source #

sequence :: Monad m => TupleExprsBase (m a) -> m (TupleExprsBase a) Source #

Functor TupleExprsBase Source # 
Instance details

Defined in ProjectM36.Base

Methods

fmap :: (a -> b) -> TupleExprsBase a -> TupleExprsBase b Source #

(<$) :: a -> TupleExprsBase b -> TupleExprsBase a Source #

Hashable TupleExprs Source # 
Instance details

Defined in ProjectM36.Base

ResolveGraphRefTransactionMarker GraphRefTupleExprs Source # 
Instance details

Defined in ProjectM36.RelationalExpression

IsList (TupleExprsBase ()) Source # 
Instance details

Defined in ProjectM36.Shortcuts

Associated Types

type Item (TupleExprsBase ()) Source #

Generic (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (TupleExprsBase a) :: Type -> Type Source #

Read a => Read (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.Base

Show a => Show (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.Base

NFData a => NFData (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: TupleExprsBase a -> () Source #

Eq a => Eq (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.Base

HashBytes a => HashBytes (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

ReferencedTransactionIds a => ReferencedTransactionIds (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.ReferencedTransactionIds

Serialise a => Serialise (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Item TupleExprs Source # 
Instance details

Defined in ProjectM36.Shortcuts

type Rep (TupleExprsBase a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (TupleExprsBase a) = D1 ('MetaData "TupleExprsBase" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "TupleExprs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TupleExprBase a])))

data MergeStrategy Source #

Constructors

UnionMergeStrategy

After a union merge, the merge transaction is a result of union'ing relvars of the same name, introducing all uniquely-named relvars, union of constraints, union of atom functions, notifications, and types (unless the names and definitions collide, e.g. two types of the same name with different definitions)

UnionPreferMergeStrategy HeadName

Similar to a union merge, but, on conflict, prefer the unmerged section (relvar, function, etc.) from the branch named as the argument.

SelectedBranchMergeStrategy HeadName

Similar to the our/theirs merge strategy in git, the merge transaction's context is identical to that of the last transaction in the selected branch.

Instances

Instances details
Generic MergeStrategy Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep MergeStrategy :: Type -> Type Source #

Show MergeStrategy Source # 
Instance details

Defined in ProjectM36.Base

NFData MergeStrategy Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: MergeStrategy -> () Source #

Eq MergeStrategy Source # 
Instance details

Defined in ProjectM36.Base

Serialise MergeStrategy Source # 
Instance details

Defined in ProjectM36.Serialise.Base

type Rep MergeStrategy Source # 
Instance details

Defined in ProjectM36.Base

type Rep MergeStrategy = D1 ('MetaData "MergeStrategy" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "UnionMergeStrategy" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnionPreferMergeStrategy" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HeadName)) :+: C1 ('MetaCons "SelectedBranchMergeStrategy" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HeadName))))

data Function a Source #

Represents stored, user-created or built-in functions which can operates of types such as Atoms or DatabaseContexts.

Instances

Instances details
HashBytes AtomFunction Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes AtomFunctions Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes DatabaseContextFunction Source # 
Instance details

Defined in ProjectM36.HashSecurely

HashBytes DatabaseContextFunctions Source # 
Instance details

Defined in ProjectM36.HashSecurely

Generic (Function a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (Function a) :: Type -> Type Source #

Methods

from :: Function a -> Rep (Function a) x Source #

to :: Rep (Function a) x -> Function a Source #

NFData a => NFData (Function a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: Function a -> () Source #

Eq (Function a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

(==) :: Function a -> Function a -> Bool Source #

(/=) :: Function a -> Function a -> Bool Source #

Hashable (Function a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (Function a) Source # 
Instance details

Defined in ProjectM36.Base

type Rep (Function a) = D1 ('MetaData "Function" "ProjectM36.Base" "project-m36-1.0.1-inplace" 'False) (C1 ('MetaCons "Function" 'PrefixI 'True) (S1 ('MetaSel ('Just "funcName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FunctionName) :*: (S1 ('MetaSel ('Just "funcType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AtomType]) :*: S1 ('MetaSel ('Just "funcBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunctionBody a)))))

data FunctionBody a Source #

Instances

Instances details
Generic (FunctionBody a) Source # 
Instance details

Defined in ProjectM36.Base

Associated Types

type Rep (FunctionBody a) :: Type -> Type Source #

NFData a => NFData (FunctionBody a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

rnf :: FunctionBody a -> () Source #

HashBytes (FunctionBody a) Source # 
Instance details

Defined in ProjectM36.HashSecurely

Methods

hashBytes :: FunctionBody a -> Ctx -> Ctx Source #

type Rep (FunctionBody a) Source # 
Instance details

Defined in ProjectM36.Base

data RelationalExprBaseF (a :: Type) r Source #

Instances

Instances details
Foldable (RelationalExprBaseF a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

fold :: Monoid m => RelationalExprBaseF a m -> m Source #

foldMap :: Monoid m => (a0 -> m) -> RelationalExprBaseF a a0 -> m Source #

foldMap' :: Monoid m => (a0 -> m) -> RelationalExprBaseF a a0 -> m Source #

foldr :: (a0 -> b -> b) -> b -> RelationalExprBaseF a a0 -> b Source #

foldr' :: (a0 -> b -> b) -> b -> RelationalExprBaseF a a0 -> b Source #

foldl :: (b -> a0 -> b) -> b -> RelationalExprBaseF a a0 -> b Source #

foldl' :: (b -> a0 -> b) -> b -> RelationalExprBaseF a a0 -> b Source #

foldr1 :: (a0 -> a0 -> a0) -> RelationalExprBaseF a a0 -> a0 Source #

foldl1 :: (a0 -> a0 -> a0) -> RelationalExprBaseF a a0 -> a0 Source #

toList :: RelationalExprBaseF a a0 -> [a0] Source #

null :: RelationalExprBaseF a a0 -> Bool Source #

length :: RelationalExprBaseF a a0 -> Int Source #

elem :: Eq a0 => a0 -> RelationalExprBaseF a a0 -> Bool Source #

maximum :: Ord a0 => RelationalExprBaseF a a0 -> a0 Source #

minimum :: Ord a0 => RelationalExprBaseF a a0 -> a0 Source #

sum :: Num a0 => RelationalExprBaseF a a0 -> a0 Source #

product :: Num a0 => RelationalExprBaseF a a0 -> a0 Source #

Traversable (RelationalExprBaseF a) Source # 
Instance details

Defined in ProjectM36.Base

Methods

traverse :: Applicative f => (a0 -> f b) -> RelationalExprBaseF a a0 -> f (RelationalExprBaseF a b) Source #

sequenceA :: Applicative f => RelationalExprBaseF a (f a0) -> f (RelationalExprBaseF a a0) Source #

mapM :: Monad m => (a0 -> m b) -> RelationalExprBaseF a a0 -> m (RelationalExprBaseF a b) Source #

sequence :: Monad m => RelationalExprBaseF a (m a0) -> m (RelationalExprBaseF a a0) Source #

Functor (RelationalExprBaseF a) Source # 
Instance details

Defined in ProjectM36.Base

Orphan instances

Hashable Day Source # 
Instance details

Methods

hashWithSalt :: Int -> Day -> Int Source #

hash :: Day -> Int Source #

Hashable DiffTime Source # 
Instance details

Hashable UTCTime Source # 
Instance details