print

print :: Show a => a -> IO ()
base Prelude, base System.IO
The print function outputs a value of any printable type to the standard output device. Printable types are those that are instances of class Show; print converts values to strings for output using the show operation and adds a newline. For example, a program to print the first 20 integers and their powers of 2 could be written as: > main = print ([(n, 2^n) | n <- [0..19]])
printf :: PrintfType r => String -> r
base Text.Printf
Format a variable number of arguments with the C-style formatting string. The return value is either String or (IO a). The format string consists of ordinary characters and /conversion specifications/, which specify how to format one of the arguments to printf in the output string. A conversion specification begins with the character %, followed by one or more of the following flags: > - left adjust (default is right adjust) > + always use a sign (+ or -) for signed conversions > 0 pad with zeroes rather than spaces followed optionally by a field width: > num field width > * as num, but taken from argument list followed optionally by a precision: > .num precision (number of decimal places) and finally, a format character: > c character Char, Int, Integer, ... > d decimal Char, Int, Integer, ... > o octal Char, Int, Integer, ... > x hexadecimal Char, Int, Integer, ... > X hexadecimal Char, Int, Integer, ... > u unsigned decimal Char, Int, Integer, ... > f floating point Float, Double > g general format float Float, Double > G general format float Float, Double > e exponent format float Float, Double > E exponent format float Float, Double > s string String Mismatch between the argument types and the format string will cause an exception to be thrown at runtime. Examples: > > printf "%d\n" (23::Int) > 23 > > printf "%s %s\n" "Hello" "World" > Hello World > > printf "%.2f\n" pi > 3.14
package printf-mauke
package
printTestCase :: Testable prop => String -> prop -> Property
QuickCheck Test.QuickCheck.Property, QuickCheck Test.QuickCheck
Prints a message to the terminal as part of the counterexample.
package printxosd
package
Simple tool to display some text on an on-screen display $ printxosd &quot;this is some text&quot; Version 0.1
class PrintfArg a
base Text.Printf
class PrintfType t
base Text.Printf
The PrintfType class provides the variable argument magic for printf. Its implementation is intentionally not visible from this module. If you attempt to pass an argument of a type which is not an instance of this class to printf or hPrintf, then the compiler will report it as a missing instance of PrintfArg.
module Text.Printf
base Text.Printf
A C printf like formatter.
package Printf-TH
package
hPrint :: Show a => Handle -> a -> IO ()
base System.IO
Computation 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. This operation may fail with: * System.IO.Error.isFullError if the device is full; or * System.IO.Error.isPermissionError if another system resource limit would be exceeded.
hPrintf :: HPrintfType r => Handle -> String -> r
base Text.Printf
Similar to printf, except that output is via the specified Handle. The return type is restricted to (IO a).
class HPrintfType t
base Text.Printf
The HPrintfType class provides the variable argument magic for hPrintf. Its implementation is intentionally not visible from this module.
isPrint :: Char -> Bool
base Data.Char
Selects printable Unicode characters (letters, numbers, marks, punctuation, symbols and spaces).
package ansi-wl-pprint
package
This is a pretty printing library based on Wadler's paper &quot;A Prettier Printer&quot;. It has been enhanced with support for ANSI terminal colored output using the ansi-terminal package. Version 0.6.7.1
package bamboo-theme-blueprint
package
bamboo blueprint theme Version 2010.2.25.1
package Blueprint
package
Preview of a new build system. Version 0.1
package BluePrintCSS
package
The library helps to format html documents using popular BluePrint CSS framework http://www.blueprintcss.org/. Currently, Blaze and HSX html generators are supported (note blaze and hsx flags). See repository for complex examples. Version 0.1
package data-pprint
package
Prettyprint and compare Data values. * Size limit for the output * Time limit for the computation * Escape exceptions * Do not escape unicode characters * Comparison: Highlight the first difference * Comparison: Yes, No or Maybe results Probably you need only the pprint and '(===)' functions from the Data.PPrint module. Usage examples: > pprint [1..] > pprintTo 10000 $ repeat [1..] > pprint $ iterate (*10) 1 > pprint $ map length $ replicate 5 [1..] ++ repeat [] > pprint [2 `div` 0, error &quot;xxx&quot;, 18, 4 `div` 0] > [1..10] === reverse [10,9..1] > [1..10] === reverse [10..1] > reverse [10..] === [1..] > [1..] === [1..99] ++ [101..] > ([1..], [1..]) === ([1..], [1..100]) > (error &quot;x&quot;, [1..]) === (0 `div` 0, reverse [1..]) > error (&quot;xx&quot; ++ show (length [1..])) === 1 > error (&quot;xx&quot; ++ error &quot;yy&quot;) === 1 > (error $ unlines $ replicate 300 &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;) === 1 > pprint ['a'..] > pprint $ &quot;hello&quot; ++ [error &quot;x&quot;] ++ &quot;world!&quot; See also http://pnyf.inf.elte.hu/fp/Show_en.xml Changes since 0.1: Refactoring, proper handling of nested errors Version 0.2.3
package hydra-print
package
Output from parallel subprocesses is an ugly, many-headed beast. Piping though hydra-print provides an NCurses interface to a dynamic set output streams, displayed without interleaving.  This is a common problem, for example, with parallel compiles, or data-processing scripts. Specifically, this small library will split the screen when parallelism occurs, and unsplit it when the parallelism is finished (i.e. dynamically growing and losing &quot;heads&quot;). The io-streams library is used for all stream inputs. Version 0.1.0.3
package ipprint
package
Tiny helper for pretty-printing values in ghci console Usage example: > Prelude> let e = replicate 5 [1..14] -- value we want to print > Prelude> :m + IPPrint > Prelude IPPrint> pprint e > [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], > [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], > [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], > [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], > [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]] Terminal width support added by Jean-Marie Gaillourdet. Version 0.5

Show more results