@@ -260,9 +260,8 @@ exists file = return $ fs.existsSync file
260
260
261
261
{- Synchronous File Descriptor Functions -}
262
262
263
- -- | Open a file synchronously. See <a
264
- -- | href="http://nodejs.org/api/fs.html#fs_fs_opensync_path_flags_mode">Node
265
- -- | Documentation</a> for details.
263
+ -- | Open a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_opensync_path_flags_mode)
264
+ -- | for details.
266
265
fdOpen :: forall eff .
267
266
FilePath
268
267
-> FileFlags
@@ -271,9 +270,8 @@ fdOpen :: forall eff.
271
270
fdOpen file flags mode = mkEff $ \_ ->
272
271
runFn3 fs.openSync file (fileFlagsToNode flags) (toNullable mode)
273
272
274
- -- | Read to a file synchronously. See <a
275
- -- | href="http://nodejs.org/api/fs.html#fs_fs_readsync_fd_buffer_offset_length_position">Node
276
- -- | ocumentation</a> for details.
273
+ -- | Read from a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_readsync_fd_buffer_offset_length_position)
274
+ -- | for details.
277
275
fdRead :: forall eff .
278
276
FileDescriptor
279
277
-> Buffer
@@ -294,9 +292,8 @@ fdNext fd buff = do
294
292
sz <- size buff
295
293
fdRead fd buff 0 sz Nothing
296
294
297
- -- | Write to a file synchronously. See <a
298
- -- | href="http://nodejs.org/api/fs.html#fs_fs_writesync_fd_buffer_offset_length_position">Node
299
- -- | Documentation</a> for details.
295
+ -- | Write to a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_writesync_fd_buffer_offset_length_position)
296
+ -- | for details.
300
297
fdWrite :: forall eff .
301
298
FileDescriptor
302
299
-> Buffer
@@ -317,17 +314,15 @@ fdAppend fd buff = do
317
314
sz <- size buff
318
315
fdWrite fd buff 0 sz Nothing
319
316
320
- -- | Flush a file synchronously. See <a
321
- -- | href="http://nodejs.org/api/fs.html#fs_fs_fsyncsync_fd">Node
322
- -- | Documentation</a> for details.
317
+ -- | Flush a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_fsyncsync_fd)
318
+ -- | for details.
323
319
fdFlush :: forall eff .
324
320
FileDescriptor
325
321
-> Eff (err :: EXCEPTION , fs :: FS | eff ) Unit
326
322
fdFlush fd = mkEff $ \_ -> runFn1 fs.fsyncSync fd
327
323
328
- -- | Close a file synchronously. See <a
329
- -- | href="http://nodejs.org/api/fs.html#fs_fs_closesync_fd">Node
330
- -- | Documentation</a> for details.
324
+ -- | Close a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_closesync_fd)
325
+ -- | for details.
331
326
fdClose :: forall eff .
332
327
FileDescriptor
333
328
-> Eff (err :: EXCEPTION , fs :: FS | eff ) Unit
0 commit comments