On the off chance that there’s someone else here who uses the same oddball editor as me, here’s how I got tidal working in kakoune:
Add a file called
tidal to it’s config (as described in repl-bridge’s readme) with this content:
bash -c "ghci -ghci-script $(ghc-pkg field -f ~/.cabal/store/ghc-$(ghc --numeric-version)/package.db tidal data-dir --simple-output)/BootTidal.hs" tidal> tidal|
Then in kakoune’s config bind some commands:
map global user <ret> 'Zx: repl-bridge tidal send<ret>z' map global user a ': repl-bridge tidal send<ret>'
That gives you
<user> enter that works like shift-enter in other editors (executes the current line) and
<user> a that executes your current selection, which could get pretty crazy if you have multiple selections active. I’m sure there’s a way to send the current lexical block (like ctrl-enter in other editors) but I haven’t figured it out yet.
Generally this works pretty well. It has trouble shutting down the ghci process when you exit so sometimes you have to kill it yourself. And it doesn’t work from a kak client connected to a session, I’m not sure what’s going on there.