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 troy measures of mass. The troy system is most often used when measuring precious metals.
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 Pennyweight = Pennyweight
- data Ounce = Ounce
- data Pound = Pound
- troyMassMeasures :: [Name]
- data Grain = Grain
Documentation
data Pennyweight Source
Show Pennyweight | |
Unit Pennyweight | |
type UnitFactorsOf Pennyweight = If [Factor *] (IsCanonical Pennyweight) ((:) (Factor *) (F * Pennyweight One) ([] (Factor *))) (UnitFactorsOf (BaseUnit Pennyweight)) | |
type DimOfUnit Pennyweight = DimOfUnit (BaseUnit Pennyweight) | |
type BaseUnit Pennyweight = Grain |
troyMassMeasures :: [Name] Source
Includes Grain
, Pennyweight
, Ounce
, and Pound
The avoirdupois grain is the same as the troy grain