<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>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>
<br>
If you want to draw an analogy, then Mario's chessIO package is
the editor here, and various chess engines are "plugins",<br>
therefore I don't think that lsp package is much help as it
implements different role.<br>
<br>
- Oleg<br>
</p>
<div class="moz-cite-prefix">On 31.5.2021 11.22, YueCompl via
Haskell-Cafe wrote:<br>
</div>
<blockquote type="cite"
cite="mid:52B438A6-2551-4964-9AD4-7120288B3BD0@icloud.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
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><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>
<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>
</body>
</html>