Skip to content

Commit

Permalink
Merge pull request #77 from slamdata/ap-paraff
Browse files Browse the repository at this point in the history
Fix applicative instance for ParAff
  • Loading branch information
garyb authored Oct 23, 2016
2 parents 96e0140 + a3c4d15 commit 8cd780b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Control/Monad/Aff.purs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ instance applyParAff :: Apply (ParAff e) where
putOrKill :: forall a. AVar a -> Either Error a -> Aff e Unit
putOrKill v = either (killVar v) (putVar v)

derive newtype instance applicativeParAff :: Applicative (ParAff e)
instance applicativeParAff :: Applicative (ParAff e) where
pure = ParAff <<< pure

-- | Returns the first value, or the first error if both error.
instance altParAff :: Alt (ParAff e) where
Expand Down

0 comments on commit 8cd780b

Please sign in to comment.