refactor: simplify dependencies, one less module to compile
This commit is contained in:
parent
b03f20f1c0
commit
e40a190908
@ -7,6 +7,7 @@ module Options
|
|||||||
where
|
where
|
||||||
import System.Console.GetOpt
|
import System.Console.GetOpt
|
||||||
import System.Environment
|
import System.Environment
|
||||||
|
import Version (timeprogname)
|
||||||
import Ledger.IO (myLedgerPath,myTimelogPath)
|
import Ledger.IO (myLedgerPath,myTimelogPath)
|
||||||
import Ledger.Utils
|
import Ledger.Utils
|
||||||
import Ledger.Types
|
import Ledger.Types
|
||||||
@ -16,8 +17,6 @@ import Codec.Binary.UTF8.String (decodeString)
|
|||||||
#endif
|
#endif
|
||||||
import Control.Monad (liftM)
|
import Control.Monad (liftM)
|
||||||
|
|
||||||
progname = "hledger"
|
|
||||||
timeprogname = "hours"
|
|
||||||
#ifdef CHART
|
#ifdef CHART
|
||||||
chartoutput = "hledger.png"
|
chartoutput = "hledger.png"
|
||||||
chartitems = 10
|
chartitems = 10
|
||||||
|
|||||||
@ -8,7 +8,6 @@ module Version
|
|||||||
where
|
where
|
||||||
import System.Info (os, arch)
|
import System.Info (os, arch)
|
||||||
import Ledger.Utils
|
import Ledger.Utils
|
||||||
import Options (progname)
|
|
||||||
|
|
||||||
-- version and PATCHLEVEL are set by the makefile
|
-- version and PATCHLEVEL are set by the makefile
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
@ -19,6 +18,9 @@ patchlevel = "." ++ show PATCHLEVEL -- must be numeric !
|
|||||||
patchlevel = ""
|
patchlevel = ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
progname = "hledger"
|
||||||
|
timeprogname = "hours"
|
||||||
|
|
||||||
buildversion = version ++ patchlevel :: String
|
buildversion = version ++ patchlevel :: String
|
||||||
|
|
||||||
binaryfilename = prettify $ splitAtElement '.' buildversion :: String
|
binaryfilename = prettify $ splitAtElement '.' buildversion :: String
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user