Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports some example definitions of base and derived units, for demonstration purposes. In the future, this is likely to change or be moved to a separate package.
Documentation
type family MkUnit (s :: Symbol) :: Unit Source #
This type family is used for translating unit names (as
type-level strings) into units. It will be Base
for base units
or expand the definition for derived units.
The instances displayed by Haddock are available only if Data.UnitsOfMeasure.Defs is imported.
type MkUnit "A" Source # | |
type MkUnit "C" Source # | |
type MkUnit "F" Source # | |
type MkUnit "Hz" Source # | |
type MkUnit "J" Source # | |
type MkUnit "K" Source # | |
type MkUnit "N" Source # | |
type MkUnit "Pa" Source # | |
type MkUnit "V" Source # | |
type MkUnit "W" Source # | |
type MkUnit "au" Source # | |
type MkUnit "cd" Source # | |
type MkUnit "d" Source # | |
type MkUnit "ft" Source # | |
type MkUnit "g" Source # | |
type MkUnit "h" Source # | |
type MkUnit "ha" Source # | |
type MkUnit "in" Source # | |
type MkUnit "kg" Source # | |
type MkUnit "km" Source # | |
type MkUnit "l" Source # | |
type MkUnit "m" Source # | |
type MkUnit "mi" Source # | |
type MkUnit "min" Source # | |
type MkUnit "mol" Source # | |
type MkUnit "mph" Source # | |
type MkUnit "ohm" Source # | |
type MkUnit "rad" Source # | |
type MkUnit "s" Source # | |
type MkUnit "sr" Source # | |
type MkUnit "t" Source # | |
Orphan instances
HasCanonicalBaseUnit "A" Source # | |
HasCanonicalBaseUnit "K" Source # | |
HasCanonicalBaseUnit "au" Source # | |
HasCanonicalBaseUnit "cd" Source # | |
HasCanonicalBaseUnit "d" Source # | |
HasCanonicalBaseUnit "ft" Source # | |
HasCanonicalBaseUnit "g" Source # | |
HasCanonicalBaseUnit "h" Source # | |
HasCanonicalBaseUnit "ha" Source # | |
HasCanonicalBaseUnit "in" Source # | |
HasCanonicalBaseUnit "kg" Source # | |
HasCanonicalBaseUnit "km" Source # | |
HasCanonicalBaseUnit "l" Source # | |
HasCanonicalBaseUnit "m" Source # | |
HasCanonicalBaseUnit "mi" Source # | |
HasCanonicalBaseUnit "min" Source # | |
HasCanonicalBaseUnit "mol" Source # | |
HasCanonicalBaseUnit "rad" Source # | |
HasCanonicalBaseUnit "s" Source # | |
HasCanonicalBaseUnit "sr" Source # | |
HasCanonicalBaseUnit "t" Source # | |