summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlp Mestanogullari <alpmestan@gmail.com>2020-02-14 13:02:24 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-28 02:36:59 -0500
commitf97d1fb614ff7638d13eb7c552d2a72fce4c613a (patch)
tree6c69b3c04c6cb78b34aeccc7cffbeab0add08593
parentf4b6b594fae6b257e997ade3fae67b3378e54a22 (diff)
downloadhaskell-f97d1fb614ff7638d13eb7c552d2a72fce4c613a.tar.gz
base: use an explicit import list in System.Environment.ExecutablePath
This was making -Werror builds fail on Windows (at least with Hadrian).
-rw-r--r--libraries/base/System/Environment/ExecutablePath.hsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/System/Environment/ExecutablePath.hsc b/libraries/base/System/Environment/ExecutablePath.hsc
index cdf39ea041..932af67b45 100644
--- a/libraries/base/System/Environment/ExecutablePath.hsc
+++ b/libraries/base/System/Environment/ExecutablePath.hsc
@@ -43,7 +43,7 @@ import System.Posix.Internals
#include <sys/sysctl.h>
#elif defined(mingw32_HOST_OS)
import Control.Exception
-import Data.List
+import Data.List (isPrefixOf)
import Data.Word
import Foreign.C
import Foreign.Marshal.Array