Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Derive Alt, Plus, and Alternative instances for ParIO #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Control/Monad/IO.purs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ derive newtype instance applicativeParIO :: Applicative ParIO
derive newtype instance semigroupParIO :: (Semigroup a) => Semigroup (ParIO a)
derive newtype instance monoidParIO :: (Monoid a) => Monoid (ParIO a)

derive newtype instance altParIO :: Alt ParIO
derive newtype instance plusParIO :: Plus ParIO
derive newtype instance alternativeParIO :: Alternative ParIO

instance monadAffIO :: MonadAff eff IO where
liftAff = wrap <<< unsafeCoerceAff

Expand Down