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.DryVolume
Description
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
Constructors
Gallon |
Instances
Show Gallon Source # | |
Unit Gallon Source # | |
Defined in Data.Units.US.DryVolume Associated Types type UnitFactorsOf Gallon :: [Factor Type] # | |
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 # | |
Constructors
Quart |
Instances
Constructors
Pint |
Constructors
Peck |
Constructors
Bushel |
Instances
Show Bushel Source # | |
Unit Bushel Source # | |
Defined in Data.Units.US.DryVolume Associated Types type UnitFactorsOf Bushel :: [Factor Type] # | |
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 |
Constructors
Barrel |
Instances
Show Barrel Source # | |
Unit Barrel Source # | |
Defined in Data.Units.US.DryVolume Associated Types type UnitFactorsOf Barrel :: [Factor Type] # | |
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 # | |
Constructors
Cord |
Constructors
BoardFoot |
Instances
Show BoardFoot Source # | |
Unit BoardFoot Source # | |
Defined in Data.Units.US.DryVolume Associated Types type UnitFactorsOf BoardFoot :: [Factor Type] # | |
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 #
Constructors
RegisterTon |
Instances
Show RegisterTon Source # | |
Defined in Data.Units.US.DryVolume Methods showsPrec :: Int -> RegisterTon -> ShowS # show :: RegisterTon -> String # showList :: [RegisterTon] -> ShowS # | |
Unit RegisterTon Source # | |
Defined in Data.Units.US.DryVolume Associated Types 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 #
Constructors
CranberryBarrel |
Instances
Show CranberryBarrel Source # | |
Defined in Data.Units.US.DryVolume Methods showsPrec :: Int -> CranberryBarrel -> ShowS # show :: CranberryBarrel -> String # showList :: [CranberryBarrel] -> ShowS # | |
Unit CranberryBarrel Source # | |
Defined in Data.Units.US.DryVolume Associated Types type BaseUnit CranberryBarrel # type DimOfUnit CranberryBarrel # type UnitFactorsOf CranberryBarrel :: [Factor Type] # Methods | |
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
.