units-defs-2.0.1.1: 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

pattern Metre :: Metre Source #

pattern Gramme :: Gramme Source #

data Hour Source #

Derived SI unit

Constructors

Hour 

data Liter Source #

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

Constructors

Liter 

pattern Litre :: Litre Source #

data Ton Source #

Derived SI unit

Constructors

Ton 

type Tonne = Ton Source #

pattern Tonne :: Tonne Source #

siUnits :: [Name] Source #

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