ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | >> IO << | Directory | System | Time | Locale | CPUTime | Random

Module: IO
Function: hPrint
Type: Show a => Handle -> a -> IO ()
Description: hPrint hdl t writes the string representation of t given by the shows function to the file or channel managed by hdl and appends a newline
Related: hGetChar, hGetContents, hGetLine, hPutChar, hPutStr, hPutStrLn

Example 1

Input:

Output: