fix some warnings

This commit is contained in:
Simon Michael 2011-05-21 02:48:20 +00:00
parent 0e8433fbce
commit 754cc59804

View File

@ -17,14 +17,17 @@ import Hledger.Data.Utils
-- version and PATCHLEVEL are set by the make process
version :: String
version = "0.14.0"
patchlevel :: String
#ifdef PATCHLEVEL
patchlevel = "." ++ show PATCHLEVEL -- must be numeric !
patchlevel = "." ++ show (PATCHLEVEL :: Int) -- must be numeric !
#else
patchlevel = ""
#endif
buildversion :: String
buildversion = version ++ patchlevel :: String
-- | Given a program name, return a human-readable version string. For