Copyright | (C) 2014 Richard Eisenberg |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Richard Eisenberg (rae@cs.brynmawr.edu) |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
This module defines units used in the centimeter/gram/second system of measurement.
Included are all mechanical units mentioned here: http://en.wikipedia.org/wiki/Centimetre%E2%80%93gram%E2%80%93second_system_of_units
Some electromagnetic units are not included, because these do not have
reliable conversions to/from the SI units, on which the units-defs
edifice is based.
Synopsis
- data Centi = Centi
- centi :: unit -> Centi :@ unit
- data Meter = Meter
- pattern Metre :: Meter
- data Gram = Gram
- data Second = Second
- type Centimetre = Centimeter
- type Centimeter = Centi :@ Meter
- pattern Centimetre :: Centimetre
- pattern Centimeter :: Centimeter
- data Gal = Gal
- data Dyne = Dyne
- data Erg = Erg
- data Barye = Barye
- data Poise = Poise
- data Stokes = Stokes
- data Kayser = Kayser
- data Maxwell = Maxwell
- data Gauss = Gauss
Documentation
10^-2
Instances
Show Meter Source # | |
Unit Meter Source # | |
Defined in Data.Units.SI conversionRatio :: Meter -> Rational # canonicalConvRatio :: Meter -> Rational | |
type UnitFactorsOf Meter Source # | |
Defined in Data.Units.SI | |
type DimOfUnit Meter Source # | |
Defined in Data.Units.SI | |
type BaseUnit Meter Source # | |
Defined in Data.Units.SI |
Instances
Show Gram Source # | |
Unit Gram Source # | |
Defined in Data.Units.SI conversionRatio :: Gram -> Rational # canonicalConvRatio :: Gram -> Rational | |
type UnitFactorsOf Gram Source # | |
Defined in Data.Units.SI | |
type DimOfUnit Gram Source # | |
Defined in Data.Units.SI | |
type BaseUnit Gram Source # | |
Defined in Data.Units.SI |
Instances
Show Second Source # | |
Unit Second Source # | |
Defined in Data.Units.SI conversionRatio :: Second -> Rational # canonicalConvRatio :: Second -> Rational | |
type UnitFactorsOf Second Source # | |
Defined in Data.Units.SI type UnitFactorsOf Second = If (IsCanonical Second) '['F Second One] (UnitFactorsOf (BaseUnit Second)) | |
type DimOfUnit Second Source # | |
Defined in Data.Units.SI | |
type BaseUnit Second Source # | |
Defined in Data.Units.SI |
type Centimetre = Centimeter Source #
pattern Centimetre :: Centimetre Source #
pattern Centimeter :: Centimeter Source #
Instances
Show Gal Source # | |
Unit Gal Source # | |
Defined in Data.Units.CGS conversionRatio :: Gal -> Rational # canonicalConvRatio :: Gal -> Rational | |
type UnitFactorsOf Gal Source # | |
Defined in Data.Units.CGS | |
type DimOfUnit Gal Source # | |
type BaseUnit Gal Source # | |
Defined in Data.Units.CGS |
Instances
Show Dyne Source # | |
Unit Dyne Source # | |
Defined in Data.Units.CGS conversionRatio :: Dyne -> Rational # canonicalConvRatio :: Dyne -> Rational | |
type UnitFactorsOf Dyne Source # | |
Defined in Data.Units.CGS | |
type DimOfUnit Dyne Source # | |
type BaseUnit Dyne Source # | |
Defined in Data.Units.CGS |
Instances
Show Barye Source # | |
Unit Barye Source # | |
Defined in Data.Units.CGS conversionRatio :: Barye -> Rational # canonicalConvRatio :: Barye -> Rational | |
type UnitFactorsOf Barye Source # | |
Defined in Data.Units.CGS | |
type DimOfUnit Barye Source # | |
type BaseUnit Barye Source # | |
Defined in Data.Units.CGS |
Instances
Show Poise Source # | |
Unit Poise Source # | |
Defined in Data.Units.CGS conversionRatio :: Poise -> Rational # canonicalConvRatio :: Poise -> Rational | |
type UnitFactorsOf Poise Source # | |
Defined in Data.Units.CGS | |
type DimOfUnit Poise Source # | |
type BaseUnit Poise Source # | |
Defined in Data.Units.CGS |
Instances
Show Stokes Source # | |
Unit Stokes Source # | |
Defined in Data.Units.CGS conversionRatio :: Stokes -> Rational # canonicalConvRatio :: Stokes -> Rational | |
type UnitFactorsOf Stokes Source # | |
Defined in Data.Units.CGS type UnitFactorsOf Stokes = If (IsCanonical Stokes) '['F Stokes One] (UnitFactorsOf (BaseUnit Stokes)) | |
type DimOfUnit Stokes Source # | |
type BaseUnit Stokes Source # | |
Defined in Data.Units.CGS |
Instances
Unit Kayser Source # | |
Defined in Data.Units.CGS conversionRatio :: Kayser -> Rational # canonicalConvRatio :: Kayser -> Rational | |
type UnitFactorsOf Kayser Source # | |
Defined in Data.Units.CGS type UnitFactorsOf Kayser = If (IsCanonical Kayser) '['F Kayser One] (UnitFactorsOf (BaseUnit Kayser)) | |
type DimOfUnit Kayser Source # | |
type BaseUnit Kayser Source # | |
Defined in Data.Units.CGS |
Instances
Show Maxwell Source # | |
Unit Maxwell Source # | |
Defined in Data.Units.CGS conversionRatio :: Maxwell -> Rational # | |
type UnitFactorsOf Maxwell Source # | |
Defined in Data.Units.CGS type UnitFactorsOf Maxwell = If (IsCanonical Maxwell) '['F Maxwell One] (UnitFactorsOf (BaseUnit Maxwell)) | |
type DimOfUnit Maxwell Source # | |
type BaseUnit Maxwell Source # | |