diff options
Diffstat (limited to 'ghc/misc/examples/io/io006/Main.hs')
-rw-r--r-- | ghc/misc/examples/io/io006/Main.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc/misc/examples/io/io006/Main.hs b/ghc/misc/examples/io/io006/Main.hs new file mode 100644 index 0000000000..c6fc5394e3 --- /dev/null +++ b/ghc/misc/examples/io/io006/Main.hs @@ -0,0 +1,4 @@ +main = + hClose stderr >> + hPutStr stderr "junk" `handle` \ (IllegalOperation _) -> putStr "Okay\n" + |