Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines chunks to add units to a quantity. Similar to UnitaryChunk
.
Synopsis
- data UnitalChunk = UC {}
- uc :: (Concept c, IsUnit u) => c -> Symbol -> Space -> u -> UnitalChunk
- uc' :: IsUnit u => String -> NP -> Sentence -> Symbol -> Space -> u -> UnitalChunk
- ucStaged :: (Concept c, IsUnit u) => c -> (Stage -> Symbol) -> Space -> u -> UnitalChunk
- ucStaged' :: IsUnit u => String -> NP -> Sentence -> (Stage -> Symbol) -> Space -> u -> UnitalChunk
- ucuc :: (Quantity c, Concept c, MayHaveUnit c) => c -> UnitDefn -> UnitalChunk
- ucw :: (Unitary c, Concept c, MayHaveUnit c) => c -> UnitalChunk
Chunk Type
data UnitalChunk Source #
Similar to a DefinedQuantityDict
, UnitalChunks are concepts
with quantities that must have a unit definition.
Contains DefinedQuantityDict
s and a UnitDefn
.
Ex. A pendulum arm is a tangible object with a symbol (l) and units (cm, m, etc.).
Instances
Constructors
uc :: (Concept c, IsUnit u) => c -> Symbol -> Space -> u -> UnitalChunk Source #
Used to create a UnitalChunk
from a Concept
, Symbol
, and Unit
.
uc' :: IsUnit u => String -> NP -> Sentence -> Symbol -> Space -> u -> UnitalChunk Source #
Similar to uc
, except it builds the Concept
portion of the UnitalChunk
from a given UID
, term, and definition (as a Sentence
) which are its first three arguments.
ucStaged' :: IsUnit u => String -> NP -> Sentence -> (Stage -> Symbol) -> Space -> u -> UnitalChunk Source #
ucuc :: (Quantity c, Concept c, MayHaveUnit c) => c -> UnitDefn -> UnitalChunk Source #
Attach units to a chunk that has a symbol and definition.
ucw :: (Unitary c, Concept c, MayHaveUnit c) => c -> UnitalChunk Source #
Constructs a UnitalChunk from a Concept
with Units
.