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 |
This module defines dry volume measures as used in the USA.
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 Quart = Quart
- data Pint = Pint
- data Peck = Peck
- data Bushel = Bushel
- data Barrel = Barrel
- data Cord = Cord
- data BoardFoot = BoardFoot
- data RegisterTon = RegisterTon
- data CranberryBarrel = CranberryBarrel
- dryVolumeMeasures :: [Name]
Documentation
Instances
Show Gallon Source # | |
Unit Gallon Source # | |
Defined in Data.Units.US.DryVolume conversionRatio :: Gallon -> Rational # canonicalConvRatio :: Gallon -> Rational | |
type UnitFactorsOf Gallon Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Gallon = If (IsCanonical Gallon) '['F Gallon One] (UnitFactorsOf (BaseUnit Gallon)) | |
type DimOfUnit Gallon Source # | |
type BaseUnit Gallon Source # | |
Instances
Show Quart Source # | |
Unit Quart Source # | |
Defined in Data.Units.US.DryVolume conversionRatio :: Quart -> Rational # canonicalConvRatio :: Quart -> Rational | |
type UnitFactorsOf Quart Source # | |
Defined in Data.Units.US.DryVolume | |
type DimOfUnit Quart Source # | |
type BaseUnit Quart Source # | |
Defined in Data.Units.US.DryVolume |
Instances
Show Pint Source # | |
Unit Pint Source # | |
Defined in Data.Units.US.DryVolume conversionRatio :: Pint -> Rational # canonicalConvRatio :: Pint -> Rational | |
type UnitFactorsOf Pint Source # | |
Defined in Data.Units.US.DryVolume | |
type DimOfUnit Pint Source # | |
type BaseUnit Pint Source # | |
Defined in Data.Units.US.DryVolume |
Instances
Show Peck Source # | |
Unit Peck Source # | |
Defined in Data.Units.US.DryVolume conversionRatio :: Peck -> Rational # canonicalConvRatio :: Peck -> Rational | |
type UnitFactorsOf Peck Source # | |
Defined in Data.Units.US.DryVolume | |
type DimOfUnit Peck Source # | |
type BaseUnit Peck Source # | |
Defined in Data.Units.US.DryVolume |
Instances
Show Bushel Source # | |
Unit Bushel Source # | |
Defined in Data.Units.US.DryVolume conversionRatio :: Bushel -> Rational # canonicalConvRatio :: Bushel -> Rational | |
type UnitFactorsOf Bushel Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Bushel = If (IsCanonical Bushel) '['F Bushel One] (UnitFactorsOf (BaseUnit Bushel)) | |
type DimOfUnit Bushel Source # | |
type BaseUnit Bushel Source # | |
Defined in Data.Units.US.DryVolume |
Instances
Show Barrel Source # | |
Unit Barrel Source # | |
Defined in Data.Units.US.DryVolume conversionRatio :: Barrel -> Rational # canonicalConvRatio :: Barrel -> Rational | |
type UnitFactorsOf Barrel Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Barrel = If (IsCanonical Barrel) '['F Barrel One] (UnitFactorsOf (BaseUnit Barrel)) | |
type DimOfUnit Barrel Source # | |
type BaseUnit Barrel Source # | |
Instances
Show BoardFoot Source # | |
Unit BoardFoot Source # | |
Defined in Data.Units.US.DryVolume conversionRatio :: BoardFoot -> Rational # | |
type UnitFactorsOf BoardFoot Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf BoardFoot = If (IsCanonical BoardFoot) '['F BoardFoot One] (UnitFactorsOf (BaseUnit BoardFoot)) | |
type DimOfUnit BoardFoot Source # | |
type BaseUnit BoardFoot Source # | |
data RegisterTon Source #
Instances
Show RegisterTon Source # | |
Defined in Data.Units.US.DryVolume showsPrec :: Int -> RegisterTon -> ShowS # show :: RegisterTon -> String # showList :: [RegisterTon] -> ShowS # | |
Unit RegisterTon Source # | |
Defined in Data.Units.US.DryVolume type BaseUnit RegisterTon # type DimOfUnit RegisterTon # type UnitFactorsOf RegisterTon :: [Factor Type] # | |
type UnitFactorsOf RegisterTon Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf RegisterTon = If (IsCanonical RegisterTon) '['F RegisterTon One] (UnitFactorsOf (BaseUnit RegisterTon)) | |
type DimOfUnit RegisterTon Source # | |
Defined in Data.Units.US.DryVolume | |
type BaseUnit RegisterTon Source # | |
Defined in Data.Units.US.DryVolume |
data CranberryBarrel Source #
Instances
Show CranberryBarrel Source # | |
Defined in Data.Units.US.DryVolume showsPrec :: Int -> CranberryBarrel -> ShowS # show :: CranberryBarrel -> String # showList :: [CranberryBarrel] -> ShowS # | |
Unit CranberryBarrel Source # | |
Defined in Data.Units.US.DryVolume type BaseUnit CranberryBarrel # type DimOfUnit CranberryBarrel # type UnitFactorsOf CranberryBarrel :: [Factor Type] # | |
type UnitFactorsOf CranberryBarrel Source # | |
Defined in Data.Units.US.DryVolume | |
type DimOfUnit CranberryBarrel Source # | |
Defined in Data.Units.US.DryVolume | |
type BaseUnit CranberryBarrel Source # | |
Defined in Data.Units.US.DryVolume |
dryVolumeMeasures :: [Name] Source #
Includes all measures in this file, except CranberryBarrel
.