1 2 3 4 5 6 7 8 9
import Control.Concurrent import System.Posix.IO main = do putStrLn "hello" fd <- openFd "/dev/random" ReadOnly Nothing defaultFileFlags threadWaitRead fd putStrLn "goodbye"