diff options
author | Camil Staps | 2020-01-06 16:27:27 +0100 |
---|---|---|
committer | Camil Staps | 2020-01-06 16:27:27 +0100 |
commit | ba1b279a40c6b491ccd352bf22b888ae7dfbad97 (patch) | |
tree | af08dec7afefa240e94a3c0f7bd01d3aaa24acec /test.icl | |
parent | Cleanup example (diff) |
Expose Inotify type itself in callbacks to allow adding/removing watches
Diffstat (limited to 'test.icl')
-rw-r--r-- | test.icl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -26,12 +26,12 @@ Start w # (inot, w) = inotify_loop_with_timeout (Just 10000) inot w = inotify_close inot where - echo :: String INEvent (Maybe String) () *World -> *((), *World) - echo fname ev f _ w + echo :: String INEvent (Maybe String) *(Inotify ()) *World -> *(*Inotify (), *World) + echo fname ev f st w # (io,w) = stdio w # io = io <<< "EVENT: ["<<< fname <<<"; "<<< ev <<<"; "<<< f <<<"]\n" # (ok,w) = fclose io w - = ((), w) + = (st, w) instance <<< (Maybe a) | <<< a where |