summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T15970/A1.hs
blob: cf71ad664f86893705bbd58a9b48b62eb7d167ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- {-# OPTIONS_GHC -fno-full-laziness #-}
module A (toTypedData, toTypedDataNoDef) where

toTypedData :: String -> IO Int
toTypedData s = wrapPrint "yoyo" $ toTypedDataNoDef s

wrapPrint :: String -> IO Int -> IO Int
wrapPrint s act = do
    putStrLn s
    act

toTypedDataNoDef  :: String -> IO Int
toTypedDataNoDef s = return $ length s