-
Notifications
You must be signed in to change notification settings - Fork 108
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
Importing Database.Esqueleto confusing in 4.0.0.0 #368
Comments
There is a warning on I'm curious what your workflow is that you missed this warning. |
I work on a large application with hundreds of modules and a lot of dependencies. We use nix for building in CI and our dev environment. The warning became noise in all that log spam. Additionally, the change needed to happen in dependent libraries, so I was trying to patch a dependency rather than our own code, so it just wasn't immediately obvious to me that I needed to update the import. A warning at time-of-breakage (that is, on this release) would have saved me an hour or so. |
Still, I'm not exactly sure what you're proposing or expecting. Do you want for I'd like for |
That pretty much would have avoided the problem for me.
I picked up this branch as I wanted to try the new window function support, so in that sense I'm an outlier - I definitely chose the pre-release branch. Its pretty hard to say if a 3.6 would help others or not. FWIW, I ran into this problem when recompiling persistent-pagination. Considering how that library is impacted by someone upgrading esqueleto might help clarify what you want to do. Appreciate the discussion and hope this helps! |
4.0.0.0 (
esqueleto-next
/ #325) updates Database.Esqueleto to the new syntax. I was migrating some code and struggled with confusing error messages ("Could not deduce (Database.Esqueleto.Internal.Internal.SqlSelect a0 (Entity record)) arising from a use of ‘select’") for some time before realizing I just needed to changeDatabase.Esqueleto
toDatabase.Esqueleto.Legacy
.I know the deprecation warning has been on Experimental forever, and possibly on Database.Esqueleto, but even so this caused me a good hour of frustration.
Is there some way to highlight the change? A migration guide or deprecation warning?
Thanks for all your excellent work!
The text was updated successfully, but these errors were encountered: