Commit 31675c9a authored by Simon Peyton Jones's avatar Simon Peyton Jones

Test Trac #5281

parent 55271bce
-- The issue here is getting an error message with a decent source location
module T5281 where
x = catch -- This use of catch
-- (a) comes from the implicitly imported Prelue
-- (b) this Prelude.catch is deprecated
T5281.hs:2:8:
Warning: In the use of `catch'
(imported from Prelude, but defined in System.IO.Error):
Deprecated: "Please use the new exceptions variant, Control.Exception.catch"
......@@ -81,3 +81,4 @@ test('mc13', normal, compile_fail, [''])
test('mc14', normal, compile_fail, [''])
test('T5211', normal, compile, ['']) # Warnings only
test('T1595a', normal, compile_fail, [''])
test('T5281', normal, compile, ['']) # Warnings only
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment