| 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.US.Misc
Description
This module defines American customary units that don't fit into other categories.
Included are all units mentioned here: http://en.wikipedia.org/wiki/United_States_customary_units Where possible, conversion rates have been independently verified at a US government website. However, Wikipedia's base is much better organized than any government resource immediately available. The US government references used are as follows: http://nist.gov/pml/wmd/metric/upload/SP1038.pdf http://nist.gov/pml/wmd/pubs/upload/appc-14-hb44-final.pdf
- data Foot = Foot
- data Inch = Inch
- data Yard = Yard
- data Mile = Mile
- data Angstrom = Angstrom
- data Hand = Hand
- data Mil = Mil
- data Point = Point
- data Pica = Pica
- data Fathom = Fathom
- data Cable = Cable
- data NauticalMile = NauticalMile
- data Knot = Knot
- data Atmosphere = Atmosphere
- data Bar = Bar
- data MillimeterOfMercury = MillimeterOfMercury
- data Torr = Torr
- data Calorie = Calorie
- data FoodCalorie = FoodCalorie
- data Therm = Therm
- data Btu = Btu
- data Horsepower = Horsepower
- data Rankine = Rankine
- data PoundForce = PoundForce
- data Slug = Slug
- data Oersted = Oersted
- lengths :: [Name]
- data Maxwell = Maxwell
Documentation
Constructors
| Foot |
Constructors
| Inch |
Constructors
| Yard |
Constructors
| Mile |
Constructors
| Angstrom |
Constructors
| Hand |
Constructors
| Mil |
Constructors
| Point |
Constructors
| Pica |
Constructors
| Fathom |
Constructors
| Cable |
data NauticalMile Source
Constructors
| NauticalMile |
Instances
| Show NauticalMile | |
| Unit NauticalMile | |
| type UnitFactorsOf NauticalMile = If [Factor *] (IsCanonical NauticalMile) ((:) (Factor *) (F * NauticalMile One) ([] (Factor *))) (UnitFactorsOf (BaseUnit NauticalMile)) | |
| type DimOfUnit NauticalMile = DimOfUnit (BaseUnit NauticalMile) | |
| type BaseUnit NauticalMile = (:@) Kilo Meter |
Constructors
| Knot |
data Atmosphere Source
Constructors
| Atmosphere |
Instances
| Show Atmosphere | |
| Unit Atmosphere | |
| type UnitFactorsOf Atmosphere = If [Factor *] (IsCanonical Atmosphere) ((:) (Factor *) (F * Atmosphere One) ([] (Factor *))) (UnitFactorsOf (BaseUnit Atmosphere)) | |
| type DimOfUnit Atmosphere = DimOfUnit (BaseUnit Atmosphere) | |
| type BaseUnit Atmosphere = (:@) Kilo Pascal |
Constructors
| Bar |
data MillimeterOfMercury Source
Constructors
| MillimeterOfMercury |
Instances
| Show MillimeterOfMercury | |
| Unit MillimeterOfMercury | |
| type UnitFactorsOf MillimeterOfMercury = If [Factor *] (IsCanonical MillimeterOfMercury) ((:) (Factor *) (F * MillimeterOfMercury One) ([] (Factor *))) (UnitFactorsOf (BaseUnit MillimeterOfMercury)) | |
| type DimOfUnit MillimeterOfMercury = DimOfUnit (BaseUnit MillimeterOfMercury) | |
| type BaseUnit MillimeterOfMercury = Pascal |
Constructors
| Torr |
Constructors
| Calorie |
data FoodCalorie Source
Constructors
| FoodCalorie |
Instances
| Show FoodCalorie | |
| Unit FoodCalorie | |
| type UnitFactorsOf FoodCalorie = If [Factor *] (IsCanonical FoodCalorie) ((:) (Factor *) (F * FoodCalorie One) ([] (Factor *))) (UnitFactorsOf (BaseUnit FoodCalorie)) | |
| type DimOfUnit FoodCalorie = DimOfUnit (BaseUnit FoodCalorie) | |
| type BaseUnit FoodCalorie = (:@) Kilo Calorie |
Constructors
| Therm |
Constructors
| Btu |
data Horsepower Source
Constructors
| Horsepower |
Instances
| Show Horsepower | |
| Unit Horsepower | |
| type UnitFactorsOf Horsepower = If [Factor *] (IsCanonical Horsepower) ((:) (Factor *) (F * Horsepower One) ([] (Factor *))) (UnitFactorsOf (BaseUnit Horsepower)) | |
| type DimOfUnit Horsepower = DimOfUnit (BaseUnit Horsepower) | |
| type BaseUnit Horsepower = Watt |
Constructors
| Rankine |
data PoundForce Source
Constructors
| PoundForce |
Instances
| Show PoundForce | |
| Unit PoundForce | |
| type UnitFactorsOf PoundForce = If [Factor *] (IsCanonical PoundForce) ((:) (Factor *) (F * PoundForce One) ([] (Factor *))) (UnitFactorsOf (BaseUnit PoundForce)) | |
| type DimOfUnit PoundForce = DimOfUnit (BaseUnit PoundForce) | |
| type BaseUnit PoundForce = Newton |
Constructors
| Slug |
Constructors
| Oersted |
Constructors
| Maxwell |