Skip to content

parse-error with illegal token in instance declaration #707

Closed
@haucheefa

Description

@haucheefa
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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions