Skip to content

Commit 7a657d3

Browse files
committed
Fn1 is just ->
1 parent b3399d9 commit 7a657d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Node/FS/Sync.purs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ foreign import fs "var fs = require('fs');" ::
5353
, readFileSync :: forall a opts. Fn2 FilePath { | opts } a
5454
, writeFileSync :: forall a opts. Fn3 FilePath a { | opts } Unit
5555
, appendFileSync :: forall a opts. Fn3 FilePath a { | opts } Unit
56-
, existsSync :: Fn1 FilePath Boolean
56+
, existsSync :: FilePath -> Boolean
5757
}
5858

5959
foreign import mkEff
@@ -286,5 +286,4 @@ appendTextFile encoding file buff = mkEff $ \_ -> runFn3
286286
--
287287
exists :: forall eff. FilePath
288288
-> Eff (fs :: FS | eff) Boolean
289-
exists file = mkEff $ \_ -> runFn1
290-
fs.existsSync file
289+
exists file = mkEff $ \_ -> fs.existsSync file

0 commit comments

Comments
 (0)