mirror of
https://github.com/snoyberg/keter.git
synced 2024-12-12 14:06:10 +03:00
Merge pull request #119 from creichert/master
Replace MIN_VERSION macro SYSTEM_FILEPATH.
This commit is contained in:
commit
4839574e4a
@ -185,12 +185,12 @@ startWatching kc@KeterConfig {..} appMan log = do
|
||||
|
||||
-- compatibility with older versions of fsnotify which used
|
||||
-- 'Filesystem.Path'
|
||||
#if MIN_VERSION_fsnotify(0,2,0)
|
||||
fromFilePath :: forall a. a -> a
|
||||
fromFilePath = id
|
||||
#else
|
||||
#ifdef SYSTEM_FILEPATH
|
||||
fromFilePath :: FP.FilePath -> String
|
||||
fromFilePath = encodeString
|
||||
#else
|
||||
fromFilePath :: forall a. a -> a
|
||||
fromFilePath = id
|
||||
#endif
|
||||
|
||||
listDirectoryTree :: FilePath -> IO [FilePath]
|
||||
|
Loading…
Reference in New Issue
Block a user