Skip to content

option to replace the command marker "$>" with an alternative for single line commands#347

Open
prednaz wants to merge 1 commit intondmitchell:masterfrom
prednaz:master
Open

option to replace the command marker "$>" with an alternative for single line commands#347
prednaz wants to merge 1 commit intondmitchell:masterfrom
prednaz:master

Conversation

@prednaz
Copy link
Copy Markdown

@prednaz prednaz commented Nov 25, 2021

This adds a command line option to replace the command marker "$>" with an alternative. Only single line commands like

-- $> not True

are affected.

Mutliline commands like

{- $>
not True
not False
<$ -}

are not affected.

I needed this for code that contains Haskell Language Server style command comments.

But --eval-mark ">>>" does not achieve perfect interoperability because the Haskell Language Server's multiline commands are still not understood.

I admit that Haskell Language Server's evaluation feature does not serve the exact same purpose as ghcid's. But sometimes, especially in an educational context, it is used exactly like ghcid's evaluation feature.

Thanks for the pull request!

By raising this pull request you confirm you are licensing your contribution under all licenses that apply to this project (see LICENSE) and that you have no patents covering your contribution.

If you care, my PR preferences are at https://github.com/ndmitchell/neil#contributions, but they're all guidelines, and I'm not too fussy - you don't have to read them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant