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 |
|
MonthlyOpt |
|
||||||
QuarterlyOpt |
|
QuarterlyOpt |
|
||||||
YearlyOpt |
|
YearlyOpt |
|
||||||
#ifdef WEB
|
#if defined(WEB) || defined(WEB610)
|
||||||
BaseUrl {value::String} |
|
BaseUrl {value::String} |
|
||||||
Port {value::String} |
|
Port {value::String} |
|
||||||
#endif
|
#endif
|
||||||
@ -247,7 +247,7 @@ displayExprFromOpts opts = listtomaybe $ optValuesForConstructor Display opts
|
|||||||
listtomaybe [] = Nothing
|
listtomaybe [] = Nothing
|
||||||
listtomaybe vs = Just $ last vs
|
listtomaybe vs = Just $ last vs
|
||||||
|
|
||||||
#ifdef WEB
|
#if defined(WEB) || defined(WEB610)
|
||||||
-- | Get the value of the (last) baseurl option, if any.
|
-- | Get the value of the (last) baseurl option, if any.
|
||||||
baseUrlFromOpts :: [Opt] -> Maybe String
|
baseUrlFromOpts :: [Opt] -> Maybe String
|
||||||
baseUrlFromOpts opts = listtomaybe $ optValuesForConstructor BaseUrl opts
|
baseUrlFromOpts opts = listtomaybe $ optValuesForConstructor BaseUrl opts
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user