Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines types and functions for General Definitions.
Type
A general definition is a ModelKind
that may have units, a derivation,
references (as DecRef
s), a shortname, a reference address, and notes.
Instances
Constructors
gd :: IsUnit u => ModelKind ModelExpr -> Maybe u -> Maybe Derivation -> [DecRef] -> String -> [Sentence] -> GenDefn Source #
Smart constructor for general definitions.
gdNoRefs :: IsUnit u => ModelKind ModelExpr -> Maybe u -> Maybe Derivation -> String -> [Sentence] -> GenDefn Source #
Smart constructor for general definitions with no references.
Functions
getEqModQdsFromGd :: [GenDefn] -> [ModelQDef] Source #
Grab all related QDefinitions
from a list of general definitions.