Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Test.IOSpec.Teletype
Description
A pure specification of getChar and putChar.
Synopsis
- data Teletype a
- getChar :: forall (f :: Type -> Type). Teletype :<: f => IOSpec f Char
- putChar :: forall (f :: Type -> Type). Teletype :<: f => Char -> IOSpec f ()
- putStr :: forall (f :: Type -> Type). Teletype :<: f => String -> IOSpec f ()
- putStrLn :: forall (f :: Type -> Type). Teletype :<: f => String -> IOSpec f ()
- getLine :: forall (f :: Type -> Type). Teletype :<: f => IOSpec f String
The IOTeletype monad
Pure getChar and putChar
getChar :: forall (f :: Type -> Type). Teletype :<: f => IOSpec f Char Source #
The getChar
function can be used to read a character from the
teletype.