Copyright | (C) 2013 Richard Eisenberg |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Richard Eisenberg (rae@cs.brynmawr.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
Synopsis
- 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 |
Instances
Show Gallon Source # | |
Unit Gallon Source # | |
Defined in Data.Units.US.Liquid Associated Types type UnitFactorsOf Gallon :: [Factor Type] # | |
type UnitFactorsOf Gallon Source # | |
Defined in Data.Units.US.Liquid type UnitFactorsOf Gallon = If (IsCanonical Gallon) '['F Gallon One] (UnitFactorsOf (BaseUnit Gallon)) | |
type DimOfUnit Gallon Source # | |
type BaseUnit Gallon Source # | |
data FluidOunce Source #
Constructors
FluidOunce |
Instances
Show FluidOunce Source # | |
Defined in Data.Units.US.Liquid Methods showsPrec :: Int -> FluidOunce -> ShowS # show :: FluidOunce -> String # showList :: [FluidOunce] -> ShowS # | |
Unit FluidOunce Source # | |
Defined in Data.Units.US.Liquid Associated Types type BaseUnit FluidOunce # type DimOfUnit FluidOunce # type UnitFactorsOf FluidOunce :: [Factor Type] # | |
type UnitFactorsOf FluidOunce Source # | |
Defined in Data.Units.US.Liquid type UnitFactorsOf FluidOunce = If (IsCanonical FluidOunce) '['F FluidOunce One] (UnitFactorsOf (BaseUnit FluidOunce)) | |
type DimOfUnit FluidOunce Source # | |
Defined in Data.Units.US.Liquid | |
type BaseUnit FluidOunce Source # | |
Defined in Data.Units.US.Liquid |
Constructors
Gill |
Constructors
Cup |
Constructors
Pint |
Constructors
Quart |
Constructors
Teaspoon |
Instances
Show Teaspoon Source # | |
Unit Teaspoon Source # | |
Defined in Data.Units.US.Liquid Associated Types type UnitFactorsOf Teaspoon :: [Factor Type] # | |
type UnitFactorsOf Teaspoon Source # | |
Defined in Data.Units.US.Liquid type UnitFactorsOf Teaspoon = If (IsCanonical Teaspoon) '['F Teaspoon One] (UnitFactorsOf (BaseUnit Teaspoon)) | |
type DimOfUnit Teaspoon Source # | |
type BaseUnit Teaspoon Source # | |
Defined in Data.Units.US.Liquid |
data Tablespoon Source #
Constructors
Tablespoon |
Instances
Show Tablespoon Source # | |
Defined in Data.Units.US.Liquid Methods showsPrec :: Int -> Tablespoon -> ShowS # show :: Tablespoon -> String # showList :: [Tablespoon] -> ShowS # | |
Unit Tablespoon Source # | |
Defined in Data.Units.US.Liquid Associated Types type BaseUnit Tablespoon # type DimOfUnit Tablespoon # type UnitFactorsOf Tablespoon :: [Factor Type] # | |
type UnitFactorsOf Tablespoon Source # | |
Defined in Data.Units.US.Liquid type UnitFactorsOf Tablespoon = If (IsCanonical Tablespoon) '['F Tablespoon One] (UnitFactorsOf (BaseUnit Tablespoon)) | |
type DimOfUnit Tablespoon Source # | |
Defined in Data.Units.US.Liquid | |
type BaseUnit Tablespoon Source # | |
Defined in Data.Units.US.Liquid |
Constructors
Shot |
Constructors
Minim |
Constructors
Dram |
Constructors
Hogshead |
Instances
Show Hogshead Source # | |
Unit Hogshead Source # | |
Defined in Data.Units.US.Liquid Associated Types type UnitFactorsOf Hogshead :: [Factor Type] # | |
type UnitFactorsOf Hogshead Source # | |
Defined in Data.Units.US.Liquid type UnitFactorsOf Hogshead = If (IsCanonical Hogshead) '['F Hogshead One] (UnitFactorsOf (BaseUnit Hogshead)) | |
type DimOfUnit Hogshead Source # | |
type BaseUnit Hogshead Source # | |
Defined in Data.Units.US.Liquid |
Constructors
Barrel |
Instances
Show Barrel Source # | |
Unit Barrel Source # | |
Defined in Data.Units.US.Liquid Associated Types type UnitFactorsOf Barrel :: [Factor Type] # | |
type UnitFactorsOf Barrel Source # | |
Defined in Data.Units.US.Liquid type UnitFactorsOf Barrel = If (IsCanonical Barrel) '['F Barrel One] (UnitFactorsOf (BaseUnit Barrel)) | |
type DimOfUnit Barrel Source # | |
type BaseUnit Barrel Source # | |
Defined in Data.Units.US.Liquid |
Constructors
OilBarrel |
Instances
Show OilBarrel Source # | |
Unit OilBarrel Source # | |
Defined in Data.Units.US.Liquid Associated Types type UnitFactorsOf OilBarrel :: [Factor Type] # | |
type UnitFactorsOf OilBarrel Source # | |
Defined in Data.Units.US.Liquid type UnitFactorsOf OilBarrel = If (IsCanonical OilBarrel) '['F OilBarrel One] (UnitFactorsOf (BaseUnit OilBarrel)) | |
type DimOfUnit OilBarrel Source # | |
type BaseUnit OilBarrel Source # | |
Defined in Data.Units.US.Liquid |
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.