let's put type modules under the parent module, not in a Types directory
This commit is contained in:
parent
82d28a7eb8
commit
74f723bb50
8 changed files with 8 additions and 10 deletions
24
Utility/DirWatcher/Types.hs
Normal file
24
Utility/DirWatcher/Types.hs
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue