Skip to content

GHCi multiline prompt (:set prompt2) support #915

Closed
@konn

Description

@konn

GHCi has multiline input mode which can enabled by :set +m or :{ and :}.
For example:

ghci> :set +m
ghci> let a = 12
ghci|     b = 42
ghci| 
ghci>

:{ version:

ghci> :{
ghci> let a = 12
ghci|     b = 42
ghci| :}
ghci>

Prompt for multiline input (here, ghci|) can be set by :set prompt2 "ghci| ", but we don't have any configuration item to set prompt2 in haskell-mode.
This results in the following not-so-useful-for-indenting looking:

λ> let a = 12
ghci|     b = 42
ghci| 
λ> :{
λ> let a = 12
ghci|     b = 42
ghci| :}
λ> 

So we need the way to :set prompt2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions