Skip to content

Commit

Permalink
Fix build on Windows/MinGW (#337)
Browse files Browse the repository at this point in the history
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
        |                    ^^^^^^^^^^^^^^^^^^^^^^^
  • Loading branch information
moodmosaic authored and cocreature committed Jan 21, 2020
1 parent 2f5d0d3 commit c147e62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Development/IDE/Core/FileStore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c147e62

Please sign in to comment.