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.Liquid
Description
This module defines liquid volume measures as used in the USA. Note that liquid volumes in the USA differ both from solid volumes in the USA and from liquid volumes in the UK.
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 Gallon = Gallon
- data FluidOunce = FluidOunce
- data Gill = Gill
- data Cup = Cup
- data Pint = Pint
- data Quart = Quart
- data Teaspoon = Teaspoon
- data Tablespoon = Tablespoon
- data Shot = Shot
- data Minim = Minim
- data Dram = Dram
- data Hogshead = Hogshead
- data Barrel = Barrel
- data OilBarrel = OilBarrel
- commonLiquidMeasures :: [Name]
- otherLiquidMeasures :: [Name]
Documentation
Constructors
Gallon |
data FluidOunce Source
Constructors
FluidOunce |
Instances
Show FluidOunce | |
Unit FluidOunce | |
type UnitFactorsOf FluidOunce = If [Factor *] (IsCanonical FluidOunce) ((:) (Factor *) (F * FluidOunce One) ([] (Factor *))) (UnitFactorsOf (BaseUnit FluidOunce)) | |
type DimOfUnit FluidOunce = DimOfUnit (BaseUnit FluidOunce) | |
type BaseUnit FluidOunce = Gallon |
Constructors
Gill |
Constructors
Cup |
Constructors
Pint |
Constructors
Quart |
Constructors
Teaspoon |
data Tablespoon Source
Constructors
Tablespoon |
Instances
Show Tablespoon | |
Unit Tablespoon | |
type UnitFactorsOf Tablespoon = If [Factor *] (IsCanonical Tablespoon) ((:) (Factor *) (F * Tablespoon One) ([] (Factor *))) (UnitFactorsOf (BaseUnit Tablespoon)) | |
type DimOfUnit Tablespoon = DimOfUnit (BaseUnit Tablespoon) | |
type BaseUnit Tablespoon = Teaspoon |
Constructors
Shot |
Constructors
Minim |
Constructors
Dram |
Constructors
Hogshead |
Constructors
Barrel |
Constructors
OilBarrel |
commonLiquidMeasures :: [Name] Source
As shown on Wikipedia: http://en.wikipedia.org/wiki/United_States_customary_units
otherLiquidMeasures :: [Name] Source
Includes the rest of the measures in this file.