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 |
This module defines American customary units that don't fit into other categories.
Included are all units mentioned here: http:/en.wikipedia.orgwiki/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.govpmlwmdmetricuploadSP1038.pdf http:/nist.govpmlwmdpubsuploadappc-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
data NauticalMile Source
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 |
data Atmosphere Source
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 |
data MillimeterOfMercury Source
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 |
data FoodCalorie Source
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 |
data Horsepower Source
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 |
data PoundForce Source
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 |