@@ -16,7 +16,7 @@ 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
19
+
20
20
import Data.Either (fromRight )
21
21
import Data.Set (Set )
22
22
import qualified Data.Set as Set
@@ -81,11 +81,11 @@ newHscEnvEqWithImportPaths envImportPaths hscEnv deps = do
81
81
| d <- depends
82
82
, Just pkg <- [lookupPackageConfig d hscEnv]
83
83
, (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
89
89
]
90
90
91
91
doOne m = do
0 commit comments