[haskeline] #112: Multi-line prompt
haskeline
haskeline at projects.haskell.org
Fri Oct 15 11:31:31 EDT 2010
#112: Multi-line prompt
------------------------+---------------------------------------------------
Reporter: judah | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone:
Version: | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by judah):
My initial thoughts: we could add a new action
{{{
getMultiLine :: [String] -> InputT m [String]
}}}
where the input to the function is the initial text to be edited.
However, what the ghci tickets are trying to achieve is that the user
enters a single line of text, ghci notices via layout rules that the line
is incomplete, and continues it in a multi-line input. If you used
getInputLine followed by getMultiLine, the first row would be repeated,
which is probably not the best UI. So getInputLine and getMultiLine would
have to interact, and I'm not sure how that could work without making
things much more complicated.
--
Ticket URL: <http://trac.haskell.org/haskeline/ticket/112#comment:1>
haskeline <http://example.org/>
My example project
More information about the Haskeline
mailing list