File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 55
66* Additional:
77
8+ * ` Nix.Effects ` :
9+ * rm ` pathExits ` in favour of ` doesPathExist ` (in ` Nix.Render ` : ` class MonadFile ` : ` doesPathExist ` )
10+
811 * ` Nix.Utils ` :
912 * added type ` TransformF `
1013
Original file line number Diff line number Diff line change @@ -1146,8 +1146,8 @@ pathExistsNix nvpath =
11461146 path <- demand nvpath
11471147 toValue =<<
11481148 case path of
1149- NVPath p -> pathExists p
1150- NVStr ns -> pathExists $ toString $ stringIgnoreContext ns
1149+ NVPath p -> doesPathExist p
1150+ NVStr ns -> doesPathExist $ toString $ stringIgnoreContext ns
11511151 _v -> throwError $ ErrorCall $ " builtins.pathExists: expected path, got " <> show _v
11521152
11531153isAttrsNix
Original file line number Diff line number Diff line change @@ -448,10 +448,3 @@ addPath p =
448448
449449toFile_ :: (Framed e m , MonadStore m ) => FilePath -> String -> m StorePath
450450toFile_ p contents = addTextToStore (toText p) (toText contents) HS. empty False
451-
452-
453- -- * misc
454-
455- -- Please, get rid of pathExists in favour of @doesPathExist@
456- pathExists :: MonadFile m => FilePath -> m Bool
457- pathExists = doesPathExist
You can’t perform that action at this time.
0 commit comments