Closed ChristopherKing42 closed 8 years ago
So while in ghci, I did
ghci
Prelude> import System.INotify Prelude System.INotify> let f i = addWatch i [Create] "/" print Prelude System.INotify> withINotify f <wd=1> Prelude System.INotify>
When I created a file yolo in /, nothing happened.
yolo
/
Any other details I should post?
Oh wait, that's because withINotify kills it after the action is done. My bad.
withINotify
So while in
ghci
, I didWhen I created a file
yolo
in/
, nothing happened.Any other details I should post?