-
Notifications
You must be signed in to change notification settings - Fork 1
Make import of SqlBackend
fields explicit
#3
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
Conversation
Co-authored-by: Restyled.io <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm- I guess Database.Persist.Sql
stopped exporting these fields? I wonder why?
@z0isch good question! Seems to have happened in this PR: yesodweb/persistent#1225 Maybe this is indicating that we're not building this totally correctly... |
I'll dig in a little more before merging this. |
Yeah it looks like we should maybe switch to the mkSqlBackend function? |
Just a headsup that getting green CI doesn't always indicate you've fixed something like this. In most projects, we run CI with the latest LTS resolver. Sometimes we also build with older resolvers. We rarely have a CI job with That means that if we have a lax upper bound (which we're moving to) we could see breakage with a newer nightly/hackage dependency that won't reproduce on CI. I'm stilling thinking of the best way to address that fact, for now it's kind of just a "be advised" situation like this. Making a nightly CI job part of our prescribed suites could be good enough (latest Hackage feels like overkill). |
@z0isch I think that that constructor function may not be too great here. Since our pattern to modify an existing backend creating a new one feels tedious and requires me to use those internal fields anyways (to map all existing, required fields that we don't modify over -- looks like 10 fields). @pbrisbin I tried constraining my local build to take a fresher persistent ( |
@mjgpy3 I'd imagine that works. I would've probably just built with |
Per this stackage issue: commercialhaskell/stackage#6032