mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-08-15 15:50:26 +03:00
Have withInterruptHandler be more transparent
This commit is contained in:
parent
790b62c999
commit
233f83bdf8
@ -16,7 +16,7 @@ resetScreen = do
|
||||
clearScreen
|
||||
setCursorPosition 0 0
|
||||
|
||||
withInterruptHandler :: IO () -> IO ()
|
||||
withInterruptHandler :: IO a -> IO a
|
||||
withInterruptHandler body = do
|
||||
tid <- myThreadId
|
||||
void $ installHandler keyboardSignal (Catch (handleInterrupt tid)) Nothing
|
||||
|
Loading…
Reference in New Issue
Block a user