From c147e625d3bcb8e57d3921fae52c5acc6555cfa6 Mon Sep 17 00:00:00 2001 From: Nikos Baxevanis Date: Tue, 21 Jan 2020 16:15:19 +0100 Subject: [PATCH] Fix build on Windows/MinGW (#337) This was causing the following error when trying to build under MinGW: [28 of 38] Compiling Development.IDE.Core.FileStore C:\Snapshot\src\ghcide\src\Development\IDE\Core\FileStore.hs:142:20: error: Not in scope: `Dir.getModificationTime' No module named `Dir' is imported. | 142 | do time <- Dir.getModificationTime f | ^^^^^^^^^^^^^^^^^^^^^^^ --- src/Development/IDE/Core/FileStore.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Development/IDE/Core/FileStore.hs b/src/Development/IDE/Core/FileStore.hs index ebdaac25aa..f570ea7cdd 100644 --- a/src/Development/IDE/Core/FileStore.hs +++ b/src/Development/IDE/Core/FileStore.hs @@ -40,6 +40,7 @@ import qualified Data.Rope.UTF16 as Rope #ifdef mingw32_HOST_OS import Data.Time +import qualified System.Directory as Dir #else import Foreign.C.String import Foreign.C.Types