[project @ 2000-06-09 13:48:09 by simonmar]
authorsimonmar <unknown>
Fri, 9 Jun 2000 13:48:09 +0000 (13:48 +0000)
committersimonmar <unknown>
Fri, 9 Jun 2000 13:48:09 +0000 (13:48 +0000)
Guard failure will now throw a PatternMatchFail, the
NonExhaustiveGuards exception is to be removed.

ghc/tests/lib/should_run/exceptions001.hs

index 4e28e94..3332008 100644 (file)
@@ -41,7 +41,7 @@ test1 [] = ()
 
 guardTest = catchAllIO (case test2 of () -> return ())
   (\ex -> case ex of
-               NonExhaustiveGuards err -> putStr err
+               PatternMatchFail err -> putStr err
                other                -> error "help!")
 
 test2 | all (==0) [1] = ()