Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language for defining and manipulating units.
Types
Language of unit equations, to define a unit relative to another.
data UnitSymbol Source #
When we define units, they come in three flavours: SI (base) units, derived SI units (aka synonyms), and defined units. The type below captures that knowledge.
Functions
compUSymb :: USymb -> USymb -> Ordering Source #
Hand-rolled version of compare. Should assume USymb
is normalized, so
that some redundant EQ cases can be removed.
getUSymb :: UnitSymbol -> USymb Source #
Generates a default unit symbol.