Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yesod-persistent: don't depend on persistent-template if we don't have to #1798

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peti
Copy link

@peti peti commented Mar 30, 2023

If our version of persistent is sufficiently new, then we don't need a dependency on the empty persistent-template package.

…e to

If our version of 'persistent' is sufficiently new, then we don't need a
dependency on the empty 'persistent-template' package.
@@ -13,12 +13,13 @@ homepage: http://www.yesodweb.com/
description: API docs and the README are available at <http://www.stackage.org/package/yesod-persistent>
extra-source-files: README.md ChangeLog.md

flag persistent_has_persistent_template
default: True
Copy link
Member

Choose a reason for hiding this comment

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

IIRC, this should have manual: False, right?

Copy link
Author

Choose a reason for hiding this comment

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

Interesting ... the automatic flag selection doesn't seem to work in stack. At least that is how I interpret the CI failures. Does stack have a different default for manual than cabal-install does?

Copy link
Member

Choose a reason for hiding this comment

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

Stack doesn't do dependency solving, and therefore it would need to be told to override any defaults set in the cabal file.

@peti
Copy link
Author

peti commented Mar 31, 2023 via email

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.

None yet

2 participants