foundation-0.0.21: Alternative prelude with batteries and no dependencies

LicenseBSD-style
MaintainerFoundation
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Foundation.IO.Terminal

Description

 
Synopsis

Documentation

putStrLn :: String -> IO () Source #

Print a string with a newline to standard output

putStr :: String -> IO () Source #

Print a string to standard output

stdin :: Handle #

A handle managing input from the Haskell program's standard input channel.

stdout :: Handle #

A handle managing output to the Haskell program's standard output channel.

getArgs :: IO [String] Source #

Get the arguments from the terminal command

exitFailure :: IO a #

The computation exitFailure is equivalent to exitWith (ExitFailure exitfail), where exitfail is implementation-dependent.

exitSuccess :: IO a #

The computation exitSuccess is equivalent to exitWith ExitSuccess, It terminates the program successfully.