IOTasks
Safe HaskellNone

Test.IOTasks.MonadTeletype

Documentation

class Monad m => MonadTeletype (m :: Type -> Type) 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 () .

Instances

Instances details
MonadTeletype IO Source # 
Instance details

Defined in Test.IOTasks.MonadTeletype

Methods

putChar :: Char -> IO () Source #

getChar :: IO Char Source #

putStr :: String -> IO () Source #

putStrLn :: String -> IO () Source #

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

getLine :: IO String Source #

readLn :: Read a => IO a Source #

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

MonadTeletype IOrep Source # 
Instance details

Defined in Test.IOTasks.IOrep

Methods

putChar :: Char -> IOrep () Source #

getChar :: IOrep Char Source #

putStr :: String -> IOrep () Source #

putStrLn :: String -> IOrep () Source #

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

getLine :: IOrep String Source #

readLn :: Read a => IOrep a Source #

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