haskell / haskell/haskeline

Feature request: multi-line input in interactive mode

Open
#69 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
247
Forks
82
PR merge metrics
No merged PRs in 30d

Description

A nice to have feature would be multi-line input in interactive mode.
From the api perspective I envision passing a function as part of the configuration.
This function gets called with the input (and possibly some meta information, such as the position of the cursor) every time the user types something at the prompt and then returns a status, indicating whether the input should be considered complete (or partial).
This would for example allow implementing a multi-line mode where the input is accepted when it parses successfully or when a special key sequence is encountered (this would possibly require passing control characters to the envisioned function).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.