web: avoid a build failure when switching from -fweb610 to -fweb
This commit is contained in:
parent
689e3f8354
commit
e3a2370728
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user