web: better web and webyesod flag and --version descriptions

This commit is contained in:
Simon Michael 2010-07-01 20:13:23 +00:00
parent ac1dbb07ef
commit 68e8ea7d53
3 changed files with 8 additions and 11 deletions

View File

@ -20,8 +20,7 @@ module Hledger.Cli.Commands.All (
#endif
#if defined(WEB)
module Hledger.Cli.Commands.Web,
#endif
#if defined(WEBYESOD)
#elif defined(WEBYESOD)
module Hledger.Cli.Commands.WebYesod,
#endif
#ifdef CHART
@ -42,8 +41,7 @@ import Hledger.Cli.Commands.Vty
#endif
#if defined(WEB)
import Hledger.Cli.Commands.Web
#endif
#if defined(WEBYESOD)
#elif defined(WEBYESOD)
import Hledger.Cli.Commands.WebYesod
#endif
#ifdef CHART
@ -67,8 +65,7 @@ tests_Hledger_Commands = TestList
-- #endif
-- #if defined(WEB)
-- ,Hledger.Cli.Commands.Web.tests_Web
-- #endif
-- #if defined(WEBYESOD)
-- #elif defined(WEBYESOD)
-- ,Hledger.Cli.Commands.WebYesod.tests_Web
-- #endif
-- #ifdef CHART

View File

@ -70,8 +70,8 @@ configflags = tail [""
,"vty"
#endif
#if defined(WEB)
,"web (using simpleserver)"
#elif defined(WEBHAPPSTACK)
,"web (using happstack)"
,"web (using loli/hsp/simpleserver)"
#elif defined(WEBYESOD)
,"web (using yesod/hamlet/simpleserver)"
#endif
]

View File

@ -40,11 +40,11 @@ flag vty
default: False
flag web
description: enable the web ui (using loli, hack, simpleserver)
description: enable the web ui (using loli/hsp/simpleserver, works with ghc 6.10)
default: False
flag webyesod
description: enable the web ui (using yesod, wai, simpleserver)
description: enable the web ui (using yesod/hamlet/simpleserver, requires ghc 6.12)
default: False
flag chart