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 dry volume measures as used in the USA.
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 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
data RegisterTon Source
Show RegisterTon | |
Unit RegisterTon | |
type UnitFactorsOf RegisterTon = If [Factor *] (IsCanonical RegisterTon) ((:) (Factor *) (F * RegisterTon One) ([] (Factor *))) (UnitFactorsOf (BaseUnit RegisterTon)) | |
type DimOfUnit RegisterTon = DimOfUnit (BaseUnit RegisterTon) | |
type BaseUnit RegisterTon = (:^) Foot Three |
data CranberryBarrel Source
Show CranberryBarrel | |
Unit CranberryBarrel | |
type UnitFactorsOf CranberryBarrel = If [Factor *] (IsCanonical CranberryBarrel) ((:) (Factor *) (F * CranberryBarrel One) ([] (Factor *))) (UnitFactorsOf (BaseUnit CranberryBarrel)) | |
type DimOfUnit CranberryBarrel = DimOfUnit (BaseUnit CranberryBarrel) | |
type BaseUnit CranberryBarrel = (:^) Inch Three |
dryVolumeMeasures :: [Name] Source
Includes all measures in this file, except CranberryBarrel
.