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 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
Instances
Show Foot Source # | |
Unit Foot Source # | |
type UnitFactorsOf Foot Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Foot = If (IsCanonical Foot) (F Foot One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Foot)) | |
type DimOfUnit Foot Source # | |
type BaseUnit Foot Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Inch Source # | |
Unit Inch Source # | |
type UnitFactorsOf Inch Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Inch = If (IsCanonical Inch) (F Inch One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Inch)) | |
type DimOfUnit Inch Source # | |
type BaseUnit Inch Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Yard Source # | |
Unit Yard Source # | |
type UnitFactorsOf Yard Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Yard = If (IsCanonical Yard) (F Yard One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Yard)) | |
type DimOfUnit Yard Source # | |
type BaseUnit Yard Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Mile Source # | |
Unit Mile Source # | |
type UnitFactorsOf Mile Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Mile = If (IsCanonical Mile) (F Mile One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Mile)) | |
type DimOfUnit Mile Source # | |
type BaseUnit Mile Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Angstrom Source # | |
Unit Angstrom Source # | |
type UnitFactorsOf Angstrom Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Angstrom = If (IsCanonical Angstrom) (F Angstrom One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Angstrom)) | |
type DimOfUnit Angstrom Source # | |
type BaseUnit Angstrom Source # | |
Instances
Show Hand Source # | |
Unit Hand Source # | |
type UnitFactorsOf Hand Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Hand = If (IsCanonical Hand) (F Hand One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Hand)) | |
type DimOfUnit Hand Source # | |
type BaseUnit Hand Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Mil Source # | |
Unit Mil Source # | |
type UnitFactorsOf Mil Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Mil = If (IsCanonical Mil) (F Mil One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Mil)) | |
type DimOfUnit Mil Source # | |
type BaseUnit Mil Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Point Source # | |
Unit Point Source # | |
type UnitFactorsOf Point Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Point = If (IsCanonical Point) (F Point One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Point)) | |
type DimOfUnit Point Source # | |
type BaseUnit Point Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Pica Source # | |
Unit Pica Source # | |
type UnitFactorsOf Pica Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Pica = If (IsCanonical Pica) (F Pica One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Pica)) | |
type DimOfUnit Pica Source # | |
type BaseUnit Pica Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Fathom Source # | |
Unit Fathom Source # | |
type UnitFactorsOf Fathom Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Fathom = If (IsCanonical Fathom) (F Fathom One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Fathom)) | |
type DimOfUnit Fathom Source # | |
type BaseUnit Fathom Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Cable Source # | |
Unit Cable Source # | |
type UnitFactorsOf Cable Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Cable = If (IsCanonical Cable) (F Cable One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Cable)) | |
type DimOfUnit Cable Source # | |
type BaseUnit Cable Source # | |
Defined in Data.Units.US.Misc |
data NauticalMile Source #
Instances
Show NauticalMile Source # | |
Defined in Data.Units.US.Misc showsPrec :: Int -> NauticalMile -> ShowS # show :: NauticalMile -> String # showList :: [NauticalMile] -> ShowS # | |
Unit NauticalMile Source # | |
Defined in Data.Units.US.Misc type BaseUnit NauticalMile :: Type # type DimOfUnit NauticalMile :: Type # type UnitFactorsOf NauticalMile :: [Factor Type] # | |
type UnitFactorsOf NauticalMile Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf NauticalMile = If (IsCanonical NauticalMile) (F NauticalMile One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit NauticalMile)) | |
type DimOfUnit NauticalMile Source # | |
Defined in Data.Units.US.Misc | |
type BaseUnit NauticalMile Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Knot Source # | |
Unit Knot Source # | |
type UnitFactorsOf Knot Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Knot = If (IsCanonical Knot) (F Knot One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Knot)) | |
type DimOfUnit Knot Source # | |
type BaseUnit Knot Source # | |
Defined in Data.Units.US.Misc |
data Atmosphere Source #
Instances
Show Atmosphere Source # | |
Defined in Data.Units.US.Misc showsPrec :: Int -> Atmosphere -> ShowS # show :: Atmosphere -> String # showList :: [Atmosphere] -> ShowS # | |
Unit Atmosphere Source # | |
Defined in Data.Units.US.Misc type BaseUnit Atmosphere :: Type # type DimOfUnit Atmosphere :: Type # type UnitFactorsOf Atmosphere :: [Factor Type] # | |
type UnitFactorsOf Atmosphere Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Atmosphere = If (IsCanonical Atmosphere) (F Atmosphere One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Atmosphere)) | |
type DimOfUnit Atmosphere Source # | |
Defined in Data.Units.US.Misc | |
type BaseUnit Atmosphere Source # | |
Defined in Data.Units.US.Misc |
data MillimeterOfMercury Source #
Instances
Show MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc showsPrec :: Int -> MillimeterOfMercury -> ShowS # show :: MillimeterOfMercury -> String # showList :: [MillimeterOfMercury] -> ShowS # | |
Unit MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc type BaseUnit MillimeterOfMercury :: Type # type DimOfUnit MillimeterOfMercury :: Type # type UnitFactorsOf MillimeterOfMercury :: [Factor Type] # | |
type UnitFactorsOf MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf MillimeterOfMercury = If (IsCanonical MillimeterOfMercury) (F MillimeterOfMercury One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit MillimeterOfMercury)) | |
type DimOfUnit MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc | |
type BaseUnit MillimeterOfMercury Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Torr Source # | |
Unit Torr Source # | |
type UnitFactorsOf Torr Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Torr = If (IsCanonical Torr) (F Torr One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Torr)) | |
type DimOfUnit Torr Source # | |
type BaseUnit Torr Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Calorie Source # | |
Unit Calorie Source # | |
type UnitFactorsOf Calorie Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Calorie = If (IsCanonical Calorie) (F Calorie One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Calorie)) | |
type DimOfUnit Calorie Source # | |
type BaseUnit Calorie Source # | |
Defined in Data.Units.US.Misc |
data FoodCalorie Source #
Instances
Show FoodCalorie Source # | |
Defined in Data.Units.US.Misc showsPrec :: Int -> FoodCalorie -> ShowS # show :: FoodCalorie -> String # showList :: [FoodCalorie] -> ShowS # | |
Unit FoodCalorie Source # | |
Defined in Data.Units.US.Misc type BaseUnit FoodCalorie :: Type # type DimOfUnit FoodCalorie :: Type # type UnitFactorsOf FoodCalorie :: [Factor Type] # | |
type UnitFactorsOf FoodCalorie Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf FoodCalorie = If (IsCanonical FoodCalorie) (F FoodCalorie One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit FoodCalorie)) | |
type DimOfUnit FoodCalorie Source # | |
Defined in Data.Units.US.Misc | |
type BaseUnit FoodCalorie Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Btu Source # | |
Unit Btu Source # | |
type UnitFactorsOf Btu Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Btu = If (IsCanonical Btu) (F Btu One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Btu)) | |
type DimOfUnit Btu Source # | |
type BaseUnit Btu Source # | |
Defined in Data.Units.US.Misc |
data Horsepower Source #
Instances
Show Horsepower Source # | |
Defined in Data.Units.US.Misc showsPrec :: Int -> Horsepower -> ShowS # show :: Horsepower -> String # showList :: [Horsepower] -> ShowS # | |
Unit Horsepower Source # | |
Defined in Data.Units.US.Misc type BaseUnit Horsepower :: Type # type DimOfUnit Horsepower :: Type # type UnitFactorsOf Horsepower :: [Factor Type] # | |
type UnitFactorsOf Horsepower Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Horsepower = If (IsCanonical Horsepower) (F Horsepower One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Horsepower)) | |
type DimOfUnit Horsepower Source # | |
Defined in Data.Units.US.Misc | |
type BaseUnit Horsepower Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Rankine Source # | |
Unit Rankine Source # | |
type UnitFactorsOf Rankine Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Rankine = If (IsCanonical Rankine) (F Rankine One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Rankine)) | |
type DimOfUnit Rankine Source # | |
type BaseUnit Rankine Source # | |
Defined in Data.Units.US.Misc |
data PoundForce Source #
Instances
Show PoundForce Source # | |
Defined in Data.Units.US.Misc showsPrec :: Int -> PoundForce -> ShowS # show :: PoundForce -> String # showList :: [PoundForce] -> ShowS # | |
Unit PoundForce Source # | |
Defined in Data.Units.US.Misc type BaseUnit PoundForce :: Type # type DimOfUnit PoundForce :: Type # type UnitFactorsOf PoundForce :: [Factor Type] # | |
type UnitFactorsOf PoundForce Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf PoundForce = If (IsCanonical PoundForce) (F PoundForce One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit PoundForce)) | |
type DimOfUnit PoundForce Source # | |
Defined in Data.Units.US.Misc | |
type BaseUnit PoundForce Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Slug Source # | |
Unit Slug Source # | |
type UnitFactorsOf Slug Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Slug = If (IsCanonical Slug) (F Slug One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Slug)) | |
type DimOfUnit Slug Source # | |
type BaseUnit Slug Source # | |
Defined in Data.Units.US.Misc |
Instances
Show Oersted Source # | |
Unit Oersted Source # | |
type UnitFactorsOf Oersted Source # | |
Defined in Data.Units.US.Misc type UnitFactorsOf Oersted = If (IsCanonical Oersted) (F Oersted One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Oersted)) | |
type DimOfUnit Oersted Source # | |
type BaseUnit Oersted Source # | |
Instances
Show Maxwell Source # | |
Unit Maxwell Source # | |
type UnitFactorsOf Maxwell Source # | |
Defined in Data.Units.CGS type UnitFactorsOf Maxwell = If (IsCanonical Maxwell) (F Maxwell One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Maxwell)) | |
type DimOfUnit Maxwell Source # | |
type BaseUnit Maxwell Source # | |