-
Notifications
You must be signed in to change notification settings - Fork 48
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
build with ghc-9.2 #167
base: master
Are you sure you want to change the base?
build with ghc-9.2 #167
Conversation
deriving instance Semialign Option | ||
deriving instance Align Option | ||
deriving instance Unalign Option | ||
deriving instance Zip Option | ||
deriving instance Repeat Option | ||
deriving instance Unzip Option | ||
#endif | ||
|
||
{- | ||
deriving instance SemialignWithIndex () Option |
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.
Do you want to move the #endif
to below this block comment, so that if it's ever uncommented it will do the right thing?
_ -> Skip (sa, sb, Nothing, False) | ||
#endif |
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.
Why did you need to do this? It compiles fine for me without making this change.
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.
Without this I get a warning from GHC about a redundant pattern match. Newer versions of GHC are smarter in recognizing those than previous versions.
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'd rather match above with av@(Just x)
It wasn't obvious to me why the branch is redundant.
tested with
cabal build all --allow-newer=base,template-haskell,ghc-prim,ghc-bignum cabal test all --allow-newer=base,template-haskell,ghc-prim,ghc-bignum
This currently still requires the following source dependencies when building with ghc-9.2