units-defs-2.0: Definitions for use with the units package

Copyright(C) 2013 Richard Eisenberg
LicenseBSD-style (see LICENSE)
MaintainerRichard Eisenberg (eir@cis.upenn.edu)
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Documentation

data Meter Source

Constructors

Meter 

pattern Metre :: Meter Source

data Gram Source

Constructors

Gram 

pattern Gramme :: Gram Source

data Minute Source

Derived SI unit

Constructors

Minute 

data Hour Source

Derived SI unit

Constructors

Hour 

data Mole Source

Constructors

Mole 

data Liter Source

This is not in the SI standard, but is used widely.

Constructors

Liter 

pattern Litre :: Liter Source

data Watt Source

Constructors

Watt 

data Volt Source

Constructors

Volt 

data Ohm Source

Constructors

Ohm 

data Lux Source

Constructors

Lux 

data Ton Source

Derived SI unit

Constructors

Ton 

pattern Tonne :: Ton Source

siUnits :: [Name] Source

A list of the names of all unit types. Useful with makeQuasiQuoter.