Skip to content

Commit dff50e9

Browse files
committed
simplify explicit (>>) definition
1 parent bc810c5 commit dff50e9

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Control/Monad/Trans/Reader.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,7 @@ instance (Monad m) => Monad (ReaderT r m) where
166166
a <- runReaderT m r
167167
runReaderT (k a) r
168168
{-# INLINE (>>=) #-}
169-
#if MIN_VERSION_base(4,8,0)
170169
(>>) = (*>)
171-
#else
172-
m >> k = ReaderT $ \ r -> runReaderT m r >> runReaderT k r
173-
#endif
174170
{-# INLINE (>>) #-}
175171
#if !(MIN_VERSION_base(4,13,0))
176172
fail msg = lift (fail msg)

0 commit comments

Comments
 (0)