multiline strings editor for emacs

Dear Cafe, searched, but this didn't turn up anything -- does there exist a "multiline string editor for emacs" in haskell? I.e something that would pop-out a new buffer to edit the string, and that would be inserted and slash-aligned back into the original file once done? This would be simple enough to implement, perhaps someone has already done it? (And just to be sure: there isn't a built-in multiline quasiquoter in base, right? I know that there are multitudes of packages that implement this, but would just like something that is built in.) Thanks! -- Markus Läll

Nothing built in, but I think there's a proposal for better multiline
string support in the compiler. (Yep:
https://github.com/ghc-proposals/ghc-proposals/pull/569)
On Thu, Jan 26, 2023 at 12:13 PM Markus Läll
Dear Cafe,
searched, but this didn't turn up anything -- does there exist a "multiline string editor for emacs" in haskell? I.e something that would pop-out a new buffer to edit the string, and that would be inserted and slash-aligned back into the original file once done? This would be simple enough to implement, perhaps someone has already done it?
(And just to be sure: there isn't a built-in multiline quasiquoter in base, right? I know that there are multitudes of packages that implement this, but would just like something that is built in.)
Thanks!
-- Markus Läll _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- brandon s allbery kf8nh allbery.b@gmail.com

I've long used a program to toggle between raw text and haskell string
syntax (either wrapped words, unwrapped \-continued, or ["x", "y"]
"unlines" style). I use it with vim but it's a plain text filter:
https://github.com/elaforge/simple-src-utils
It's not very smart but has worked well enough that I haven't bothered
to fix the rough bits.
On Fri, Jan 27, 2023 at 1:26 AM Brandon Allbery
Nothing built in, but I think there's a proposal for better multiline string support in the compiler. (Yep: https://github.com/ghc-proposals/ghc-proposals/pull/569)
On Thu, Jan 26, 2023 at 12:13 PM Markus Läll
wrote: Dear Cafe,
searched, but this didn't turn up anything -- does there exist a "multiline string editor for emacs" in haskell? I.e something that would pop-out a new buffer to edit the string, and that would be inserted and slash-aligned back into the original file once done? This would be simple enough to implement, perhaps someone has already done it?
(And just to be sure: there isn't a built-in multiline quasiquoter in base, right? I know that there are multitudes of packages that implement this, but would just like something that is built in.)
Thanks!
-- Markus Läll _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- brandon s allbery kf8nh allbery.b@gmail.com _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

That's a great idea! I love "not very smart" tools like that one.
I don't know (yet) how HLS works, but is it possible to build something
like that into it so it would be more accessible to people? (Asking the
Cafe in general.) It might provide less pressure to change Haskell syntax,
i.e. https://github.com/ghc-proposals/ghc-proposals/pull/569...
On Sun, 29 Jan 2023 at 10:47, Evan Laforge
I've long used a program to toggle between raw text and haskell string syntax (either wrapped words, unwrapped \-continued, or ["x", "y"] "unlines" style). I use it with vim but it's a plain text filter: https://github.com/elaforge/simple-src-utils
It's not very smart but has worked well enough that I haven't bothered to fix the rough bits.
On Fri, Jan 27, 2023 at 1:26 AM Brandon Allbery
wrote: Nothing built in, but I think there's a proposal for better multiline string support in the compiler. (Yep: https://github.com/ghc-proposals/ghc-proposals/pull/569)
On Thu, Jan 26, 2023 at 12:13 PM Markus Läll
Dear Cafe,
searched, but this didn't turn up anything -- does there exist a
"multiline string editor for emacs" in haskell? I.e something that would
(And just to be sure: there isn't a built-in multiline quasiquoter in
wrote: pop-out a new buffer to edit the string, and that would be inserted and slash-aligned back into the original file once done? This would be simple enough to implement, perhaps someone has already done it? base, right? I know that there are multitudes of packages that implement this, but would just like something that is built in.)
Thanks!
-- Markus Läll _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- brandon s allbery kf8nh allbery.b@gmail.com _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

https://github.com/twlz0ne/separedit.el Maybe this will work. On 26.01.2023 23:12, Markus Läll wrote: Dear Cafe, searched, but this didn't turn up anything -- does there exist a "multiline string editor for emacs" in haskell? I.e something that would pop-out a new buffer to edit the string, and that would be inserted and slash-aligned back into the original file once done? This would be simple enough to implement, perhaps someone has already done it? (And just to be sure: there isn't a built-in multiline quasiquoter in base, right? I know that there are multitudes of packages that implement this, but would just like something that is built in.) Thanks! -- Markus Läll _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to:http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
participants (5)
-
Alexey Uimanov
-
Brandon Allbery
-
Bryan Richter
-
Evan Laforge
-
Markus Läll