Skip to content

Commit 4c3f421

Browse files
committed
m use stub
1 parent bf537f4 commit 4c3f421

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Nix/Convert.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ instance ( Convertible e t f m
253253
NVStr' ns -> pure $ coerce . toString <$> getStringNoContext ns
254254
NVSet' _ s ->
255255
maybe
256-
(pure Nothing)
256+
stub
257257
(fromValueMay @Path)
258258
(M.lookup "outPath" s)
259-
_ -> pure Nothing
259+
_ -> stub
260260

261261
fromValue = fromMayToValue TPath
262262

src/Nix/Lint.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ merge context = go
212212
mergeFunctions pl nl fl pr fr xs ys = do
213213
m <- sequenceA $ M.intersectionWith
214214
(\i j -> i >>= \i' -> j >>= \j' -> case (i', j') of
215-
(Nothing, Nothing) -> pure $ pure Nothing
216-
(_, Nothing) -> pure Nothing
217-
(Nothing, _) -> pure Nothing
215+
(Nothing, Nothing) -> stub
216+
(_, Nothing) -> stub
217+
(Nothing, _) -> stub
218218
(Just i'', Just j'') ->
219219
pure . pure <$> unify context i'' j'')
220220
(pure <$> pl) (pure <$> pr)
@@ -478,7 +478,7 @@ runLintM opts action = do
478478
symbolicBaseEnv
479479
:: Monad m
480480
=> m (Scopes m (Symbolic m))
481-
symbolicBaseEnv = pure mempty
481+
symbolicBaseEnv = stub
482482

483483
lint :: Options -> NExprLoc -> ST s (Symbolic (Lint s))
484484
lint opts expr =

0 commit comments

Comments
 (0)