Skip to content

Commit

Permalink
Define >>.
Browse files Browse the repository at this point in the history
  • Loading branch information
robrix committed Mar 15, 2020
1 parent 82d52ac commit 1adb810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Control/Carrier/State/Lazy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ instance Monad m => Monad (StateC s m) where
runState s' (k a')
{-# INLINE (>>=) #-}

(>>) = (*>)
{-# INLINE (>>) #-}

instance (Alternative m, Monad m) => Alternative (StateC s m) where
empty = lift empty
{-# INLINE empty #-}
Expand Down

0 comments on commit 1adb810

Please sign in to comment.