-
Notifications
You must be signed in to change notification settings - Fork 203
Support Cabal-3.16 #1419
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
base: master
Are you sure you want to change the base?
Support Cabal-3.16 #1419
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,7 +250,9 @@ instance SafeCopy CompilerFlavor where | |
putCopy JHC = contain $ putWord8 7 | ||
putCopy LHC = contain $ putWord8 8 | ||
putCopy UHC = contain $ putWord8 9 | ||
#if !MIN_VERSION_Cabal_syntax(3,16,0) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it make sense to drop support for HaskellSuite as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dunno, this is just a minimal patch to get Hackage Server building. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no mention of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: the safe-copy instances are part of acid-state persistence. Hopefully this won't cause problems with migration, but it could (it's not the same as adding constructor, like with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I see:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ulysses4ever that's a breaking change in library API. It's significant change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair point, thank you! Will try to adjust the process so that we get all API changes marked as significant. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, removing There is e.g. |
||
putCopy (HaskellSuite s) = contain $ putWord8 10 >> safePut s | ||
#endif | ||
putCopy GHCJS = contain $ putWord8 11 | ||
putCopy Eta = contain $ putWord8 12 | ||
#if MIN_VERSION_Cabal_syntax(3,12,1) | ||
|
@@ -270,7 +272,9 @@ instance SafeCopy CompilerFlavor where | |
7 -> return JHC | ||
8 -> return LHC | ||
9 -> return UHC | ||
#if !MIN_VERSION_Cabal_syntax(3,16,0) | ||
10 -> return HaskellSuite <*> safeGet | ||
#endif | ||
11 -> return GHCJS | ||
12 -> return Eta | ||
#if MIN_VERSION_Cabal_syntax(3,12,1) | ||
|
@@ -411,7 +415,9 @@ instance Arbitrary CompilerFlavor where | |
, pure JHC | ||
, pure LHC | ||
, pure UHC | ||
#if !MIN_VERSION_Cabal_syntax(3,16,0) | ||
, pure HaskellSuite <*> vectorOf 3 (choose ('A', 'Z')) | ||
#endif | ||
, pure GHCJS | ||
, pure Eta | ||
#if MIN_VERSION_Cabal_syntax(3,12,1) | ||
|
Uh oh!
There was an error while loading. Please reload this page.