
1 Feb
2013
1 Feb
'13
9:17 p.m.
Okay I tried forkIO in the following way: playBg = do t <- forkIO play putStrLn "playing" And indeed it plays in background. But can't seem to get the killing to work. playBg = do t <- forkIO play putStrLn "playing" c <- getChar putStrLn "interrrupted" killThread t When I enter "asd" while playing I see: *Main> playBg playing asd interrrupted But it just goes on playing. Can a thread refuse to get killed, or am I doing something stupid?