diff options
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 |
commit | 5c804e5de11c71e84e81c40a10c11baba04b15e1 (patch) | |
tree | 2f778689460dd9229959735a9f8cebeca9c8f8a3 /compiler/ghci | |
parent | e3ae0eb8e13adbbbec163d65c3b6e613666c56c9 (diff) | |
download | haskell-5c804e5de11c71e84e81c40a10c11baba04b15e1.tar.gz |
Remove splitEithers, use partitionEithers from base
Diffstat (limited to 'compiler/ghci')
-rw-r--r-- | compiler/ghci/ByteCodeGen.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ghci/ByteCodeGen.hs b/compiler/ghci/ByteCodeGen.hs index 90fcb6d2ca..74168ac442 100644 --- a/compiler/ghci/ByteCodeGen.hs +++ b/compiler/ghci/ByteCodeGen.hs @@ -73,6 +73,7 @@ import qualified Data.IntMap as IntMap import qualified FiniteMap as Map import Data.Ord import GHC.Stack.CCS +import Data.Either ( partitionEithers ) -- ----------------------------------------------------------------------------- -- Generating byte code for a complete module @@ -89,7 +90,7 @@ byteCodeGen hsc_env this_mod binds tycs mb_modBreaks (const ()) $ do -- Split top-level binds into strings and others. -- See Note [generating code for top-level string literal bindings]. - let (strings, flatBinds) = splitEithers $ do + let (strings, flatBinds) = partitionEithers $ do (bndr, rhs) <- flattenBinds binds return $ case exprIsTickedString_maybe rhs of Just str -> Left (bndr, str) |