kolmodin / hinotify

Haskell binding to inotify
Other
30 stars 19 forks source link

Does not notify #16

Closed ChristopherKing42 closed 8 years ago

ChristopherKing42 commented 8 years ago

So while in ghci, I did

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.

Any other details I should post?

ChristopherKing42 commented 8 years ago

Oh wait, that's because withINotify kills it after the action is done. My bad.