@@ -16,7 +16,6 @@ import Control.Concurrent.Strict (modifyVar, newVar)
16
16
import Control.DeepSeq (force )
17
17
import Control.Exception (evaluate , mask , throwIO )
18
18
import Control.Monad.Extra (eitherM , join , mapMaybeM )
19
- import Control.Monad.IO.Class
20
19
import Data.Either (fromRight )
21
20
import Data.Set (Set )
22
21
import qualified Data.Set as Set
@@ -81,11 +80,11 @@ newHscEnvEqWithImportPaths envImportPaths hscEnv deps = do
81
80
| d <- depends
82
81
, Just pkg <- [lookupPackageConfig d hscEnv]
83
82
, (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
89
88
]
90
89
91
90
doOne m = do
0 commit comments