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

FIxes for upcoming ghc version #77

Closed
wants to merge 2 commits into from
Closed

Conversation

erikd
Copy link
Contributor

@erikd erikd commented May 11, 2017

No description provided.

@@ -13,6 +14,9 @@ import Hedgehog.Internal.Discovery
import Hedgehog.Internal.Property

import Language.Haskell.TH
#if MIN_VERSION_template_haskell(2, 12, 0)
hiding (TExpQ)
#endif
import Language.Haskell.TH.Syntax
Copy link
Member

Choose a reason for hiding this comment

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

This was lazy on my part, they should have been explicit imports from the beginning (then CPP wouldn't be required here.)

Copy link
Contributor Author

@erikd erikd May 12, 2017

Choose a reason for hiding this comment

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

I can make all the imports qualified or explicit, either just for this file or for all files. Your choice.

import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import Language.Haskell.TH (Exp (..), Q, TExp, location, runIO)
import Language.Haskell.TH.Syntax (Loc (..), mkName, unTypeQ, unsafeTExpCoerce)
Copy link
Member

Choose a reason for hiding this comment

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

Just a minor nit, can you remove the space between Exp and (..) to match the style of the rest of the project (same for Loc)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@jacobstanley
Copy link
Member

👍 after nitpick

@erikd
Copy link
Contributor Author

erikd commented May 16, 2017

Fixed nitpicks, but I can't merge this.

@jacobstanley
Copy link
Member

Rebased and merged 🌵

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.

None yet

2 participants