Skip to content

parse-error with illegal token in instance declaration #707

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

Closed
haucheefa opened this issue Jun 7, 2015 · 1 comment
Closed

parse-error with illegal token in instance declaration #707

haucheefa opened this issue Jun 7, 2015 · 1 comment

Comments

@haucheefa
Copy link

instance (Monoid a) => Applicative (Either2 a) where
  pure = Right2
  Right2 f <*> Right2 a = Right2 (f a)
  Left2  e <*> Right2 _ = Left2 e
  Right2 _ <*> Left2 e  = Left2 e
  Left2 e1 <*> Left2 e2 = Left2 (mappend e1 e2)

I get the following error message

Illegal token: =>
haskell-indentation-parse-error: No catch for tag: parse-error, "Illegal token: =>"

I am using current head of master branch (commit 4291cb9).

@gracjan
Copy link
Contributor

gracjan commented Jun 7, 2015

Thanks for noticing this!

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

2 participants