Skip to content

Commit 18ef01a

Browse files
committed
Remove unused import, use let
1 parent 0efbabb commit 18ef01a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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
19+
2020
import Data.Either (fromRight)
2121
import Data.Set (Set)
2222
import qualified Data.Set as Set
@@ -81,11 +81,11 @@ newHscEnvEqWithImportPaths envImportPaths hscEnv deps = do
8181
| d <- depends
8282
, Just pkg <- [lookupPackageConfig d hscEnv]
8383
, (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
84+
, let m = 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
8989
]
9090

9191
doOne m = do

0 commit comments

Comments
 (0)