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 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.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 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
data FluidOunce Source
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 |
data Tablespoon Source
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 |
commonLiquidMeasures :: [Name] Source
As shown on Wikipedia: http:/en.wikipedia.orgwiki/United_States_customary_units
otherLiquidMeasures :: [Name] Source
Includes the rest of the measures in this file.