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 |
Data.Units.SI
Description
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
Constructors
Meter |
Constructors
Gram |
Constructors
Second |
Derived SI unit
Constructors
Minute |
Derived SI unit
Constructors
Hour |
Constructors
Ampere |
Constructors
Kelvin |
Constructors
Mole |
Constructors
Candela |
Constructors
Hertz |
This is not in the SI standard, but is used widely.
Constructors
Liter |
Constructors
Newton |
Constructors
Pascal |
Constructors
Joule |
Constructors
Watt |
Constructors
Coulomb |
Constructors
Volt |
Constructors
Farad |
Constructors
Ohm |
Constructors
Siemens |
Constructors
Weber |
Constructors
Tesla |
Constructors
Henry |
Constructors
Lumen |
Constructors
Lux |
Constructors
Becquerel |
Instances
Constructors
Gray |
Constructors
Sievert |
Instances
Constructors
Katal |
Derived SI unit
Constructors
Hectare |
Derived SI unit
Constructors
Ton |
A list of the names of all unit types. Useful with
makeQuasiQuoter
.