Skip to content
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

Fix all GHC warnings #955

Merged
merged 11 commits into from
Nov 15, 2022
Merged

Fix all GHC warnings #955

merged 11 commits into from
Nov 15, 2022

Conversation

Minoru
Copy link
Collaborator

@Minoru Minoru commented Oct 2, 2022

This fixes warnings of all GHC versions we have in CI, and also adds -Werror to CI so we don't backslide on this.

Closes #939. I decided against dropping older GHC versions. Instead, I simply document the current state of things: Hakyll already fails to build with GHC 8.4 due to template-haskell requirement, so our CI will only test 8.6+. My goal for now is to keep each GHC version supported for as long as it's feasible, i.e. our dependencies support it and it doesn't create too much work for us to support it too.

@Minoru Minoru force-pushed the feature/fix-warnings branch 2 times, most recently from e01ff99 to 921a6e7 Compare October 2, 2022 18:52
@Minoru Minoru marked this pull request as draft October 2, 2022 18:52
@Minoru Minoru force-pushed the feature/fix-warnings branch 2 times, most recently from f38bf46 to c76b5a6 Compare October 2, 2022 19:14
@Minoru
Copy link
Collaborator Author

Minoru commented Oct 2, 2022

Windows build fails because of unlucky timing: hfsnotify 0.4.0.1 is currently broken on Windows. The fixes are already in master though (haskell-fswatch/hfsnotify#107), so I'll wait for a new release and re-start the CI runs here.

Hakyll already failed to build on earlier versions due to the
template-haskell requirement, and nobody complained about that, so
I assume nobody cares if the support is properly dropped.
@Minoru Minoru force-pushed the feature/fix-warnings branch 3 times, most recently from 8d008ff to 71c7562 Compare November 3, 2022 21:14
This is only done for combinations where we aren't at fault, e.g. an
older GHC doesn't work on a newer macOS.
@Minoru Minoru marked this pull request as ready for review November 4, 2022 15:24
@Minoru
Copy link
Collaborator Author

Minoru commented Nov 4, 2022

This finally passes CI! I'll wait a day or two, do a self-review, and merge. Reviews from others are welcome too!

@Minoru
Copy link
Collaborator Author

Minoru commented Nov 15, 2022

Well this looks good enough, even if I say so myself :) Let's merge it!

@Minoru Minoru merged commit 6b0ccab into jaspervdj:master Nov 15, 2022
@Minoru Minoru deleted the feature/fix-warnings branch November 15, 2022 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify what compier versions are supported
1 participant