summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/T8487.hs
blob: d77738e3c97a352381850173d20edd7d0bd7589b (plain)
1
2
3
4
5
6
7
8
9
10
11
import Control.Exception

f = do
  ma <- try $ evaluate a
  x <- case ma of
    Right str -> return a
    Left  err -> return $ show (err :: SomeException)
  putStrLn x
  where
    a :: String
    a = error "hi"