We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce7a8eb commit b1a99f8Copy full SHA for b1a99f8
src/Node/FS/Sync.purs
@@ -113,7 +113,7 @@ chmod file perms = mkEff $ \_ -> runFn2
113
stat :: forall eff. FilePath
114
-> Eff (fs :: FS, err :: EXCEPTION | eff) Stats
115
116
-stat file = return $ Stats $ runFn1
+stat file = map Stats $ mkEff $ \_ -> runFn1
117
fs.statSync file
118
119
-- | Creates a link to an existing file.
@@ -257,7 +257,7 @@ appendTextFile encoding file buff = mkEff $ \_ -> runFn3
257
-- | Check if the path exists.
258
exists :: forall eff. FilePath
259
-> Eff (fs :: FS | eff) Boolean
260
-exists file = return $ fs.existsSync file
+exists file = mkEff $ \_ -> fs.existsSync file
261
262
-- | Open a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_opensync_path_flags_mode)
263
-- | for details.
0 commit comments