Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Drasil.Chunk.Unital
Contents
Description
Defines chunks to add units to a quantity. Similar to UnitaryChunk
.
Synopsis
- data UnitalChunk = UC {}
- makeUCWDS :: IsUnit u => String -> NP -> Sentence -> Symbol -> u -> UnitalChunk
- uc :: (Concept c, IsUnit u) => c -> Symbol -> u -> UnitalChunk
- uc' :: IsUnit u => String -> NP -> String -> Symbol -> u -> UnitalChunk
- ucStaged :: IsUnit u => String -> NP -> String -> (Stage -> Symbol) -> u -> UnitalChunk
- ucs :: IsUnit u => String -> NP -> String -> Symbol -> Space -> u -> UnitalChunk
- ucs' :: (Concept c, IsUnit u) => c -> Symbol -> Space -> u -> UnitalChunk
- ucsWS :: IsUnit u => String -> NP -> Sentence -> 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.).
Constructors
UC | |
Fields |
Instances
Constructors
makeUCWDS :: IsUnit u => String -> NP -> Sentence -> Symbol -> u -> UnitalChunk Source #
Creates a UnitalChunk
in the same way as uc'
, but with a Sentence
for
the definition instead of a String
.
uc :: (Concept c, IsUnit u) => c -> Symbol -> u -> UnitalChunk Source #
Used to create a UnitalChunk
from a Concept
, Symbol
, and Unit
.
Assumes the Space
is Real.
uc' :: IsUnit u => String -> NP -> String -> Symbol -> u -> UnitalChunk Source #
Similar to uc
, except it builds the Concept
portion of the UnitalChunk
from a given UID
, term, and definition (which are the first three arguments).
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
.