mirror of
https://github.com/ocharles/weeder.git
synced 2024-11-22 13:23:27 +03:00
Update src/Weeder/Main.hs
This commit is contained in:
parent
1dc2f24802
commit
c5d1b26f33
@ -285,10 +285,9 @@ getFilesIn
|
||||
-> FilePath
|
||||
-- ^ Directory to look in
|
||||
-> IO [FilePath]
|
||||
getFilesIn pat relRoot = do
|
||||
root <- canonicalizePath relRoot
|
||||
getFilesIn pat root = do
|
||||
[result] <- Glob.globDir [Glob.compile pat] root
|
||||
mapM canonicalizePath result
|
||||
pure result
|
||||
|
||||
|
||||
-- | Read a .hie file, exiting if it's an incompatible version.
|
||||
|
Loading…
Reference in New Issue
Block a user