Copyright | (C) 2013 Richard Eisenberg |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Richard Eisenberg (eir@cis.upenn.edu) |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
This module exports unit definitions according to the SI system of units. The definitions were taken from here: http://www.bipm.org/en/si/.
Some additional units were added based on this link: "Non-SI units accepted for use with the SI, and units based on fundamental constants".
There is one deviation from the definitions at that site: To work better
with prefixes, the unit of mass is Gram
.
This module exports both American spellings and British spellings of units, using pattern synonyms to get the British spellings of data constructors.
- data Meter = Meter
- type Metre = Meter
- pattern Metre :: Meter
- data Gram = Gram
- type Gramme = Gram
- pattern Gramme :: Gram
- data Second = Second
- data Minute = Minute
- data Hour = Hour
- data Ampere = Ampere
- data Kelvin = Kelvin
- data Mole = Mole
- data Candela = Candela
- data Hertz = Hertz
- data Liter = Liter
- type Litre = Liter
- pattern Litre :: Liter
- data Newton = Newton
- data Pascal = Pascal
- data Joule = Joule
- data Watt = Watt
- data Coulomb = Coulomb
- data Volt = Volt
- data Farad = Farad
- data Ohm = Ohm
- data Siemens = Siemens
- data Weber = Weber
- data Tesla = Tesla
- data Henry = Henry
- data Lumen = Lumen
- data Lux = Lux
- data Becquerel = Becquerel
- data Gray = Gray
- data Sievert = Sievert
- data Katal = Katal
- data Hectare = Hectare
- data Ton = Ton
- type Tonne = Ton
- pattern Tonne :: Ton
- siUnits :: [Name]
Documentation
Derived SI unit
Derived SI unit
This is not in the SI standard, but is used widely.
Derived SI unit
Derived SI unit
A list of the names of all unit types. Useful with
makeQuasiQuoter
.