Skip to content

Commit 08f039f

Browse files
committed
Remove unused import, use let
1 parent 0efbabb commit 08f039f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ghcide/src/Development/IDE/Types/HscEnvEq.hs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import Control.Concurrent.Strict (modifyVar, newVar)
1616
import Control.DeepSeq (force)
1717
import Control.Exception (evaluate, mask, throwIO)
1818
import Control.Monad.Extra (eitherM, join, mapMaybeM)
19-
import Control.Monad.IO.Class
2019
import Data.Either (fromRight)
2120
import Data.Set (Set)
2221
import qualified Data.Set as Set
@@ -81,11 +80,11 @@ newHscEnvEqWithImportPaths envImportPaths hscEnv deps = do
8180
| d <- depends
8281
, Just pkg <- [lookupPackageConfig d hscEnv]
8382
, (modName, maybeOtherPkgMod) <- unitExposedModules pkg
84-
, m <- pure $ case maybeOtherPkgMod of
85-
-- When module is re-exported from another package,
86-
-- the origin module is represented by value in Just
87-
Just otherPkgMod -> otherPkgMod
88-
Nothing -> mkModule (unitInfoId pkg) modName
83+
, let m = case maybeOtherPkgMod of
84+
-- When module is re-exported from another package,
85+
-- the origin module is represented by value in Just
86+
Just otherPkgMod -> otherPkgMod
87+
Nothing -> mkModule (unitInfoId pkg) modName
8988
]
9089

9190
doOne m = do

0 commit comments

Comments
 (0)