fix some warnings
This commit is contained in:
parent
0e8433fbce
commit
754cc59804
@ -17,14 +17,17 @@ import Hledger.Data.Utils
|
|||||||
|
|
||||||
-- version and PATCHLEVEL are set by the make process
|
-- version and PATCHLEVEL are set by the make process
|
||||||
|
|
||||||
|
version :: String
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
|
|
||||||
|
patchlevel :: String
|
||||||
#ifdef PATCHLEVEL
|
#ifdef PATCHLEVEL
|
||||||
patchlevel = "." ++ show PATCHLEVEL -- must be numeric !
|
patchlevel = "." ++ show (PATCHLEVEL :: Int) -- must be numeric !
|
||||||
#else
|
#else
|
||||||
patchlevel = ""
|
patchlevel = ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
buildversion :: String
|
||||||
buildversion = version ++ patchlevel :: String
|
buildversion = version ++ patchlevel :: String
|
||||||
|
|
||||||
-- | Given a program name, return a human-readable version string. For
|
-- | Given a program name, return a human-readable version string. For
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user