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 |
The system of astronomical units, as defined by the International Astronomical Union in 1976 and since then updated a few times.
The IAU documents used as reference are as follows: http://www.iau.org/static/resolutions/IAU1976_French.pdf http://www.iau.org/static/resolutions/IAU1994_French.pdf http://syrte.obspm.fr/IAU_resolutions/Res_IAU2012_B2.pdf https://www.iau.org/publications/proceedings_rules/units/
Synopsis
- data AstronomicalUnit = AstronomicalUnit
- data LightYear = LightYear
- data Parsec = Parsec
- data Day = Day
- data JulianYear = JulianYear
- data JulianCentury = JulianCentury
- data SolarMass = SolarMass
- data JovianMass = JovianMass
- data EarthMass = EarthMass
Lengths
data AstronomicalUnit Source #
Instances
Show AstronomicalUnit Source # | |
Defined in Data.Units.Astronomical showsPrec :: Int -> AstronomicalUnit -> ShowS # show :: AstronomicalUnit -> String # showList :: [AstronomicalUnit] -> ShowS # | |
Unit AstronomicalUnit Source # | |
Defined in Data.Units.Astronomical type BaseUnit AstronomicalUnit :: Type # type DimOfUnit AstronomicalUnit :: Type # type UnitFactorsOf AstronomicalUnit :: [Factor Type] # | |
type UnitFactorsOf AstronomicalUnit Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf AstronomicalUnit = If (IsCanonical AstronomicalUnit) (F AstronomicalUnit One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit AstronomicalUnit)) | |
type DimOfUnit AstronomicalUnit Source # | |
Defined in Data.Units.Astronomical | |
type BaseUnit AstronomicalUnit Source # | |
Defined in Data.Units.Astronomical |
Instances
Show LightYear Source # | |
Unit LightYear Source # | |
type UnitFactorsOf LightYear Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf LightYear = If (IsCanonical LightYear) (F LightYear One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit LightYear)) | |
type DimOfUnit LightYear Source # | |
type BaseUnit LightYear Source # | |
Defined in Data.Units.Astronomical |
Instances
Show Parsec Source # | |
Unit Parsec Source # | |
type UnitFactorsOf Parsec Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf Parsec = If (IsCanonical Parsec) (F Parsec One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Parsec)) | |
type DimOfUnit Parsec Source # | |
type BaseUnit Parsec Source # | |
Defined in Data.Units.Astronomical |
Time
Instances
Show Day Source # | |
Unit Day Source # | |
type UnitFactorsOf Day Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf Day = If (IsCanonical Day) (F Day One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Day)) | |
type DimOfUnit Day Source # | |
type BaseUnit Day Source # | |
Defined in Data.Units.Astronomical |
data JulianYear Source #
Instances
Show JulianYear Source # | |
Defined in Data.Units.Astronomical showsPrec :: Int -> JulianYear -> ShowS # show :: JulianYear -> String # showList :: [JulianYear] -> ShowS # | |
Unit JulianYear Source # | |
Defined in Data.Units.Astronomical type BaseUnit JulianYear :: Type # type DimOfUnit JulianYear :: Type # type UnitFactorsOf JulianYear :: [Factor Type] # | |
type UnitFactorsOf JulianYear Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf JulianYear = If (IsCanonical JulianYear) (F JulianYear One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit JulianYear)) | |
type DimOfUnit JulianYear Source # | |
Defined in Data.Units.Astronomical | |
type BaseUnit JulianYear Source # | |
Defined in Data.Units.Astronomical |
data JulianCentury Source #
Instances
Show JulianCentury Source # | |
Defined in Data.Units.Astronomical showsPrec :: Int -> JulianCentury -> ShowS # show :: JulianCentury -> String # showList :: [JulianCentury] -> ShowS # | |
Unit JulianCentury Source # | |
Defined in Data.Units.Astronomical type BaseUnit JulianCentury :: Type # type DimOfUnit JulianCentury :: Type # type UnitFactorsOf JulianCentury :: [Factor Type] # | |
type UnitFactorsOf JulianCentury Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf JulianCentury = If (IsCanonical JulianCentury) (F JulianCentury One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit JulianCentury)) | |
type DimOfUnit JulianCentury Source # | |
Defined in Data.Units.Astronomical | |
type BaseUnit JulianCentury Source # | |
Defined in Data.Units.Astronomical |
Mass
Instances
Show SolarMass Source # | |
Unit SolarMass Source # | |
type UnitFactorsOf SolarMass Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf SolarMass = If (IsCanonical SolarMass) (F SolarMass One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit SolarMass)) | |
type DimOfUnit SolarMass Source # | |
type BaseUnit SolarMass Source # | |
data JovianMass Source #
Instances
Show JovianMass Source # | |
Defined in Data.Units.Astronomical showsPrec :: Int -> JovianMass -> ShowS # show :: JovianMass -> String # showList :: [JovianMass] -> ShowS # | |
Unit JovianMass Source # | |
Defined in Data.Units.Astronomical type BaseUnit JovianMass :: Type # type DimOfUnit JovianMass :: Type # type UnitFactorsOf JovianMass :: [Factor Type] # | |
type UnitFactorsOf JovianMass Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf JovianMass = If (IsCanonical JovianMass) (F JovianMass One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit JovianMass)) | |
type DimOfUnit JovianMass Source # | |
Defined in Data.Units.Astronomical | |
type BaseUnit JovianMass Source # | |
Defined in Data.Units.Astronomical |
Instances
Show EarthMass Source # | |
Unit EarthMass Source # | |
type UnitFactorsOf EarthMass Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf EarthMass = If (IsCanonical EarthMass) (F EarthMass One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit EarthMass)) | |
type DimOfUnit EarthMass Source # | |
type BaseUnit EarthMass Source # | |
Defined in Data.Units.Astronomical |