| 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.Misc
Description
This module defines American customary units that don't fit into other categories.
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 Foot = Foot
- data Inch = Inch
- data Yard = Yard
- data Mile = Mile
- data Angstrom = Angstrom
- data Hand = Hand
- data Mil = Mil
- data Point = Point
- data Pica = Pica
- data Fathom = Fathom
- data Cable = Cable
- data NauticalMile = NauticalMile
- data Knot = Knot
- data Atmosphere = Atmosphere
- data Bar = Bar
- data MillimeterOfMercury = MillimeterOfMercury
- data Torr = Torr
- data Calorie = Calorie
- data FoodCalorie = FoodCalorie
- data Therm = Therm
- data Btu = Btu
- data Horsepower = Horsepower
- data Rankine = Rankine
- data PoundForce = PoundForce
- data Slug = Slug
- data Oersted = Oersted
- lengths :: [Name]
- data Maxwell = Maxwell
Documentation
Constructors
| Foot |
Constructors
| Inch |
Constructors
| Yard |
Constructors
| Mile |
Constructors
| Angstrom |
Instances
| Show Angstrom Source # | |
| Unit Angstrom Source # | |
Defined in Data.Units.US.Misc Associated Types type UnitFactorsOf Angstrom :: [Factor Type] # | |
| type UnitFactorsOf Angstrom Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Angstrom = If (IsCanonical Angstrom) '['F Angstrom One] (UnitFactorsOf (BaseUnit Angstrom)) | |
| type DimOfUnit Angstrom Source # | |
| type BaseUnit Angstrom Source # | |
Constructors
| Hand |
Constructors
| Mil |
Constructors
| Point |
Constructors
| Pica |
Constructors
| Fathom |
Instances
| Show Fathom Source # | |
| Unit Fathom Source # | |
Defined in Data.Units.US.Misc Associated Types type UnitFactorsOf Fathom :: [Factor Type] # | |
| type UnitFactorsOf Fathom Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Fathom = If (IsCanonical Fathom) '['F Fathom One] (UnitFactorsOf (BaseUnit Fathom)) | |
| type DimOfUnit Fathom Source # | |
| type BaseUnit Fathom Source # | |
Defined in Data.Units.US.Misc | |
Constructors
| Cable |
data NauticalMile Source #
Constructors
| NauticalMile |
Instances
| Show NauticalMile Source # | |
Defined in Data.Units.US.Misc Methods showsPrec :: Int -> NauticalMile -> ShowS # show :: NauticalMile -> String # showList :: [NauticalMile] -> ShowS # | |
| Unit NauticalMile Source # | |
Defined in Data.Units.US.Misc Associated Types type BaseUnit NauticalMile # type DimOfUnit NauticalMile # type UnitFactorsOf NauticalMile :: [Factor Type] # | |
| type UnitFactorsOf NauticalMile Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf NauticalMile = If (IsCanonical NauticalMile) '['F NauticalMile One] (UnitFactorsOf (BaseUnit NauticalMile)) | |
| type DimOfUnit NauticalMile Source # | |
Defined in Data.Units.US.Misc | |
| type BaseUnit NauticalMile Source # | |
Defined in Data.Units.US.Misc | |
Constructors
| Knot |
data Atmosphere Source #
Constructors
| Atmosphere |
Instances
| Show Atmosphere Source # | |
Defined in Data.Units.US.Misc Methods showsPrec :: Int -> Atmosphere -> ShowS # show :: Atmosphere -> String # showList :: [Atmosphere] -> ShowS # | |
| Unit Atmosphere Source # | |
Defined in Data.Units.US.Misc Associated Types type BaseUnit Atmosphere # type DimOfUnit Atmosphere # type UnitFactorsOf Atmosphere :: [Factor Type] # | |
| type UnitFactorsOf Atmosphere Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Atmosphere = If (IsCanonical Atmosphere) '['F Atmosphere One] (UnitFactorsOf (BaseUnit Atmosphere)) | |
| type DimOfUnit Atmosphere Source # | |
Defined in Data.Units.US.Misc | |
| type BaseUnit Atmosphere Source # | |
Defined in Data.Units.US.Misc | |
Constructors
| Bar |
data MillimeterOfMercury Source #
Constructors
| MillimeterOfMercury |
Instances
| Show MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc Methods showsPrec :: Int -> MillimeterOfMercury -> ShowS # show :: MillimeterOfMercury -> String # showList :: [MillimeterOfMercury] -> ShowS # | |
| Unit MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc Associated Types type BaseUnit MillimeterOfMercury # type DimOfUnit MillimeterOfMercury # type UnitFactorsOf MillimeterOfMercury :: [Factor Type] # Methods | |
| type UnitFactorsOf MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc | |
| type DimOfUnit MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc | |
| type BaseUnit MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc | |
Constructors
| Torr |
Constructors
| Calorie |
Instances
| Show Calorie Source # | |
| Unit Calorie Source # | |
Defined in Data.Units.US.Misc Associated Types type UnitFactorsOf Calorie :: [Factor Type] # | |
| type UnitFactorsOf Calorie Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Calorie = If (IsCanonical Calorie) '['F Calorie One] (UnitFactorsOf (BaseUnit Calorie)) | |
| type DimOfUnit Calorie Source # | |
| type BaseUnit Calorie Source # | |
Defined in Data.Units.US.Misc | |
data FoodCalorie Source #
Constructors
| FoodCalorie |
Instances
| Show FoodCalorie Source # | |
Defined in Data.Units.US.Misc Methods showsPrec :: Int -> FoodCalorie -> ShowS # show :: FoodCalorie -> String # showList :: [FoodCalorie] -> ShowS # | |
| Unit FoodCalorie Source # | |
Defined in Data.Units.US.Misc Associated Types type BaseUnit FoodCalorie # type DimOfUnit FoodCalorie # type UnitFactorsOf FoodCalorie :: [Factor Type] # | |
| type UnitFactorsOf FoodCalorie Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf FoodCalorie = If (IsCanonical FoodCalorie) '['F FoodCalorie One] (UnitFactorsOf (BaseUnit FoodCalorie)) | |
| type DimOfUnit FoodCalorie Source # | |
Defined in Data.Units.US.Misc | |
| type BaseUnit FoodCalorie Source # | |
Defined in Data.Units.US.Misc | |
Constructors
| Therm |
Constructors
| Btu |
data Horsepower Source #
Constructors
| Horsepower |
Instances
| Show Horsepower Source # | |
Defined in Data.Units.US.Misc Methods showsPrec :: Int -> Horsepower -> ShowS # show :: Horsepower -> String # showList :: [Horsepower] -> ShowS # | |
| Unit Horsepower Source # | |
Defined in Data.Units.US.Misc Associated Types type BaseUnit Horsepower # type DimOfUnit Horsepower # type UnitFactorsOf Horsepower :: [Factor Type] # | |
| type UnitFactorsOf Horsepower Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Horsepower = If (IsCanonical Horsepower) '['F Horsepower One] (UnitFactorsOf (BaseUnit Horsepower)) | |
| type DimOfUnit Horsepower Source # | |
Defined in Data.Units.US.Misc | |
| type BaseUnit Horsepower Source # | |
Defined in Data.Units.US.Misc | |
Constructors
| Rankine |
Instances
| Show Rankine Source # | |
| Unit Rankine Source # | |
Defined in Data.Units.US.Misc Associated Types type UnitFactorsOf Rankine :: [Factor Type] # | |
| type UnitFactorsOf Rankine Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Rankine = If (IsCanonical Rankine) '['F Rankine One] (UnitFactorsOf (BaseUnit Rankine)) | |
| type DimOfUnit Rankine Source # | |
| type BaseUnit Rankine Source # | |
Defined in Data.Units.US.Misc | |
data PoundForce Source #
Constructors
| PoundForce |
Instances
| Show PoundForce Source # | |
Defined in Data.Units.US.Misc Methods showsPrec :: Int -> PoundForce -> ShowS # show :: PoundForce -> String # showList :: [PoundForce] -> ShowS # | |
| Unit PoundForce Source # | |
Defined in Data.Units.US.Misc Associated Types type BaseUnit PoundForce # type DimOfUnit PoundForce # type UnitFactorsOf PoundForce :: [Factor Type] # | |
| type UnitFactorsOf PoundForce Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf PoundForce = If (IsCanonical PoundForce) '['F PoundForce One] (UnitFactorsOf (BaseUnit PoundForce)) | |
| type DimOfUnit PoundForce Source # | |
Defined in Data.Units.US.Misc | |
| type BaseUnit PoundForce Source # | |
Defined in Data.Units.US.Misc | |
Constructors
| Slug |
Constructors
| Oersted |
Instances
| Show Oersted Source # | |
| Unit Oersted Source # | |
Defined in Data.Units.US.Misc Associated Types type UnitFactorsOf Oersted :: [Factor Type] # | |
| type UnitFactorsOf Oersted Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Oersted = If (IsCanonical Oersted) '['F Oersted One] (UnitFactorsOf (BaseUnit Oersted)) | |
| type DimOfUnit Oersted Source # | |
| type BaseUnit Oersted Source # | |
Constructors
| Maxwell |
Instances
| Show Maxwell Source # | |
| Unit Maxwell Source # | |
Defined in Data.Units.CGS Associated Types type UnitFactorsOf Maxwell :: [Factor Type] # | |
| type UnitFactorsOf Maxwell Source # | |
Defined in Data.Units.CGS type UnitFactorsOf Maxwell = If (IsCanonical Maxwell) '['F Maxwell One] (UnitFactorsOf (BaseUnit Maxwell)) | |
| type DimOfUnit Maxwell Source # | |
| type BaseUnit Maxwell Source # | |