summaryrefslogtreecommitdiff
path: root/compiler/main/DriverPipeline.hs
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2018-03-12 10:54:17 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2018-03-12 10:54:17 +0300
commit5c804e5de11c71e84e81c40a10c11baba04b15e1 (patch)
tree2f778689460dd9229959735a9f8cebeca9c8f8a3 /compiler/main/DriverPipeline.hs
parente3ae0eb8e13adbbbec163d65c3b6e613666c56c9 (diff)
downloadhaskell-5c804e5de11c71e84e81c40a10c11baba04b15e1.tar.gz
Remove splitEithers, use partitionEithers from base
Diffstat (limited to 'compiler/main/DriverPipeline.hs')
-rw-r--r--compiler/main/DriverPipeline.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index 839f6d05a4..e631cbb0d8 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -73,6 +73,7 @@ import Control.Monad
import Data.List ( isSuffixOf, intercalate )
import Data.Maybe
import Data.Version
+import Data.Either ( partitionEithers )
-- ---------------------------------------------------------------------------
-- Pre-process
@@ -453,7 +454,7 @@ linkingNeeded dflags staticLink linkables pkg_deps = do
-- first check object files and extra_ld_inputs
let extra_ld_inputs = [ f | FileOption _ f <- ldInputs dflags ]
e_extra_times <- mapM (tryIO . getModificationUTCTime) extra_ld_inputs
- let (errs,extra_times) = splitEithers e_extra_times
+ let (errs,extra_times) = partitionEithers e_extra_times
let obj_times = map linkableTime linkables ++ extra_times
if not (null errs) || any (t <) obj_times
then return True
@@ -469,7 +470,7 @@ linkingNeeded dflags staticLink linkables pkg_deps = do
if any isNothing pkg_libfiles then return True else do
e_lib_times <- mapM (tryIO . getModificationUTCTime)
(catMaybes pkg_libfiles)
- let (lib_errs,lib_times) = splitEithers e_lib_times
+ let (lib_errs,lib_times) = partitionEithers e_lib_times
if not (null lib_errs) || any (t <) lib_times
then return True
else checkLinkInfo dflags pkg_deps exe_file