| 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 # | |
| type UnitFactorsOf Gallon Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Gallon = If (IsCanonical Gallon) (F Gallon One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Gallon)) | |
| type DimOfUnit Gallon Source # | |
| type BaseUnit Gallon Source # | |
Constructors
| Quart |
Instances
| Show Quart Source # | |
| Unit Quart Source # | |
| type UnitFactorsOf Quart Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Quart = If (IsCanonical Quart) (F Quart One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Quart)) | |
| type DimOfUnit Quart Source # | |
| type BaseUnit Quart Source # | |
Defined in Data.Units.US.DryVolume | |
Constructors
| Pint |
Instances
| Show Pint Source # | |
| Unit Pint Source # | |
| type UnitFactorsOf Pint Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Pint = If (IsCanonical Pint) (F Pint One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Pint)) | |
| type DimOfUnit Pint Source # | |
| type BaseUnit Pint Source # | |
Defined in Data.Units.US.DryVolume | |
Constructors
| Peck |
Instances
| Show Peck Source # | |
| Unit Peck Source # | |
| type UnitFactorsOf Peck Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Peck = If (IsCanonical Peck) (F Peck One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Peck)) | |
| type DimOfUnit Peck Source # | |
| type BaseUnit Peck Source # | |
Defined in Data.Units.US.DryVolume | |
Constructors
| Bushel |
Instances
| Show Bushel Source # | |
| Unit Bushel Source # | |
| type UnitFactorsOf Bushel Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Bushel = If (IsCanonical Bushel) (F Bushel One ': ([] :: [Factor Type])) (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 # | |
| type UnitFactorsOf Barrel Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf Barrel = If (IsCanonical Barrel) (F Barrel One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Barrel)) | |
| type DimOfUnit Barrel Source # | |
| type BaseUnit Barrel Source # | |
Constructors
| Cord |
Constructors
| BoardFoot |
Instances
| Show BoardFoot Source # | |
| Unit BoardFoot Source # | |
| type UnitFactorsOf BoardFoot Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf BoardFoot = If (IsCanonical BoardFoot) (F BoardFoot One ': ([] :: [Factor Type])) (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 # type DimOfUnit RegisterTon :: Type # type UnitFactorsOf RegisterTon :: [Factor Type] # | |
| type UnitFactorsOf RegisterTon Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf RegisterTon = If (IsCanonical RegisterTon) (F RegisterTon One ': ([] :: [Factor Type])) (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 # type DimOfUnit CranberryBarrel :: Type # type UnitFactorsOf CranberryBarrel :: [Factor Type] # Methods | |
| type UnitFactorsOf CranberryBarrel Source # | |
Defined in Data.Units.US.DryVolume type UnitFactorsOf CranberryBarrel = If (IsCanonical CranberryBarrel) (F CranberryBarrel One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit CranberryBarrel)) | |
| 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.