File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ chmod file perms = mkEff $ \_ -> runFn2
113
113
stat :: forall eff . FilePath
114
114
-> Eff (fs :: FS , err :: EXCEPTION | eff ) Stats
115
115
116
- stat file = return $ Stats $ runFn1
116
+ stat file = map Stats $ mkEff $ \_ -> runFn1
117
117
fs.statSync file
118
118
119
119
-- | Creates a link to an existing file.
@@ -257,7 +257,7 @@ appendTextFile encoding file buff = mkEff $ \_ -> runFn3
257
257
-- | Check if the path exists.
258
258
exists :: forall eff . FilePath
259
259
-> Eff (fs :: FS | eff ) Boolean
260
- exists file = return $ fs.existsSync file
260
+ exists file = mkEff $ \_ -> fs.existsSync file
261
261
262
262
-- | Open a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_opensync_path_flags_mode)
263
263
-- | for details.
You can’t perform that action at this time.
0 commit comments