Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines types and functions for Data Definitions.
Synopsis
- newtype Scope = Scp {}
- data ScopeType
- data DDPkt = DDPkt {}
- pktST :: Lens' DDPkt ScopeType
- pktSS :: Lens' DDPkt [Sentence]
- pktSN :: Lens' DDPkt ShortName
- pktS :: Lens' DDPkt String
- pktMD :: Lens' DDPkt (Maybe Derivation)
- pktDR :: Lens' DDPkt [DecRef]
- data DataDefinition where
- DDE :: SimpleQDef -> DDPkt -> DataDefinition
- DDME :: ModelQDef -> DDPkt -> DataDefinition
- ddQD :: Lens' SimpleQDef a -> Lens' ModelQDef a -> Lens' DataDefinition a
- ddQDGetter :: (Profunctor p, Contravariant f) => Getter SimpleQDef a -> Getter ModelQDef a -> Optic' p f DataDefinition a
- ddPkt :: Lens' DDPkt a -> Lens' DataDefinition a
- ddE :: SimpleQDef -> [DecRef] -> Maybe Derivation -> String -> [Sentence] -> DataDefinition
- ddENoRefs :: SimpleQDef -> Maybe Derivation -> String -> [Sentence] -> DataDefinition
- ddME :: ModelQDef -> [DecRef] -> Maybe Derivation -> String -> [Sentence] -> DataDefinition
- ddMENoRefs :: ModelQDef -> Maybe Derivation -> String -> [Sentence] -> DataDefinition
- qdFromDD :: DataDefinition -> Either SimpleQDef ModelQDef
- qdEFromDD :: DataDefinition -> Maybe SimpleQDef
Types
Determines the scope of data.
data DataDefinition where Source #
A data definition is a QDefinition
that may have additional notes:
the scope, any references (as DecRef
s), maybe a derivation, a label (ShortName
), a reference address, and other notes (Sentence
s).
DDE :: SimpleQDef -> DDPkt -> DataDefinition | |
DDME :: ModelQDef -> DDPkt -> DataDefinition |
Instances
ddQD :: Lens' SimpleQDef a -> Lens' ModelQDef a -> Lens' DataDefinition a Source #
ddQDGetter :: (Profunctor p, Contravariant f) => Getter SimpleQDef a -> Getter ModelQDef a -> Optic' p f DataDefinition a Source #
ddPkt :: Lens' DDPkt a -> Lens' DataDefinition a Source #
Constructors
ddE :: SimpleQDef -> [DecRef] -> Maybe Derivation -> String -> [Sentence] -> DataDefinition Source #
Smart constructor for data definitions.
ddENoRefs :: SimpleQDef -> Maybe Derivation -> String -> [Sentence] -> DataDefinition Source #
Smart constructor for data definitions with no references.
ddME :: ModelQDef -> [DecRef] -> Maybe Derivation -> String -> [Sentence] -> DataDefinition Source #
Smart constructor for data definitions.
ddMENoRefs :: ModelQDef -> Maybe Derivation -> String -> [Sentence] -> DataDefinition Source #
Smart constructor for data definitions with no references.
qdFromDD :: DataDefinition -> Either SimpleQDef ModelQDef Source #
Extracts the 'QDefinition e' from a DataDefinition
.