Skip to content

Commit

Permalink
Cabalized entire astro package. Fixes for clean "cabal install".
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbm committed Jan 17, 2009
1 parent e98289c commit f22a72d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 23 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,4 +1,7 @@
*.[oa]
*.exe
*.exe.manifest
*.hi
*~
*.swp
dist/
3 changes: 2 additions & 1 deletion Astro/Time/Sidereal.hs
Expand Up @@ -2,6 +2,7 @@ module Astro.Time.Sidereal where

import Astro
import Astro.Time
import Astro.Time.Convert
import Control.Monad.Reader
import IAU2000.Nutation
import Numeric.Units.Dimensional.Prelude
Expand Down Expand Up @@ -45,7 +46,7 @@ gmst' ut1 tt = era ut1 + gmst_p tt
-- | Greenwich mean sidereal time (GMST) as a function of TT epoch.
gmst :: RealFloat a => E TT -> Astro a (Angle a)
gmst tt = do
ut1 <- convertt (convert tt :: E TAI)
ut1 <- convert tt
return $ gmst' ut1 tt

-- | Greenwich apparent sidereal time (GAST) expressed as an angle.
Expand Down
22 changes: 0 additions & 22 deletions astro-time.cabal

This file was deleted.

34 changes: 34 additions & 0 deletions astro.cabal
@@ -0,0 +1,34 @@
Name: astro
Version: 0.1
License: BSD3
License-File: LICENSE
Copyright: Bjorn Buckwalter 2008-2009
Author: Bjorn Buckwalter
Maintainer: bjorn.buckwalter@gmail.com
Stability: Unstable
Synopsis: Time scales and Earth orientation parameters for astrodynamics.
Description:
Time scales and time conversion facilities relevant to astrodynamics.
Category: Physics
Build-Type: Simple
Build-Depends: base, time, dimensional, mtl, array
Exposed-Modules: Astro,
Astro.DefaultData,
Astro.Time,
Astro.Time.Barycentric.AsA2009,
Astro.Time.Barycentric.Kaplan2005,
Astro.Time.Barycentric.TT,
Astro.Time.Convert,
Astro.Time.Interop,
Astro.Time.Sidereal,
Astro.Celestrak,
IAU2000.FundamentalArguments,
IAU2000.Table53,
IAU2000.Nutation,
IAU2000.Equations
Extra-source-files: README,
Test.lhs,
Astro/TestTime.hs,
Astro/TestCelestrak.hs,
Astro/Time/Barycentric/TestAsA2009.hs

0 comments on commit f22a72d

Please sign in to comment.