refactor: simplify dependencies, one less module to compile
This commit is contained in:
parent
b03f20f1c0
commit
e40a190908
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user