web: fix debug option breakage in Main

This commit is contained in:
Simon Michael 2013-12-08 19:47:52 -08:00
parent 044ba78693
commit 02fea186a3

View File

@ -35,7 +35,7 @@ import Hledger.Web.Options
main :: IO () main :: IO ()
main = do main = do
opts <- getHledgerWebOpts opts <- getHledgerWebOpts
when (debug_ $ cliopts_ opts) $ printf "%s\n" prognameandversion >> printf "opts: %s\n" (show opts) when (debug_ (cliopts_ opts) > 0) $ printf "%s\n" prognameandversion >> printf "opts: %s\n" (show opts)
runWith opts runWith opts
runWith :: WebOpts -> IO () runWith :: WebOpts -> IO ()