summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T17673.hs
blob: 37d8bea693b51009ca87c906b63c1cd0573e2e37 (plain)
1
2
3
4
5
6
module T17673 where

facIO :: Int -> IO Int
facIO n | n < 2     = return 1
        | otherwise = do n' <- facIO (n-1); return (n*n')
{-# NOINLINE facIO #-}