SHARE
TWEET

purescript instance operator behaviour

a guest Jul 19th, 2019 87 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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top