Skip to content

interactLn

Motivation

Extension of interact for stateless repls that process input line by line.

Proposal

interactLn :: (String -> String) -> IO ()
interactLn f = interact $ unlines . map f . lines
Edited by Evgeny Poberezkin
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information