@@ -270,21 +270,21 @@ sigStpH = EventHandle "SIGSTP" identity
270
270
close :: Interface -> Effect Unit
271
271
close iface = runEffectFn1 closeImpl iface
272
272
273
- foreign import closeImpl :: EffectFn1 ( Interface ) ( Unit )
273
+ foreign import closeImpl :: EffectFn1 Interface Unit
274
274
275
275
-- | The rl.pause() method pauses the input stream, allowing it to be resumed later if necessary.
276
276
-- |
277
277
-- | Calling rl.pause() does not immediately pause other events (including 'line') from being emitted by the readline.Interface instance.
278
278
pause :: Interface -> Effect Unit
279
279
pause iface = runEffectFn1 pauseImpl iface
280
280
281
- foreign import pauseImpl :: EffectFn1 ( Interface ) ( Unit )
281
+ foreign import pauseImpl :: EffectFn1 Interface Unit
282
282
283
283
-- | Prompt the user for input on the specified `Interface`.
284
284
prompt :: Interface -> Effect Unit
285
285
prompt iface = runEffectFn1 promptImpl iface
286
286
287
- foreign import promptImpl :: EffectFn1 ( Interface ) ( Unit )
287
+ foreign import promptImpl :: EffectFn1 Interface Unit
288
288
289
289
-- | - `preserveCursor` <boolean> If true, prevents the cursor placement from being reset to 0.
290
290
-- |
@@ -296,7 +296,7 @@ foreign import promptImpl :: EffectFn1 (Interface) (Unit)
296
296
prompt' :: Boolean -> Interface -> Effect Unit
297
297
prompt' preserveCursor iface = runEffectFn2 promptOptsImpl preserveCursor iface
298
298
299
- foreign import promptOptsImpl :: EffectFn2 ( Boolean ) ( Interface ) ( Unit )
299
+ foreign import promptOptsImpl :: EffectFn2 Boolean Interface Unit
300
300
301
301
-- | Writes a query to the output, waits
302
302
-- | for user input to be provided on input, then invokes
@@ -318,7 +318,7 @@ foreign import promptOptsImpl :: EffectFn2 (Boolean) (Interface) (Unit)
318
318
question :: String -> (String -> Effect Unit ) -> Interface -> Effect Unit
319
319
question text cb iface = runEffectFn3 questionImpl iface text $ mkEffectFn1 cb
320
320
321
- foreign import questionImpl :: EffectFn3 ( Interface ) ( String ) (EffectFn1 String Unit ) Unit
321
+ foreign import questionImpl :: EffectFn3 Interface String (EffectFn1 String Unit ) Unit
322
322
323
323
-- | Writes a query to the output, waits
324
324
-- | for user input to be provided on input, then invokes
@@ -340,24 +340,24 @@ foreign import questionImpl :: EffectFn3 (Interface) (String) (EffectFn1 String
340
340
question' :: String -> { signal :: AbortSignal } -> (String -> Effect Unit ) -> Interface -> Effect Unit
341
341
question' text opts cb iface = runEffectFn4 questionOptsCbImpl iface text opts $ mkEffectFn1 cb
342
342
343
- foreign import questionOptsCbImpl :: EffectFn4 ( Interface ) ( String ) { signal :: AbortSignal } (EffectFn1 String Unit ) Unit
343
+ foreign import questionOptsCbImpl :: EffectFn4 Interface String { signal :: AbortSignal } (EffectFn1 String Unit ) Unit
344
344
345
345
-- | The rl.resume() method resumes the input stream if it has been paused.
346
346
resume :: Interface -> Effect Unit
347
347
resume iface = runEffectFn1 resumeImpl iface
348
348
349
- foreign import resumeImpl :: EffectFn1 ( Interface ) ( Unit )
349
+ foreign import resumeImpl :: EffectFn1 Interface Unit
350
350
351
351
-- | The rl.setPrompt() method sets the prompt that will be written to output whenever rl.prompt() is called.
352
352
setPrompt :: String -> Interface -> Effect Unit
353
353
setPrompt newPrompt iface = runEffectFn2 setPromptImpl iface newPrompt
354
354
355
- foreign import setPromptImpl :: EffectFn2 ( Interface ) ( String ) ( Unit )
355
+ foreign import setPromptImpl :: EffectFn2 Interface String Unit
356
356
357
357
getPrompt :: Interface -> Effect String
358
358
getPrompt iface = runEffectFn1 getPromptImpl iface
359
359
360
- foreign import getPromptImpl :: EffectFn1 ( Interface ) ( String )
360
+ foreign import getPromptImpl :: EffectFn1 Interface String
361
361
362
362
writeData :: String -> Interface -> Effect Unit
363
363
writeData dataStr iface = runEffectFn2 writeDataImpl iface dataStr
@@ -383,12 +383,12 @@ foreign import writeKeyImpl :: EffectFn2 Interface KeySequenceObj Unit
383
383
line :: Interface -> Effect String
384
384
line iface = runEffectFn1 lineImpl iface
385
385
386
- foreign import lineImpl :: EffectFn1 ( Interface ) ( String )
386
+ foreign import lineImpl :: EffectFn1 Interface String
387
387
388
388
cursor :: Interface -> Effect Int
389
389
cursor iface = runEffectFn1 cursorImpl iface
390
390
391
- foreign import cursorImpl :: EffectFn1 ( Interface ) ( Int )
391
+ foreign import cursorImpl :: EffectFn1 Interface Int
392
392
393
393
type CursorPos =
394
394
{ rows :: Int
@@ -398,84 +398,84 @@ type CursorPos =
398
398
getCursorPos :: Interface -> Effect CursorPos
399
399
getCursorPos iface = runEffectFn1 getCursorPosImpl iface
400
400
401
- foreign import getCursorPosImpl :: EffectFn1 ( Interface ) ( CursorPos )
401
+ foreign import getCursorPosImpl :: EffectFn1 Interface CursorPos
402
402
403
403
clearLineLeft :: forall r . Writable r -> Effect Boolean
404
404
clearLineLeft stream = runEffectFn1 clearLineLeftImpl stream
405
405
406
- foreign import clearLineLeftImpl :: forall r . EffectFn1 (Writable r ) ( Boolean )
406
+ foreign import clearLineLeftImpl :: forall r . EffectFn1 (Writable r ) Boolean
407
407
408
408
clearLineLeft' :: forall r . Writable r -> Effect Unit -> Effect Boolean
409
409
clearLineLeft' stream cb = runEffectFn2 clearLineLeftCbImpl stream cb
410
410
411
- foreign import clearLineLeftCbImpl :: forall r . EffectFn2 (Writable r ) (Effect Unit ) ( Boolean )
411
+ foreign import clearLineLeftCbImpl :: forall r . EffectFn2 (Writable r ) (Effect Unit ) Boolean
412
412
413
413
clearLineRight :: forall r . Writable r -> Effect Boolean
414
414
clearLineRight stream = runEffectFn1 clearLineRightImpl stream
415
415
416
- foreign import clearLineRightImpl :: forall r . EffectFn1 (Writable r ) ( Boolean )
416
+ foreign import clearLineRightImpl :: forall r . EffectFn1 (Writable r ) Boolean
417
417
418
418
clearLineRight' :: forall r . Writable r -> Effect Unit -> Effect Boolean
419
419
clearLineRight' stream cb = runEffectFn2 clearLineRightCbImpl stream cb
420
420
421
- foreign import clearLineRightCbImpl :: forall r . EffectFn2 (Writable r ) (Effect Unit ) ( Boolean )
421
+ foreign import clearLineRightCbImpl :: forall r . EffectFn2 (Writable r ) (Effect Unit ) Boolean
422
422
423
423
clearEntireLine :: forall r . Writable r -> Effect Boolean
424
424
clearEntireLine stream = runEffectFn1 clearEntireLineImpl stream
425
425
426
- foreign import clearEntireLineImpl :: forall r . EffectFn1 (Writable r ) ( Boolean )
426
+ foreign import clearEntireLineImpl :: forall r . EffectFn1 (Writable r ) Boolean
427
427
428
428
clearEntireLine' :: forall r . Writable r -> Effect Unit -> Effect Boolean
429
429
clearEntireLine' stream cb = runEffectFn2 clearEntireLineCbImpl stream cb
430
430
431
- foreign import clearEntireLineCbImpl :: forall r . EffectFn2 (Writable r ) (Effect Unit ) ( Boolean )
431
+ foreign import clearEntireLineCbImpl :: forall r . EffectFn2 (Writable r ) (Effect Unit ) Boolean
432
432
433
433
clearScreenDown :: forall r . Writable r -> Effect Boolean
434
434
clearScreenDown stream = runEffectFn1 clearScreenDownImpl stream
435
435
436
- foreign import clearScreenDownImpl :: forall r . EffectFn1 (Writable r ) ( Boolean )
436
+ foreign import clearScreenDownImpl :: forall r . EffectFn1 (Writable r ) Boolean
437
437
438
438
clearScreenDown' :: forall r . Writable r -> Effect Unit -> Effect Boolean
439
439
clearScreenDown' stream cb = runEffectFn2 clearScreenDownCbImpl stream cb
440
440
441
- foreign import clearScreenDownCbImpl :: forall r . EffectFn2 (Writable r ) (Effect Unit ) ( Boolean )
441
+ foreign import clearScreenDownCbImpl :: forall r . EffectFn2 (Writable r ) (Effect Unit ) Boolean
442
442
443
443
cursorToX :: forall r . Writable r -> Int -> Effect Boolean
444
444
cursorToX stream x = runEffectFn2 cursorToXImpl stream x
445
445
446
- foreign import cursorToXImpl :: forall r . EffectFn2 (Writable r ) ( Int ) ( Boolean )
446
+ foreign import cursorToXImpl :: forall r . EffectFn2 (Writable r ) Int Boolean
447
447
448
448
cursorToX' :: forall r . Writable r -> Int -> Effect Unit -> Effect Boolean
449
449
cursorToX' stream x cb = runEffectFn3 cursorToXCbImpl stream x cb
450
450
451
- foreign import cursorToXCbImpl :: forall r . EffectFn3 (Writable r ) ( Int ) (Effect Unit ) ( Boolean )
451
+ foreign import cursorToXCbImpl :: forall r . EffectFn3 (Writable r ) Int (Effect Unit ) Boolean
452
452
453
453
cursorToXY :: forall r . Writable r -> Int -> Int -> Effect Boolean
454
454
cursorToXY stream x y = runEffectFn3 cursorToXYImpl stream x y
455
455
456
- foreign import cursorToXYImpl :: forall r . EffectFn3 (Writable r ) ( Int ) ( Int ) ( Boolean )
456
+ foreign import cursorToXYImpl :: forall r . EffectFn3 (Writable r ) Int Int Boolean
457
457
458
458
cursorToXY' :: forall r . Writable r -> Int -> Int -> Effect Unit -> Effect Boolean
459
459
cursorToXY' stream x y cb = runEffectFn4 cursorToXYCbImpl stream x y cb
460
460
461
- foreign import cursorToXYCbImpl :: forall r . EffectFn4 (Writable r ) ( Int ) ( Int ) (Effect Unit ) ( Boolean )
461
+ foreign import cursorToXYCbImpl :: forall r . EffectFn4 (Writable r ) Int Int (Effect Unit ) Boolean
462
462
463
463
emitKeyPressEvents :: forall w . Readable w -> Effect Unit
464
464
emitKeyPressEvents stream = runEffectFn1 emitKeyPressEventsImpl stream
465
465
466
- foreign import emitKeyPressEventsImpl :: forall w . EffectFn1 (Readable w ) ( Unit )
466
+ foreign import emitKeyPressEventsImpl :: forall w . EffectFn1 (Readable w ) Unit
467
467
468
468
emitKeyPressEvents' :: forall w . Readable w -> Interface -> Effect Unit
469
469
emitKeyPressEvents' stream iface = runEffectFn2 emitKeyPressEventsIfaceImpl stream iface
470
470
471
- foreign import emitKeyPressEventsIfaceImpl :: forall w . EffectFn2 (Readable w ) ( Interface ) ( Unit )
471
+ foreign import emitKeyPressEventsIfaceImpl :: forall w . EffectFn2 (Readable w ) Interface Unit
472
472
473
473
moveCursorXY :: forall r . Writable r -> Int -> Int -> Effect Boolean
474
474
moveCursorXY stream x y = runEffectFn3 moveCursorXYImpl stream x y
475
475
476
- foreign import moveCursorXYImpl :: forall r . EffectFn3 (Writable r ) ( Int ) ( Int ) ( Boolean )
476
+ foreign import moveCursorXYImpl :: forall r . EffectFn3 (Writable r ) Int Int Boolean
477
477
478
478
moveCursorXY' :: forall r . Writable r -> Int -> Int -> Effect Unit -> Effect Boolean
479
479
moveCursorXY' stream x y cb = runEffectFn4 moveCursorXYCbImpl stream x y cb
480
480
481
- foreign import moveCursorXYCbImpl :: forall r . EffectFn4 (Writable r ) ( Int ) ( Int ) (Effect Unit ) ( Boolean )
481
+ foreign import moveCursorXYCbImpl :: forall r . EffectFn4 (Writable r ) Int Int (Effect Unit ) Boolean
0 commit comments