Skip to content

Commit d8a87ce

Browse files
committed
add mapInputT_
1 parent 1c2ad91 commit d8a87ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

System/Console/Haskeline/InputT.hs

+5
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ mapInputT f = InputT . mapReaderT (mapReaderT (mapReaderT
189189
(mapReaderT (mapReaderT f))))
190190
. unInputT
191191

192+
mapInputT_ :: (m () -> m ()) -> InputT m () -> InputT m ()
193+
mapInputT_ f = InputT . mapReaderT (mapReaderT (mapReaderT
194+
(mapReaderT (mapReaderT f))))
195+
. unInputT
196+
192197
-- | Read input from 'stdin'.
193198
-- Use terminal-style interaction if 'stdin' is connected to
194199
-- a terminal and has echoing enabled. Otherwise (e.g., if 'stdin' is a pipe), use

0 commit comments

Comments
 (0)