avoid build failure when switching -DWEB on and off

This commit is contained in:
Simon Michael 2010-07-13 01:05:13 +00:00
parent e3a2370728
commit 7e161bbebf

View File

@ -135,10 +135,8 @@ data Opt =
MonthlyOpt |
QuarterlyOpt |
YearlyOpt |
#if defined(WEB) || defined(WEB610)
BaseUrl {value::String} |
Port {value::String} |
#endif
Help |
HelpOptions |
HelpAll |
@ -247,7 +245,6 @@ displayExprFromOpts opts = listtomaybe $ optValuesForConstructor Display opts
listtomaybe [] = Nothing
listtomaybe vs = Just $ last vs
#if defined(WEB) || defined(WEB610)
-- | Get the value of the (last) baseurl option, if any.
baseUrlFromOpts :: [Opt] -> Maybe String
baseUrlFromOpts opts = listtomaybe $ optValuesForConstructor BaseUrl opts
@ -262,7 +259,6 @@ portFromOpts opts = listtomaybeint $ optValuesForConstructor Port opts
listtomaybeint [] = Nothing
listtomaybeint vs = Just $ read $ last vs
#endif
-- | Get a maybe boolean representing the last cleared/uncleared option if any.
clearedValueFromOpts opts | null os = Nothing