IOTasks-2.2.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.IOTasks.MonadTeletype

Documentation

class Monad m => MonadTeletype m where Source #

Minimal complete definition

putChar, getChar

Methods

putChar :: Char -> m () Source #

getChar :: m Char Source #

putStr :: String -> m () Source #

putStrLn :: String -> m () Source #

print :: Show a => a -> m () Source #

getLine :: m String Source #

readLn :: Read a => m a Source #

hSetBuffering :: Handle -> BufferMode -> m () Source #

for compatibility with regular IO programs.

Defaults to hSetBuffering _ _ = pure () .