Skip to content

Commit 0c815bf

Browse files
authored
Define >> for Of in terms of *> (#118)
1 parent b6ec199 commit 0c815bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Data/Functor/Of.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ instance Monoid a => Applicative (Of a) where
7878
instance Monoid a => Monad (Of a) where
7979
return = pure
8080
{-#INLINE return #-}
81-
(m :> _) >> (m' :> y) = mappend m m' :> y
81+
(>>) = (*>)
8282
{-#INLINE (>>) #-}
8383
(m :> x) >>= f = let m' :> y = f x in mappend m m' :> y
8484
{-#INLINE (>>=) #-}

0 commit comments

Comments
 (0)