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 apothecaries' measures of mass. These measures are rarely used.
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
Documentation
Instances
Show Scruple Source # | |
Unit Scruple Source # | |
Defined in Data.Units.US.Apothecaries conversionRatio :: Scruple -> Rational # | |
type UnitFactorsOf Scruple Source # | |
Defined in Data.Units.US.Apothecaries type UnitFactorsOf Scruple = If (IsCanonical Scruple) '['F Scruple One] (UnitFactorsOf (BaseUnit Scruple)) | |
type DimOfUnit Scruple Source # | |
type BaseUnit Scruple Source # | |
Defined in Data.Units.US.Apothecaries |
Instances
Show Dram Source # | |
Unit Dram Source # | |
Defined in Data.Units.US.Apothecaries conversionRatio :: Dram -> Rational # canonicalConvRatio :: Dram -> Rational | |
type UnitFactorsOf Dram Source # | |
Defined in Data.Units.US.Apothecaries | |
type DimOfUnit Dram Source # | |
type BaseUnit Dram Source # | |
Defined in Data.Units.US.Apothecaries |
The apothecaries' grain is the same as the avoirdupois grain.
Instances
Show Grain Source # | |
Unit Grain Source # | |
Defined in Data.Units.US.Avoirdupois conversionRatio :: Grain -> Rational # canonicalConvRatio :: Grain -> Rational | |
type UnitFactorsOf Grain Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit Grain Source # | |
type BaseUnit Grain Source # | |
Defined in Data.Units.US.Avoirdupois |
The apothecaries' ounce and pound are the troy ounce and pound.
Instances
Show Ounce Source # | |
Unit Ounce Source # | |
Defined in Data.Units.US.Troy conversionRatio :: Ounce -> Rational # canonicalConvRatio :: Ounce -> Rational | |
type UnitFactorsOf Ounce Source # | |
Defined in Data.Units.US.Troy | |
type DimOfUnit Ounce Source # | |
type BaseUnit Ounce Source # | |
Defined in Data.Units.US.Troy |
Instances
Show Pound Source # | |
Unit Pound Source # | |
Defined in Data.Units.US.Troy conversionRatio :: Pound -> Rational # canonicalConvRatio :: Pound -> Rational | |
type UnitFactorsOf Pound Source # | |
Defined in Data.Units.US.Troy | |
type DimOfUnit Pound Source # | |
type BaseUnit Pound Source # | |
Defined in Data.Units.US.Troy |