@@ -33,7 +33,6 @@ import Distribution.Text
33
33
import Distribution.Pretty (prettyShow )
34
34
import Distribution.Version
35
35
import Distribution.ModuleName as ModuleName
36
- import Distribution.Types.CondTree
37
36
import Distribution.Types.UnqualComponentName
38
37
39
38
-- hackage-server
@@ -77,7 +76,7 @@ data PackageRender = PackageRender {
77
76
rendUploadInfo :: (UTCTime , Maybe UserInfo ),
78
77
rendUpdateInfo :: Maybe (Int , UTCTime , Maybe UserInfo ),
79
78
rendPkgUri :: String ,
80
- rendFlags :: [Flag ],
79
+ rendFlags :: [PackageFlag ],
81
80
-- rendOther contains other useful fields which are merely strings, possibly empty
82
81
-- for example: description, home page, copyright, author, stability
83
82
-- If PackageRender is the One True Resource Representation, should they
@@ -287,7 +286,7 @@ evalCondition :: [(FlagName,Bool)] -> Condition ConfVar -> Maybe Bool
287
286
evalCondition flags cond =
288
287
let eval = evalCondition flags
289
288
in case cond of
290
- Var (Flag f) -> lookup f flags
289
+ Var (PackageFlag f) -> lookup f flags
291
290
Var _ -> Nothing
292
291
Lit b -> Just b
293
292
CNot c -> not `fmap` eval c
0 commit comments