Created
August 2, 2016 18:46
-
-
Save cocreature/f7a6e1b08face3911222202ca84ae812 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
import Test.Hspec | |
import Control.Exception | |
import Control.Concurrent | |
main :: IO () | |
main = | |
hspec $ | |
describe "it" $ | |
do it "should run" $ | |
do finally (do threadDelay 10000000 | |
putStrLn "ran action") | |
(do threadDelay 1000000 | |
putStrLn "finalizer") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment