Changes between Initial Version and Version 15 of Ticket #3984


Ignore:
Timestamp:
Jan 24, 2012 8:51:13 AM (4 years ago)
Author:
dterei
Comment:

Edited ticket to reflect actual work needing to be done.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3984

    • Property Cc johan.tibell@… haskell.vivian.mcphail@… dterei added
    • Property Component changed from Compiler to GHCi
    • Property Summary changed from interpret layout in GHCi to Handle multiline input in GHCi history
    • Property Milestone changed from to 7.4.1
    • Property Type changed from bug to feature request
  • Ticket #3984 – Description

    initial v15  
    1 This should work instead of needing '''{;}''' :
     1GHCi accepts multiline input in the form of:
    22
    33{{{
    4 :{
    5 let f = do
    6       one
    7       two
    8       three
    9 :}
     4Prelude> :{
     5Prelude|   let f = do
     6Prelude|         print "Hello"
     7Prelude|         print "World"
     8Prelude|   :}
    109}}}
    1110
    12 Also the up arrow key should bring back the whole block (and allow navigating within it), skipping to the next or previous block or command when going past the ''':}''' or ''':{'''.
     11OR of the form:
     12
     13{{{
     14Prelude> :set +m
     15Prelude|   let f = do
     16Prelude|             print "Hello"
     17Prelude|             print "World"
     18Prelude|   
     19Prelude>
     20}}}
     21
     22However, recalling mulitline input from history (with the <Up> key or <C-p>) recalls it as its individual lines, not the whole input. Ideally multiline should be one history entry and allow proper editing of the recalled text.