web: avoid a build failure when switching from -fweb610 to -fweb

This commit is contained in:
Simon Michael 2010-07-10 14:35:52 +00:00
parent 689e3f8354
commit e3a2370728

View File

@ -135,7 +135,7 @@ data Opt =
MonthlyOpt |
QuarterlyOpt |
YearlyOpt |
#ifdef WEB
#if defined(WEB) || defined(WEB610)
BaseUrl {value::String} |
Port {value::String} |
#endif
@ -247,7 +247,7 @@ displayExprFromOpts opts = listtomaybe $ optValuesForConstructor Display opts
listtomaybe [] = Nothing
listtomaybe vs = Just $ last vs
#ifdef WEB
#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