LIB: fix build with GHC-7.10
This commit is contained in:
parent
da2c7f8e8b
commit
03fbae7999
@ -196,15 +196,13 @@ pattern FileLike :: File FileInfo -> File FileInfo
|
|||||||
pattern FileLike f <- (fileLike -> (True, f))
|
pattern FileLike f <- (fileLike -> (True, f))
|
||||||
|
|
||||||
-- |Matches a list of directories or symlinks pointing to directories.
|
-- |Matches a list of directories or symlinks pointing to directories.
|
||||||
pattern DirList :: (Foldable t, Functor t)
|
pattern DirList :: [File FileInfo] -> [File FileInfo]
|
||||||
=> t (File FileInfo) -> t (File FileInfo)
|
|
||||||
pattern DirList fs <- (\fs -> (and . fmap (fst . sdir) $ fs, fs)
|
pattern DirList fs <- (\fs -> (and . fmap (fst . sdir) $ fs, fs)
|
||||||
-> (True, fs))
|
-> (True, fs))
|
||||||
|
|
||||||
-- |Matches a list of any non-directory kind of files or symlinks
|
-- |Matches a list of any non-directory kind of files or symlinks
|
||||||
-- pointing to such.
|
-- pointing to such.
|
||||||
pattern FileLikeList :: (Foldable t, Functor t)
|
pattern FileLikeList :: [File FileInfo] -> [File FileInfo]
|
||||||
=> t (File FileInfo) -> t (File FileInfo)
|
|
||||||
pattern FileLikeList fs <- (\fs -> (and
|
pattern FileLikeList fs <- (\fs -> (and
|
||||||
. fmap (fst . sfileLike)
|
. fmap (fst . sfileLike)
|
||||||
$ fs, fs) -> (True, fs))
|
$ fs, fs) -> (True, fs))
|
||||||
|
Loading…
Reference in New Issue
Block a user