Created
March 23, 2015 16:29
-
-
Save netogallo/3f6651e1bdaa720428cd to your computer and use it in GitHub Desktop.
killer
This file contains hidden or 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 Control.Concurrent.MVar | |
| import System.IO.Unsafe | |
| ref = unsafePerformIO $ newEmptyMVar | |
| data T = T Int Int Int deriving Show | |
| main = do | |
| putMVar ref () | |
| x <- (takeMVar ref :: IO T) | |
| putStrLn $ show x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment