| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Test.IOTasks.MonadTeletype
Documentation
class Monad m => MonadTeletype m where Source #
Methods
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 IOrep Source # | |
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 # | |
| MonadTeletype IO Source # | |
Defined in Test.IOTasks.MonadTeletype | |