funflow-1.0.0: src/Control/Funflow/ContentStore/Notify.hs
{-# LANGUAGE CPP #-}
-- | Generic file change notifier library for unix-based systems.
--
-- This library abstracts over specific implementations for BSD and linux
-- systems.
--
-- It provides facilities to watch specific directories for the following changes:
-- - File moves
-- - File deletion
-- - Attribute changes.
module Control.Funflow.ContentStore.Notify
( Notifier
, initNotifier
, killNotifier
, Watch
, addDirWatch
, removeDirWatch
) where
#ifdef OS_Linux
import Control.Funflow.ContentStore.Notify.Linux
#else
# ifdef OS_BSD
import Control.Funflow.ContentStore.Notify.BSD
# endif
#endif