@@ -16,7 +16,6 @@ import Control.Concurrent.Strict (modifyVar, newVar)
1616import Control.DeepSeq (force )
1717import Control.Exception (evaluate , mask , throwIO )
1818import Control.Monad.Extra (eitherM , join , mapMaybeM )
19- import Control.Monad.IO.Class
2019import Data.Either (fromRight )
2120import Data.Set (Set )
2221import 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