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 troy measures of mass. The troy system is most often used when measuring precious metals.
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 Pennyweight = Pennyweight
- data Ounce = Ounce
- data Pound = Pound
- troyMassMeasures :: [Name]
- data Grain = Grain
Documentation
data Pennyweight Source #
Instances
Show Pennyweight Source # | |
Defined in Data.Units.US.Troy showsPrec :: Int -> Pennyweight -> ShowS # show :: Pennyweight -> String # showList :: [Pennyweight] -> ShowS # | |
Unit Pennyweight Source # | |
Defined in Data.Units.US.Troy type BaseUnit Pennyweight :: Type # type DimOfUnit Pennyweight :: Type # type UnitFactorsOf Pennyweight :: [Factor Type] # | |
type UnitFactorsOf Pennyweight Source # | |
Defined in Data.Units.US.Troy type UnitFactorsOf Pennyweight = If (IsCanonical Pennyweight) (F Pennyweight One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Pennyweight)) | |
type DimOfUnit Pennyweight Source # | |
Defined in Data.Units.US.Troy | |
type BaseUnit Pennyweight Source # | |
Defined in Data.Units.US.Troy |
Instances
Show Ounce Source # | |
Unit Ounce Source # | |
type UnitFactorsOf Ounce Source # | |
Defined in Data.Units.US.Troy type UnitFactorsOf Ounce = If (IsCanonical Ounce) (F Ounce One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Ounce)) | |
type DimOfUnit Ounce Source # | |
type BaseUnit Ounce Source # | |
Defined in Data.Units.US.Troy |
Instances
Show Pound Source # | |
Unit Pound Source # | |
type UnitFactorsOf Pound Source # | |
Defined in Data.Units.US.Troy type UnitFactorsOf Pound = If (IsCanonical Pound) (F Pound One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Pound)) | |
type DimOfUnit Pound Source # | |
type BaseUnit Pound Source # | |
Defined in Data.Units.US.Troy |
troyMassMeasures :: [Name] Source #
Includes Grain
, Pennyweight
, Ounce
, and Pound
The avoirdupois grain is the same as the troy grain
Instances
Show Grain Source # | |
Unit Grain Source # | |
type UnitFactorsOf Grain Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf Grain = If (IsCanonical Grain) (F Grain One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Grain)) | |
type DimOfUnit Grain Source # | |
type BaseUnit Grain Source # | |
Defined in Data.Units.US.Avoirdupois |