refactor: simplify dependencies, one less module to compile

This commit is contained in:
Simon Michael 2010-04-14 22:54:53 +00:00
parent b03f20f1c0
commit e40a190908
2 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,7 @@ module Options
where
import System.Console.GetOpt
import System.Environment
import Version (timeprogname)
import Ledger.IO (myLedgerPath,myTimelogPath)
import Ledger.Utils
import Ledger.Types
@ -16,8 +17,6 @@ import Codec.Binary.UTF8.String (decodeString)
#endif
import Control.Monad (liftM)
progname = "hledger"
timeprogname = "hours"
#ifdef CHART
chartoutput = "hledger.png"
chartitems = 10

View File

@ -8,7 +8,6 @@ module Version
where
import System.Info (os, arch)
import Ledger.Utils
import Options (progname)
-- version and PATCHLEVEL are set by the makefile
version = "0.8.0"
@ -19,6 +18,9 @@ patchlevel = "." ++ show PATCHLEVEL -- must be numeric !
patchlevel = ""
#endif
progname = "hledger"
timeprogname = "hours"
buildversion = version ++ patchlevel :: String
binaryfilename = prettify $ splitAtElement '.' buildversion :: String