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 DimOfUnit AstronomicalUnit # type UnitFactorsOf AstronomicalUnit :: [Factor Type] # | |
type UnitFactorsOf AstronomicalUnit Source # | |
Defined in Data.Units.Astronomical | |
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 # | |
Defined in Data.Units.Astronomical conversionRatio :: LightYear -> Rational # | |
type UnitFactorsOf LightYear Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf LightYear = If (IsCanonical LightYear) '['F LightYear One] (UnitFactorsOf (BaseUnit LightYear)) | |
type DimOfUnit LightYear Source # | |
type BaseUnit LightYear Source # | |
Defined in Data.Units.Astronomical |
Instances
Show Parsec Source # | |
Unit Parsec Source # | |
Defined in Data.Units.Astronomical conversionRatio :: Parsec -> Rational # canonicalConvRatio :: Parsec -> Rational | |
type UnitFactorsOf Parsec Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf Parsec = If (IsCanonical Parsec) '['F Parsec One] (UnitFactorsOf (BaseUnit Parsec)) | |
type DimOfUnit Parsec Source # | |
type BaseUnit Parsec Source # | |
Defined in Data.Units.Astronomical |
Time
Instances
Show Day Source # | |
Unit Day Source # | |
Defined in Data.Units.Astronomical conversionRatio :: Day -> Rational # canonicalConvRatio :: Day -> Rational | |
type UnitFactorsOf Day Source # | |
Defined in Data.Units.Astronomical | |
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 DimOfUnit JulianYear # type UnitFactorsOf JulianYear :: [Factor Type] # | |
type UnitFactorsOf JulianYear Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf JulianYear = If (IsCanonical JulianYear) '['F JulianYear One] (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 DimOfUnit JulianCentury # type UnitFactorsOf JulianCentury :: [Factor Type] # | |
type UnitFactorsOf JulianCentury Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf JulianCentury = If (IsCanonical JulianCentury) '['F JulianCentury One] (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 # | |
Defined in Data.Units.Astronomical conversionRatio :: SolarMass -> Rational # | |
type UnitFactorsOf SolarMass Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf SolarMass = If (IsCanonical SolarMass) '['F SolarMass One] (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 DimOfUnit JovianMass # type UnitFactorsOf JovianMass :: [Factor Type] # | |
type UnitFactorsOf JovianMass Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf JovianMass = If (IsCanonical JovianMass) '['F JovianMass One] (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 # | |
Defined in Data.Units.Astronomical conversionRatio :: EarthMass -> Rational # | |
type UnitFactorsOf EarthMass Source # | |
Defined in Data.Units.Astronomical type UnitFactorsOf EarthMass = If (IsCanonical EarthMass) '['F EarthMass One] (UnitFactorsOf (BaseUnit EarthMass)) | |
type DimOfUnit EarthMass Source # | |
type BaseUnit EarthMass Source # | |
Defined in Data.Units.Astronomical |