Conversation
10a9e22 to
b73029d
Compare
|
Sorry we're still stuck with GHC 8.10 and I'd like to still keep it. But I don't work with Haskell anymore. @agrue What do you think? |
I don't think it matters to you. You can keep using the old version that's already imported in //third_party. Alternatively, if you want to be sure that we don't break it going forward and the new versions still work on 8.10, somebody should add this version to the build matrix. |
|
It's a bit scary, because this is a dependency of proto-lens. So if proto-lens eventually depends on a new version of ghc-source-gen that only works with GHC 9+, we won't be able to upgrade to that version. And unfortunately the "you can stay on the old version" logic doesn't apply there, because the proto ecosystem keeps evolving (e.g. we just recently had to add support for "proto editions" because proto files we depend on started using those features). So if we have to do a similar thing in the future, we'll be stuck unable to import the new proto-lens version with support for the new features. Unless we try to back-port those features onto the old internal version but... ugh. I don't know how to weigh this against the needs of external users though. If some other maintainer wants to merge this I don't feel like I can stop you. |
I have two points to offer here:
I don't feel strongly enough to advocate for this really. This PR can simply stay open until something changes... |
|
That makes sense to me. Okay, well if you ever do feel strongly about it, I can't really argue against it. |
Update base from >=4.7 to >=4.15 and ghc from >=8.4 to >=9.0 to match the Hackage revision and CI build matrix, which don't support GHC <9.0. Fixes google#128
b73029d to
e495ea1
Compare
|
@jinwoo I rebased this PR. It is good to come clean about the fact that we don't have <9.0 support any longer in the last release anyway. |
e495ea1 to
f169d7e
Compare
f169d7e to
437921b
Compare
|
@blackgnezdo Sorry we're still stuck with 8.10. Can we keep the support for a bit more? Do you have any immediate needs to clean this up? This will be fine as long as we don't import the new changes but I'm a bit worried about the cases where we need to upgrade due to some security vulnerabilities or something. |
That's the thing: the current version in master is broken on 8.10. We can either revive 8.10 support and make all the changes going forward progressively harder, or acknowledge the reality of not supporting anything <9.0 any more as in #129 and then reap the benefits of cleaner code from this PR. |
|
8.10 is broken in master? I thought that the CI was set up for >= 9.0 but the code still worked with 8.10. Is that my misunderstanding? Anyway I do agree that it's good to clean up this old code. I was hesitant just because of our situation here. I'm running the CI now and will merge if it passes. |
#128 is the report which alerted me of this.
Thanks |
Oh, I see. Then this change seems needed. Thanks for making the change. CI passed. Merging now. |
Remove conditional source code for ghc < 9.0