We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
->
1 parent b3399d9 commit 7a657d3Copy full SHA for 7a657d3
src/Node/FS/Sync.purs
@@ -53,7 +53,7 @@ foreign import fs "var fs = require('fs');" ::
53
, readFileSync :: forall a opts. Fn2 FilePath { | opts } a
54
, writeFileSync :: forall a opts. Fn3 FilePath a { | opts } Unit
55
, appendFileSync :: forall a opts. Fn3 FilePath a { | opts } Unit
56
- , existsSync :: Fn1 FilePath Boolean
+ , existsSync :: FilePath -> Boolean
57
}
58
59
foreign import mkEff
@@ -286,5 +286,4 @@ appendTextFile encoding file buff = mkEff $ \_ -> runFn3
286
--
287
exists :: forall eff. FilePath
288
-> Eff (fs :: FS | eff) Boolean
289
-exists file = mkEff $ \_ -> runFn1
290
- fs.existsSync file
+exists file = mkEff $ \_ -> fs.existsSync file
0 commit comments