Popularity
5.9
Declining
Activity
0.0
Stable
8
4
2

Monthly Downloads: 18
Programming language: Haskell
License: MIT License
Tags: Data     Conduit    
Latest version: v0.1.1.1

fsnotify-conduit alternatives and similar packages

Based on the "Conduit" category.
Alternatively, view fsnotify-conduit alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of fsnotify-conduit or a related project?

Add another 'Conduit' Package

README

fsnotify-conduit

Get filesystem notifications as a stream of events, using the conduit package to handle the stream. This uses the fsnotify package, which uses OS-specific file notification APIs for efficiency. Simple usage example, a program which will print all events for the given directory tree:

#!/usr/bin/env stack
{- stack script
     --resolver lts-13.6
     --install-ghc
     --package fsnotify-conduit
     --package conduit
-}

import Conduit
import Data.Conduit.FSNotify
import System.Environment (getArgs)

main :: IO ()
main = do
    args <- getArgs
    dir <-
        case args of
            [dir] -> return dir
            _ -> error $ "Expected one argument (directory to watch)"
    runConduitRes
        $ sourceFileChanges (setRelative False $ mkFileChangeSettings dir)
       .| mapM_C (liftIO . print)