Created
May 11, 2018 00:41
-
-
Save mwotton/2b0e9fec705ef3d89d38d8a2b5149799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
et ➜ ~ stack ghc test3.hs | |
[1 of 1] Compiling Main ( test3.hs, test3.o ) | |
Linking test3 ... | |
set ➜ ~ ./test3 & | |
[1] 23291 | |
set ➜ ~ kill 23291 | |
[1] + 23291 terminated ./test3 | |
set ➜ ~ cat test3.hs | |
import Control.Exception.Safe | |
import Control.Concurrent | |
main :: IO () | |
main = bracket (return ()) (\_ -> putStrLn "come to collect") (\_ -> threadDelay 30000000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment