Skip to content

Show the system dependencies in the package dependencies page - #1385

Draft
tchoutri wants to merge 1 commit into
developmentfrom
329-show-system-dependencies-in-dependencies-page
Draft

tchoutri wants to merge 1 commit into
developmentfrom
329-show-system-dependencies-in-dependencies-page

Conversation

@tchoutri

@tchoutri tchoutri commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

This PR displays system dependencies in a package's dependencies pages. The layout is tentative, as it doesn't handle well pathological cases like the case of text's C++ dependency.

Screenshots

cardano-crypto-class

Screenshot 2026-10-31 at 22-57-35 @cardano › cardano-crypto-class › dependencies — Flora pm

text

Screenshot 2026-10-31 at 22-57-11 @hackage › text › dependencies — Flora pm

rts

Screenshot 2026-10-31 at 22-56-30 @hackage › rts › dependencies — Flora pm

Contributor checklist

@tchoutri
tchoutri force-pushed the 329-show-system-dependencies-in-dependencies-page branch from 3946b2e to a13fee1 Compare October 31, 2026 22:09
@tchoutri
tchoutri marked this pull request as draft October 31, 2026 22:12
@tchoutri
tchoutri force-pushed the 329-show-system-dependencies-in-dependencies-page branch from a13fee1 to 57f4ba6 Compare November 1, 2026 10:21
Comment on lines +13 to +24
.systemDependencies {
display: grid;
grid-template-columns: max-content max-content 1fr;
gap: var(--space-gutter-small) var(--space-gutter);
}

.systemDependencies > li {
display: grid;
grid-column: 1 / -1;
grid-template-columns: subgrid;
align-items: center;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super confident about this grid layout…

Comment on lines +49 to +61
instance Display (Condition ConfVar) where
displayBuilder = displayBuilder . go TopLevel
where
go :: ConditionContext -> Condition ConfVar -> Text
go _ (Var confVar) = display confVar
go _ (Lit b) = if b then "true" else "false"
go _ (CNot condition) = "!" <> go InNegation condition
go context (CAnd left right) =
parenthesiseUnless (context `elem` [TopLevel, InConjunction]) $
go InConjunction left <> " && " <> go InConjunction right
go context (COr left right) =
parenthesiseUnless (context `elem` [TopLevel, InDisjunction]) $
go InDisjunction left <> " || " <> go InDisjunction right

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pity that Cabal-syntax doesn't seem to export those.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display system libraries in the dependencies page

1 participant