-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support persistent-2.14
#66
Conversation
stack.yaml
Outdated
extra-deps: | ||
- persistent-2.14.0.0 |
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.
this is how i tested, can definitely back out
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.
IIUC, persistent-2.14
has landed in nightly
(we got a notification about it breaking us), so the stack-nightly.yaml
file should be a good test (and is run on CI).
@@ -134,6 +135,7 @@ nodeKeyed | |||
, PersistEntityBackend a ~ SqlBackend | |||
, PersistEntity a | |||
, Typeable a | |||
, GraphulaSafeToInsert a |
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.
so, technically, this is a change to the signature of the function, which is a breaking change
but also technically, it's only a breaking change if persistent
itself is updated to 2.14
. Otherwise this evaluates out to a ()
and should discharge
I can also do another approach where I CPP this in at each use-site, which will prevent the API from changing for users unless they are on persistent-2.14
anyway.
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.
I'm personally OK with us only doing a minor bump ourselves given this nuance. Curious what other Frecklers thing.
I don't think peppering the CPP around is worthwhile. I think we can either bend the rules or just do a major bump.
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.
Looks good to me! I'm gonna bring in @pbrisbin for the stack.yaml question.
Co-authored-by: Michael Gilliland <mjg.py3@gmail.com>
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.
If I'm correct about this being exercised via stack-nightly.yaml
, then I would indeed back out the stack.yaml
change.
In other projects (e.g. yesod-auth-oauth) I've actually made a special stack-{dependency}-{version}.yaml
and added it to the matrix, if I'm looking to "test ahead". So I might consider that if I'm not correct about how this is playing out in nightly
.
Either way, not a big deal.
@@ -134,6 +135,7 @@ nodeKeyed | |||
, PersistEntityBackend a ~ SqlBackend | |||
, PersistEntity a | |||
, Typeable a | |||
, GraphulaSafeToInsert a |
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.
I'm personally OK with us only doing a minor bump ourselves given this nuance. Curious what other Frecklers thing.
I don't think peppering the CPP around is worthwhile. I think we can either bend the rules or just do a major bump.
Co-authored-by: patrick brisbin <pbrisbin@gmail.com>
…a into matt/persistent-2.14
Hmm, GHC 8.6.5 and below don't support |
Ugh, I'm actually not a fan of this "Approve and run" stuff. Sorry for the delay, I'm back from PTO now, so will be more responsive. |
Well that's an interesting failure to only get in one resolver 🤔 is that a new (or improved) warning? I don't mind disabling it as workaround -- I find the |
It may also be a problem with how |
Anything I can do to help move this forward? |
Sorry I lost track of this. I think we were waiting on you fixing the stack-nightly build-error; perhaps by disabling a warning by pragma in the |
I think it will be very inefficient for me to fix a CI problem since I need manual approval for each CI run. Is there an easy way for me to test that locally? |
I thought I only had to approve a PR/contributor once. It's every time? Sigh.
As far as I can tell, CI just runs |
Hmm. |
Restyled is not a Required Status, so all good there. |
Thanks! |
This PR provides support for
persistent-2.14
by CPPing in aGraphulaSafeToInsert
type that is either an alias forSafeToInsert
orconst () :: Constraint
.Fixes #65