-
Notifications
You must be signed in to change notification settings - Fork 107
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
Remove the type class #113
Conversation
Fantastic ❤️ |
@bitemyapp This is a big breaking change. Think we should lodge this in a 3.0 release or 2.8? |
@parsonsmatt Based on http://hackage.haskell.org/package/esqueleto, I'd say this is a 3.0. |
@akurilin I know y'all use this library a lot. Would this change harm your code base? I'm going to check with Lumi's codebase as well. For some additional motivation for this change, I'm working on some complicated SQL logic. Somehow, the type is getting fixed to |
@parsonsmatt This is a breaking change for us (Freckle). Though it is a breaking change I'd welcome. |
I think there are only two places we'd need to update. All of our other helpers use concrete |
Yeah, that's exactly the change we'd have to make. We wouldn't lose any functionality, and the upgrade path is like a one-liner. |
I use a little bit of esqueleto in about a dozen different projects. I've never seen any value in having the typeclass since there's only one possible instance of it. I would be happy to see it go away. |
@parsonsmatt FYI, @cdparks has already fixed this in our codebase. All uses were unnecessary. The transition will now be painless. |
This PR removes the type class from
esqueleto
and simplifies all relevant types.