mirror of
https://github.com/srid/ema.git
synced 2024-11-29 09:25:14 +03:00
Relax constraint
This commit is contained in:
parent
48c92c3204
commit
767b9b471b
@ -17,6 +17,13 @@ import Control.Monad.Logger
|
||||
import Ema.App (MonadEma)
|
||||
import System.Directory (canonicalizePath)
|
||||
import System.FSNotify
|
||||
( ActionPredicate,
|
||||
Event (..),
|
||||
StopListening,
|
||||
WatchManager,
|
||||
watchTree,
|
||||
withManager,
|
||||
)
|
||||
import System.FilePath (makeRelative)
|
||||
import System.FilePattern (FilePattern)
|
||||
import System.FilePattern.Directory (getDirectoryFiles)
|
||||
@ -27,7 +34,7 @@ type FolderPath = FilePath
|
||||
log :: MonadLogger m => LogLevel -> Text -> m ()
|
||||
log = logWithoutLoc "Helper.FileSystem"
|
||||
|
||||
filesMatching :: MonadEma m => FolderPath -> [FilePattern] -> m [FilePath]
|
||||
filesMatching :: (MonadIO m, MonadLogger m) => FolderPath -> [FilePattern] -> m [FilePath]
|
||||
filesMatching parent' pats = do
|
||||
parent <- liftIO $ canonicalizePath parent'
|
||||
log LevelInfo $ toText $ "Traversing " <> parent <> " for files matching " <> show pats
|
||||
|
Loading…
Reference in New Issue
Block a user