This language bar is your friend. Select your favorite languages!
Edit summary for version 19 :

Version 18

Version 19

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").

Imports

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