<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Ah yes, their roles are flipped.<div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 2021-05-31, at 16:40, Oleg Grenrus <<a href="mailto:oleg.grenrus@iki.fi" class="">oleg.grenrus@iki.fi</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div class=""><p class="">LSP is not applicable. Please read about UCI,
<a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Universal_Chess_Interface">https://en.wikipedia.org/wiki/Universal_Chess_Interface</a>. I.e.
change of protocol is not possible.<br class="">
<br class="">
If you want to draw an analogy, then Mario's chessIO package is
the editor here, and various chess engines are "plugins",<br class="">
therefore I don't think that lsp package is much help as it
implements different role.<br class="">
<br class="">
- Oleg<br class="">
</p>
<div class="moz-cite-prefix">On 31.5.2021 11.22, YueCompl via
Haskell-Cafe wrote:<br class="">
</div>
<blockquote type="cite" cite="mid:52B438A6-2551-4964-9AD4-7120288B3BD0@icloud.com" class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
I suggest <a href="https://github.com/haskell/lsp" class="" moz-do-not-send="true">https://github.com/haskell/lsp</a> should
be considered the "most idiomatic" way to bridge Haskell domain
code with external programs. It speaks JSON-RPC based LSP (<a href="https://microsoft.github.io/language-server-protocol" class="" moz-do-not-send="true">https://microsoft.github.io/language-server-protocol</a>)
with VSCode and other IDEs.<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 2021-05-29, at 22:59, Mario Lang <<a href="mailto:mlang@blind.guru" class="" moz-do-not-send="true">mlang@blind.guru</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi.<br class="">
<br class="">
For my chessIO package, I wrote a module to communicate
with<br class="">
UCI (Universal Chess Interface) speaking chess engines.<br class="">
<br class="">
This sort of thing is pretty new to me.<br class="">
I settled to use attoparsec for parsing and<br class="">
TChan to feed incoming data to the library users.<br class="">
This is the first thing that I found which looked like it
could work...<br class="">
<br class="">
I would be thrilled if someone with more experience in
this area would<br class="">
give my approach a review. Let me know if something is
glaringly<br class="">
unidiomatic, I am sure you will find things.<br class="">
<br class="">
<a href="https://github.com/mlang/chessIO/blob/master/src/Game/Chess/UCI.hs" class="" moz-do-not-send="true">https://github.com/mlang/chessIO/blob/master/src/Game/Chess/UCI.hs</a><br class="">
<br class="">
This is for me to learn, and to avoid putting weird stuff
on hackage...<br class="">
I actually prefer private mail, but a GitHub issue or even
a PR are also<br class="">
highly welcome.<br class="">
<br class="">
Thanks.<br class="">
<br class="">
-- <br class="">
CYa,<br class="">
⡍⠁⠗⠊⠕<br class="">
_______________________________________________<br class="">
Haskell-Cafe mailing list<br class="">
To (un)subscribe, modify options or view archives go to:<br class="">
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br class="">
Only members subscribed via the mailman list are allowed
to post.</div>
</div>
</blockquote>
</div>
<br class="">
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
</blockquote>
</div>
_______________________________________________<br class="">Haskell-Cafe mailing list<br class="">To (un)subscribe, modify options or view archives go to:<br class=""><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br class="">Only members subscribed via the mailman list are allowed to post.</div></blockquote></div><br class=""></div></body></html>