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

Code generation fails for template-haskell == 2.10.0.0 #2

Open
cjeast opened this issue May 8, 2015 · 0 comments
Open

Code generation fails for template-haskell == 2.10.0.0 #2

cjeast opened this issue May 8, 2015 · 0 comments

Comments

@cjeast
Copy link

cjeast commented May 8, 2015

Generated code fails with the message:

Not in scope: data constructor ‘ClassP’
Perhaps you meant one of these:
  ‘ClassD’ (imported from Language.Haskell.TH.Syntax),
  ‘ClassI’ (imported from Language.Haskell.TH.Syntax),
  variable ‘classP’ (imported from Language.Haskell.TH)

This seems to have been caused by a change in Language.Haskell.TH.Syntax, specifically, the following from v 2.9.0.0 does not exist in v 2.10.0.0

data Pred = ClassP Name [Type] -- ^ @eq (Int, a)@
| EqualP Type Type -- ^ @f a ~ Bool@
deriving( Show, Eq, Data, Typeable )

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

No branches or pull requests

1 participant