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

Clean warnings in persistent #1448

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Clean warnings in persistent #1448

wants to merge 2 commits into from

Conversation

parsonsmatt
Copy link
Collaborator

Before submitting your PR, check that you've:

  • Documented new APIs with Haddock markup
  • Added @since declarations to the Haddock
  • Ran stylish-haskell on any changed files.
  • Adhered to the code style (see the .editorconfig file for details)

After submitting your PR:

  • Update the Changelog.md file with a link to your PR
  • Bumped the version number if there isn't an (unreleased) on the Changelog
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts)

Comment on lines +14 to +15
, modifyRunOnException
, setRunOnException
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, this warrants a minor bump!

@@ -44,6 +44,7 @@ import Data.Time (defaultTimeLocale)
import Data.Time.Clock.POSIX (posixSecondsToUTCTime)
#endif

import Prelude
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why import this? There is no NoImplicitPrelude pragma in there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a trick to get fewer warnings over time. By putting Prelude import last, you don't get a warning if you have import Data.Semigroup (Semigroup(..)) above. This is nice for reducing warnings when compiling with different versions of base where more and more things are added to Prelude.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, didn't know that. I skimmed over this PR, looks fine. It'd be good to get this in, so I can build on it.

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.

2 participants