Safe Haskell | None |
---|
Documentation
class Monad m => MonadTeletype (m :: Type -> Type) where Source #
putChar :: Char -> m () Source #
putStr :: String -> m () Source #
putStrLn :: String -> m () Source #
print :: Show a => a -> m () Source #
readLn :: Read a => m a Source #
hSetBuffering :: Handle -> BufferMode -> m () Source #
for compatibility with regular IO programs.
Defaults to
hSetBuffering _ _ = pure ()
.
Instances
MonadTeletype IO Source # | |
Defined in Test.IOTasks.MonadTeletype | |
MonadTeletype IOrep Source # | |
Defined in Test.IOTasks.IOrep 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 # |