let's put type modules under the parent module, not in a Types directory

This commit is contained in:
Joey Hess 2013-03-10 22:24:13 -04:00
parent 82d28a7eb8
commit 74f723bb50
8 changed files with 8 additions and 10 deletions

View file

@ -0,0 +1,24 @@
{- generic directory watching types
-
- Copyright 2012 Joey Hess <joey@kitenet.net>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Utility.DirWatcher.Types where
import Common
type Hook a = Maybe (a -> Maybe FileStatus -> IO ())
data WatchHooks = WatchHooks
{ addHook :: Hook FilePath
, addSymlinkHook :: Hook FilePath
, delHook :: Hook FilePath
, delDirHook :: Hook FilePath
, errHook :: Hook String -- error message
, modifyHook :: Hook FilePath
}
mkWatchHooks :: WatchHooks
mkWatchHooks = WatchHooks Nothing Nothing Nothing Nothing Nothing Nothing