From dcad2a3010b8f40e1e32ee0a3c980c32980e20e3 Mon Sep 17 00:00:00 2001 From: Zubin Duggal Date: Wed, 3 Feb 2021 22:46:54 +0530 Subject: [PATCH] use Text instead of String --- src/Language/LSP/Test.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/LSP/Test.hs b/src/Language/LSP/Test.hs index 90000fd..62b3267 100644 --- a/src/Language/LSP/Test.hs +++ b/src/Language/LSP/Test.hs @@ -398,7 +398,7 @@ createDoc file languageId contents = do watchHits :: FileSystemWatcher -> Bool watchHits (FileSystemWatcher pattern kind) = -- If WatchKind is exlcuded, defaults to all true as per spec - fileMatches pattern && createHits (fromMaybe (WatchKind True True True) kind) + fileMatches (T.unpack pattern) && createHits (fromMaybe (WatchKind True True True) kind) fileMatches pattern = Glob.match (Glob.compile pattern) relOrAbs -- If the pattern is absolute then match against the absolute fp -- 2.30.2