Closed
Description
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
Labels
No labels