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 the American customary system of units. Because
there are some names that are conflicted, even within this system,
there are several modules underneath here, defining sub-parts of
the US system. This module gathers together a subjective set of
units users will commonly wish to use. It also exports type instances
DefaultUnitOfDim
that use the SI internal representations. This
choice is made for inter-compatibility with SI computations. If you
want the foot-pound-second system, use the FPS
.
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 Angstrom = Angstrom
- data Mil = Mil
- data Point = Point
- data Pica = Pica
- data Inch = Inch
- data Foot = Foot
- data Yard = Yard
- data Mile = Mile
- data NauticalMile = NauticalMile
- data Knot = Knot
- data Acre = Acre
- data Teaspoon = Teaspoon
- data Tablespoon = Tablespoon
- data FluidOunce = FluidOunce
- data Cup = Cup
- data Pint = Pint
- data Quart = Quart
- data Gallon = Gallon
- data Ounce = Ounce
- data Pound = Pound
- data Ton = Ton
- data Atmosphere = Atmosphere
- data Bar = Bar
- data FoodCalorie = FoodCalorie
- data Therm = Therm
- data Btu = Btu
- data Horsepower = Horsepower
Lengths
data NauticalMile Source #
Show NauticalMile Source # | |
Unit NauticalMile Source # | |
type UnitFactorsOf NauticalMile Source # | |
type DimOfUnit NauticalMile Source # | |
type BaseUnit NauticalMile Source # | |
Velocity
Area
Volume
These are all liquid measures. Solid measures are different.
data Tablespoon Source #
Show Tablespoon Source # | |
Unit Tablespoon Source # | |
type UnitFactorsOf Tablespoon Source # | |
type DimOfUnit Tablespoon Source # | |
type BaseUnit Tablespoon Source # | |
data FluidOunce Source #
Show FluidOunce Source # | |
Unit FluidOunce Source # | |
type UnitFactorsOf FluidOunce Source # | |
type DimOfUnit FluidOunce Source # | |
type BaseUnit FluidOunce Source # | |
Mass
These are all in the avoirdupois system
Pressure
data Atmosphere Source #
Show Atmosphere Source # | |
Unit Atmosphere Source # | |
type UnitFactorsOf Atmosphere Source # | |
type DimOfUnit Atmosphere Source # | |
type BaseUnit Atmosphere Source # | |
Energy
data FoodCalorie Source #
Show FoodCalorie Source # | |
Unit FoodCalorie Source # | |
type UnitFactorsOf FoodCalorie Source # | |
type DimOfUnit FoodCalorie Source # | |
type BaseUnit FoodCalorie Source # | |
Power
data Horsepower Source #
Show Horsepower Source # | |
Unit Horsepower Source # | |
type UnitFactorsOf Horsepower Source # | |
type DimOfUnit Horsepower Source # | |
type BaseUnit Horsepower Source # | |