Logo

Programming-Idioms

History of Idiom 59 > diff from v17 to v18

Edit summary for version 18 by :

Version 17

2015-09-04, 15:54:48

Version 18

2015-09-04, 17:23:57

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Code
System.IO.hPutStrLn System.IO.stderr (show (x) ++ " is negative")