summaryrefslogtreecommitdiff
path: root/testsuite/tests/stranal/should_compile/T13380b.hs
blob: db873e8f921c00a378acc7e63669d02687a0b3a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Lib (m) where

import Control.Exception

throws :: IO ()
throws = throwIO (userError "What")
{-# NOINLINE throws #-}

bigDeadAction :: IO Int
bigDeadAction = return $ sum $ [0..999]
{-# NOINLINE bigDeadAction #-}

m :: IO Int
m = throws >> bigDeadAction