units-defs-2.2.1: Definitions for use with the units package
Copyright(C) 2013 Richard Eisenberg
LicenseBSD-style (see LICENSE)
MaintainerRichard Eisenberg (rae@cs.brynmawr.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 

Instances

Instances details
Show Meter Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Meter -> ShowS #

show :: Meter -> String #

showList :: [Meter] -> ShowS #

Unit Meter Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Meter #

type DimOfUnit Meter #

type UnitFactorsOf Meter :: [Factor Type] #

type UnitFactorsOf Meter Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Meter Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Meter Source # 
Instance details

Defined in Data.Units.SI

pattern Metre :: Meter Source #

data Gram Source #

Constructors

Gram 

Instances

Instances details
Show Gram Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Gram -> ShowS #

show :: Gram -> String #

showList :: [Gram] -> ShowS #

Unit Gram Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Gram #

type DimOfUnit Gram #

type UnitFactorsOf Gram :: [Factor Type] #

type UnitFactorsOf Gram Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Gram Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Gram Source # 
Instance details

Defined in Data.Units.SI

pattern Gramme :: Gramme Source #

data Second Source #

Constructors

Second 

Instances

Instances details
Show Second Source # 
Instance details

Defined in Data.Units.SI

Unit Second Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Second #

type DimOfUnit Second #

type UnitFactorsOf Second :: [Factor Type] #

type UnitFactorsOf Second Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Second Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Second Source # 
Instance details

Defined in Data.Units.SI

data Minute Source #

Derived SI unit

Constructors

Minute 

Instances

Instances details
Show Minute Source # 
Instance details

Defined in Data.Units.SI

Unit Minute Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Minute #

type DimOfUnit Minute #

type UnitFactorsOf Minute :: [Factor Type] #

type UnitFactorsOf Minute Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Minute Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Minute Source # 
Instance details

Defined in Data.Units.SI

data Hour Source #

Derived SI unit

Constructors

Hour 

Instances

Instances details
Show Hour Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Hour -> ShowS #

show :: Hour -> String #

showList :: [Hour] -> ShowS #

Unit Hour Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Hour #

type DimOfUnit Hour #

type UnitFactorsOf Hour :: [Factor Type] #

type UnitFactorsOf Hour Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Hour Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Hour Source # 
Instance details

Defined in Data.Units.SI

data Ampere Source #

Constructors

Ampere 

Instances

Instances details
Show Ampere Source # 
Instance details

Defined in Data.Units.SI

Unit Ampere Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Ampere #

type DimOfUnit Ampere #

type UnitFactorsOf Ampere :: [Factor Type] #

type UnitFactorsOf Ampere Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Ampere Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Ampere Source # 
Instance details

Defined in Data.Units.SI

data Kelvin Source #

Constructors

Kelvin 

Instances

Instances details
Show Kelvin Source # 
Instance details

Defined in Data.Units.SI

Unit Kelvin Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Kelvin #

type DimOfUnit Kelvin #

type UnitFactorsOf Kelvin :: [Factor Type] #

type UnitFactorsOf Kelvin Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Kelvin Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Kelvin Source # 
Instance details

Defined in Data.Units.SI

data Mole Source #

Constructors

Mole 

Instances

Instances details
Show Mole Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Mole -> ShowS #

show :: Mole -> String #

showList :: [Mole] -> ShowS #

Unit Mole Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Mole #

type DimOfUnit Mole #

type UnitFactorsOf Mole :: [Factor Type] #

type UnitFactorsOf Mole Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Mole Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Mole Source # 
Instance details

Defined in Data.Units.SI

data Candela Source #

Constructors

Candela 

Instances

Instances details
Show Candela Source # 
Instance details

Defined in Data.Units.SI

Unit Candela Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Candela #

type DimOfUnit Candela #

type UnitFactorsOf Candela :: [Factor Type] #

type UnitFactorsOf Candela Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Candela Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Candela Source # 
Instance details

Defined in Data.Units.SI

data Radian Source #

The two angular dimensions that must be fundamental dimensions.

Constructors

Radian 

Instances

Instances details
Show Radian Source # 
Instance details

Defined in Data.Units.SI

Unit Radian Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Radian #

type DimOfUnit Radian #

type UnitFactorsOf Radian :: [Factor Type] #

type UnitFactorsOf Radian Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Radian Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Radian Source # 
Instance details

Defined in Data.Units.SI

data Steradian Source #

Constructors

Steradian 

Instances

Instances details
Show Steradian Source # 
Instance details

Defined in Data.Units.SI

Unit Steradian Source # 
Instance details

Defined in Data.Units.SI

type UnitFactorsOf Steradian Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Steradian Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Steradian Source # 
Instance details

Defined in Data.Units.SI

data Hertz Source #

Constructors

Hertz 

Instances

Instances details
Show Hertz Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Hertz -> ShowS #

show :: Hertz -> String #

showList :: [Hertz] -> ShowS #

Unit Hertz Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Hertz #

type DimOfUnit Hertz #

type UnitFactorsOf Hertz :: [Factor Type] #

type UnitFactorsOf Hertz Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Hertz Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Hertz Source # 
Instance details

Defined in Data.Units.SI

data Liter Source #

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

Constructors

Liter 

Instances

Instances details
Show Liter Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Liter -> ShowS #

show :: Liter -> String #

showList :: [Liter] -> ShowS #

Unit Liter Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Liter #

type DimOfUnit Liter #

type UnitFactorsOf Liter :: [Factor Type] #

type UnitFactorsOf Liter Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Liter Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Liter Source # 
Instance details

Defined in Data.Units.SI

pattern Litre :: Litre Source #

data Newton Source #

Constructors

Newton 

Instances

Instances details
Show Newton Source # 
Instance details

Defined in Data.Units.SI

Unit Newton Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Newton #

type DimOfUnit Newton #

type UnitFactorsOf Newton :: [Factor Type] #

type UnitFactorsOf Newton Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Newton Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Newton Source # 
Instance details

Defined in Data.Units.SI

data Pascal Source #

Constructors

Pascal 

Instances

Instances details
Show Pascal Source # 
Instance details

Defined in Data.Units.SI

Unit Pascal Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Pascal #

type DimOfUnit Pascal #

type UnitFactorsOf Pascal :: [Factor Type] #

type UnitFactorsOf Pascal Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Pascal Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Pascal Source # 
Instance details

Defined in Data.Units.SI

data Joule Source #

Constructors

Joule 

Instances

Instances details
Show Joule Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Joule -> ShowS #

show :: Joule -> String #

showList :: [Joule] -> ShowS #

Unit Joule Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Joule #

type DimOfUnit Joule #

type UnitFactorsOf Joule :: [Factor Type] #

type UnitFactorsOf Joule Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Joule Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Joule Source # 
Instance details

Defined in Data.Units.SI

data Watt Source #

Constructors

Watt 

Instances

Instances details
Show Watt Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Watt -> ShowS #

show :: Watt -> String #

showList :: [Watt] -> ShowS #

Unit Watt Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Watt #

type DimOfUnit Watt #

type UnitFactorsOf Watt :: [Factor Type] #

type UnitFactorsOf Watt Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Watt Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Watt Source # 
Instance details

Defined in Data.Units.SI

data Coulomb Source #

Constructors

Coulomb 

Instances

Instances details
Show Coulomb Source # 
Instance details

Defined in Data.Units.SI

Unit Coulomb Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Coulomb #

type DimOfUnit Coulomb #

type UnitFactorsOf Coulomb :: [Factor Type] #

type UnitFactorsOf Coulomb Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Coulomb Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Coulomb Source # 
Instance details

Defined in Data.Units.SI

data Volt Source #

Constructors

Volt 

Instances

Instances details
Show Volt Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Volt -> ShowS #

show :: Volt -> String #

showList :: [Volt] -> ShowS #

Unit Volt Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Volt #

type DimOfUnit Volt #

type UnitFactorsOf Volt :: [Factor Type] #

type UnitFactorsOf Volt Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Volt Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Volt Source # 
Instance details

Defined in Data.Units.SI

data Farad Source #

Constructors

Farad 

Instances

Instances details
Show Farad Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Farad -> ShowS #

show :: Farad -> String #

showList :: [Farad] -> ShowS #

Unit Farad Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Farad #

type DimOfUnit Farad #

type UnitFactorsOf Farad :: [Factor Type] #

type UnitFactorsOf Farad Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Farad Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Farad Source # 
Instance details

Defined in Data.Units.SI

data Ohm Source #

Constructors

Ohm 

Instances

Instances details
Show Ohm Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Ohm -> ShowS #

show :: Ohm -> String #

showList :: [Ohm] -> ShowS #

Unit Ohm Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Ohm #

type DimOfUnit Ohm #

type UnitFactorsOf Ohm :: [Factor Type] #

type UnitFactorsOf Ohm Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Ohm Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Ohm Source # 
Instance details

Defined in Data.Units.SI

data Siemens Source #

Constructors

Siemens 

Instances

Instances details
Show Siemens Source # 
Instance details

Defined in Data.Units.SI

Unit Siemens Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Siemens #

type DimOfUnit Siemens #

type UnitFactorsOf Siemens :: [Factor Type] #

type UnitFactorsOf Siemens Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Siemens Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Siemens Source # 
Instance details

Defined in Data.Units.SI

data Weber Source #

Constructors

Weber 

Instances

Instances details
Show Weber Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Weber -> ShowS #

show :: Weber -> String #

showList :: [Weber] -> ShowS #

Unit Weber Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Weber #

type DimOfUnit Weber #

type UnitFactorsOf Weber :: [Factor Type] #

type UnitFactorsOf Weber Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Weber Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Weber Source # 
Instance details

Defined in Data.Units.SI

data Tesla Source #

Constructors

Tesla 

Instances

Instances details
Show Tesla Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Tesla -> ShowS #

show :: Tesla -> String #

showList :: [Tesla] -> ShowS #

Unit Tesla Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Tesla #

type DimOfUnit Tesla #

type UnitFactorsOf Tesla :: [Factor Type] #

type UnitFactorsOf Tesla Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Tesla Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Tesla Source # 
Instance details

Defined in Data.Units.SI

data Henry Source #

Constructors

Henry 

Instances

Instances details
Show Henry Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Henry -> ShowS #

show :: Henry -> String #

showList :: [Henry] -> ShowS #

Unit Henry Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Henry #

type DimOfUnit Henry #

type UnitFactorsOf Henry :: [Factor Type] #

type UnitFactorsOf Henry Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Henry Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Henry Source # 
Instance details

Defined in Data.Units.SI

data Lumen Source #

Constructors

Lumen 

Instances

Instances details
Show Lumen Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Lumen -> ShowS #

show :: Lumen -> String #

showList :: [Lumen] -> ShowS #

Unit Lumen Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Lumen #

type DimOfUnit Lumen #

type UnitFactorsOf Lumen :: [Factor Type] #

type UnitFactorsOf Lumen Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Lumen Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Lumen Source # 
Instance details

Defined in Data.Units.SI

data Lux Source #

Constructors

Lux 

Instances

Instances details
Show Lux Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Lux -> ShowS #

show :: Lux -> String #

showList :: [Lux] -> ShowS #

Unit Lux Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Lux #

type DimOfUnit Lux #

type UnitFactorsOf Lux :: [Factor Type] #

type UnitFactorsOf Lux Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Lux Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Lux Source # 
Instance details

Defined in Data.Units.SI

data Becquerel Source #

Constructors

Becquerel 

Instances

Instances details
Show Becquerel Source # 
Instance details

Defined in Data.Units.SI

Unit Becquerel Source # 
Instance details

Defined in Data.Units.SI

type UnitFactorsOf Becquerel Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Becquerel Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Becquerel Source # 
Instance details

Defined in Data.Units.SI

data Gray Source #

Constructors

Gray 

Instances

Instances details
Show Gray Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Gray -> ShowS #

show :: Gray -> String #

showList :: [Gray] -> ShowS #

Unit Gray Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Gray #

type DimOfUnit Gray #

type UnitFactorsOf Gray :: [Factor Type] #

type UnitFactorsOf Gray Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Gray Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Gray Source # 
Instance details

Defined in Data.Units.SI

data Sievert Source #

Constructors

Sievert 

Instances

Instances details
Show Sievert Source # 
Instance details

Defined in Data.Units.SI

Unit Sievert Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Sievert #

type DimOfUnit Sievert #

type UnitFactorsOf Sievert :: [Factor Type] #

type UnitFactorsOf Sievert Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Sievert Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Sievert Source # 
Instance details

Defined in Data.Units.SI

data Katal Source #

Constructors

Katal 

Instances

Instances details
Show Katal Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Katal -> ShowS #

show :: Katal -> String #

showList :: [Katal] -> ShowS #

Unit Katal Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Katal #

type DimOfUnit Katal #

type UnitFactorsOf Katal :: [Factor Type] #

type UnitFactorsOf Katal Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Katal Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Katal Source # 
Instance details

Defined in Data.Units.SI

data Degree Source #

Constructors

Degree 

Instances

Instances details
Show Degree Source # 
Instance details

Defined in Data.Units.SI

Unit Degree Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Degree #

type DimOfUnit Degree #

type UnitFactorsOf Degree :: [Factor Type] #

type UnitFactorsOf Degree Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Degree Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Degree Source # 
Instance details

Defined in Data.Units.SI

data Arcminute Source #

Constructors

Arcminute 

Instances

Instances details
Show Arcminute Source # 
Instance details

Defined in Data.Units.SI

Unit Arcminute Source # 
Instance details

Defined in Data.Units.SI

type UnitFactorsOf Arcminute Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Arcminute Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Arcminute Source # 
Instance details

Defined in Data.Units.SI

data Arcsecond Source #

Constructors

Arcsecond 

Instances

Instances details
Show Arcsecond Source # 
Instance details

Defined in Data.Units.SI

Unit Arcsecond Source # 
Instance details

Defined in Data.Units.SI

type UnitFactorsOf Arcsecond Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Arcsecond Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Arcsecond Source # 
Instance details

Defined in Data.Units.SI

data Hectare Source #

Derived SI unit

Constructors

Hectare 

Instances

Instances details
Show Hectare Source # 
Instance details

Defined in Data.Units.SI

Unit Hectare Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Hectare #

type DimOfUnit Hectare #

type UnitFactorsOf Hectare :: [Factor Type] #

type UnitFactorsOf Hectare Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Hectare Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Hectare Source # 
Instance details

Defined in Data.Units.SI

data Ton Source #

Derived SI unit

Constructors

Ton 

Instances

Instances details
Show Ton Source # 
Instance details

Defined in Data.Units.SI

Methods

showsPrec :: Int -> Ton -> ShowS #

show :: Ton -> String #

showList :: [Ton] -> ShowS #

Unit Ton Source # 
Instance details

Defined in Data.Units.SI

Associated Types

type BaseUnit Ton #

type DimOfUnit Ton #

type UnitFactorsOf Ton :: [Factor Type] #

type UnitFactorsOf Ton Source # 
Instance details

Defined in Data.Units.SI

type DimOfUnit Ton Source # 
Instance details

Defined in Data.Units.SI

type BaseUnit Ton Source # 
Instance details

Defined in Data.Units.SI

type Tonne = Ton Source #

pattern Tonne :: Tonne Source #

siUnits :: [Name] Source #

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