Advertisement
Guest User

purescript instance operator behaviour

a guest
Jul 19th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- this builds fine:
  2. instance semiMonoid :: Semigroup Multiply where
  3.   append  (Multiply a) (Multiply b) = Multiply (a * b)
  4.  
  5. -- But this fails with the error **Unexpected token '(<>)' **
  6. instance semiMonoid :: Semigroup Multiply where
  7.   (<>)  (Multiply a) (Multiply b) = Multiply (a * b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement