You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing down this feature request in case somebody may be interested implementing this... :-)
Haskell2010 allows for multi-line strings via \ \-gaps (w/o requiring to invoke TH+QQ which IMO is overkill if it's just to be able to write here-docs-ish multi-line strings), e.g.
longStr ="Lorem ipsum dolor sit amet, \ \consectetur adipiscing elit, \ \sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \ \Ut enim ad minim veniam, \ \quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
haskell-mode could provide a way to "zoom" (think of a lens =) ) into that string-literal via a temporary buffer, allowing to edit the string, and when finished, update the string-literal in the Haskell code.
One may optionally want to allow to convert \n to/from newlines in the string-buffer-view. As well as allow to convert string-literals with \ \-gaps to ones w/o such gaps (this is sadly needed when enabling CPP).
See haskell-string-literal-decode1 where I included support for string-gaps while decoding (with this ticket's feature in mind...)
The text was updated successfully, but these errors were encountered:
Thanks!
If you would like to split some smaller well defined tasks then you could
create more issues in github describe in greater detail what is to be done
and put `well-defined-task` label on them.
There are people out there that do not know where and how to start hacking
on haskell-mode and `well-defined-task` label helps them to get started.
gracjan
changed the title
multi-line string editing
Multi line string editing
Jun 18, 2015
gracjan
changed the title
Multi line string editing
[Discussion] Multi line string editing
Sep 2, 2015
I'm writing down this feature request in case somebody may be interested implementing this... :-)
Haskell2010 allows for multi-line strings via
\ \
-gaps (w/o requiring to invoke TH+QQ which IMO is overkill if it's just to be able to write here-docs-ish multi-line strings), e.g.haskell-mode could provide a way to "zoom" (think of a
lens
=) ) into that string-literal via a temporary buffer, allowing to edit the string, and when finished, update the string-literal in the Haskell code.One may optionally want to allow to convert
\n
to/from newlines in the string-buffer-view. As well as allow to convert string-literals with\ \
-gaps to ones w/o such gaps (this is sadly needed when enablingCPP
).See
haskell-string-literal-decode1
where I included support for string-gaps while decoding (with this ticket's feature in mind...)The text was updated successfully, but these errors were encountered: