You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Node/FS/Aff.purs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -378,9 +378,10 @@ fdWrite = toAff5 A.fdWrite
378
378
-- | for details.
379
379
fdWrite'
380
380
::FileDescriptor
381
+
->Buffer
381
382
->FdWriteOptions
382
383
->Aff (TupleByteCountBuffer)
383
-
fdWrite' = toAff2A.fdWrite'
384
+
fdWrite' = toAff3A.fdWrite'
384
385
385
386
-- It is unsafe to use fs.write() multiple times on the same file without waiting for the callback. For this scenario, fs.createWriteStream() is recommended.
-- It is unsafe to use fs.write() multiple times on the same file without waiting for the callback. For this scenario, fs.createWriteStream() is recommended.
copyFile src dest = runEffectFn3 copyFileSyncImpl src dest defaultCopyMode
@@ -467,7 +466,7 @@ fdRead
467
466
fdRead fd buff off len pos =
468
467
runEffectFn5 readSyncImpl fd buff off len (toNullable pos)
469
468
470
-
-- | Read from a file asynchronously. See the [Node Documentation](https://nodejs.org/docs/latest/api/fs.html#fsreadfd-options-callback)
469
+
-- | Read from a file synchronously. See the [Node Documentation](https://nodejs.org/docs/latest/api/fs.html#fsreadsyncfd-buffer-offset-length-position)
471
470
-- | for details.
472
471
fdRead'
473
472
::FileDescriptor
@@ -497,13 +496,14 @@ fdWrite
497
496
fdWrite fd buff off len pos =
498
497
runEffectFn5 writeSyncImpl fd buff off len (toNullable pos)
499
498
500
-
-- | Write from a file asynchronously. See the [Node Documentation](https://nodejs.org/docs/latest/api/fs.html#fswritefd-options-callback)
499
+
-- | Write from a file synchronously. See the [Node Documentation](https://nodejs.org/docs/latest/api/fs.html#fswritefd-options-callback)
-- It is unsafe to use fs.write() multiple times on the same file without waiting for the callback. For this scenario, fs.createWriteStream() is recommended.
509
509
fdWriteString
@@ -529,7 +529,7 @@ fdAppend fd buff = do
529
529
fdClose::FileDescriptor->EffectUnit
530
530
fdClose fd = runEffectFn1 closeSyncImpl fd
531
531
532
-
-- | Copy a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fspromises_copyfile_src_dest_mode)
532
+
-- | Copy a file synchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fspromises_copyfile_src_dest_mode)
0 commit comments