Skip to content

Commit 80561d2

Browse files
committed
treewide: (*.->m)empty
These were the last ones. `mempty` infers everywhere.
1 parent 710d1d3 commit 80561d2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

main/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ main =
105105
(\ ty -> liftIO $ putStrLn $ "Type of expression: " <> PS.ppShow
106106
(fromJust $ Map.lookup "it" $ Env.types ty)
107107
)
108-
(HM.inferTop Env.empty [("it", stripAnnotation expr')])
108+
(HM.inferTop mempty [("it", stripAnnotation expr')])
109109

110110
-- liftIO $ putStrLn $ runST $
111111
-- runLintM opts . renderSymbolic =<< lint opts expr

main/Repl.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ exec update source = do
208208
-- import qualified Nix.Type.Env as Env
209209
-- import Nix.Type.Infer
210210
--
211-
-- let tyctx' = inferTop Env.empty [("repl", stripAnnotation expr)]
211+
-- let tyctx' = inferTop mempty [("repl", stripAnnotation expr)]
212212
-- liftIO $ print tyctx'
213213

214214
mVal <- lift $ lift $ try $ pushScope (replCtx st) (evalExprLoc expr)

src/Nix/Builtins.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ genericClosureNix c =
959959
ss <- fromValue @[NValue t f m] =<< demand startSet
960960
op <- demand operator
961961

962-
toValue @[NValue t f m] =<< snd <$> go op S.empty ss
962+
toValue @[NValue t f m] =<< snd <$> go op mempty ss
963963
where
964964
go
965965
:: NValue t f m

src/Nix/Effects.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,4 +449,4 @@ addPath p =
449449
=<< addToStore (toText $ takeFileName p) p True False
450450

451451
toFile_ :: (Framed e m, MonadStore m) => FilePath -> String -> m StorePath
452-
toFile_ p contents = addTextToStore (toText p) (toText contents) HS.empty False
452+
toFile_ p contents = addTextToStore (toText p) (toText contents) mempty False

0 commit comments

Comments
 (0)