summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/simplCore/should_run/T3983_Foo.hs
blob: b2519632a9946a099c2dffa8a67c05aaada2e191 (plain)
1
2
3
4
5
6
7
8
module T3983_Foo where

import Control.Monad (unless)
import Control.Exception
import T3983_Bar

foo :: Bool -> Bool -> IO ()
foo a b = unless a $ throwX (if b then "" else "")