-
|
I wanted to use haskell-language-server-wrapper inside CoC-vim to edit my xmonad configs. It is a single hs file and, because I use arch, all the haskell libraries in my computer are dynamic (including the Prelude). Because of this (at least I think that's the reason), I always get errors saying the libraries are missing. Is there any way to fix this? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
In the issues about dynamic linking the usual suggested workaround is built haskell-language-server itself with dynamic linking: #1160 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately, dynamic linking haskell-language-server can't solve this issue, because hls will use @felixonmars and I are working on this recently, and we decided to patch hie-bios. I believe hls can be installed directly from pacman on Arch Linux in the near future :) |
Beta Was this translation helpful? Give feedback.
Unfortunately, dynamic linking haskell-language-server can't solve this issue, because hls will use
defaultCradlegiven by hie-bios to load xmonad.hs if there is no explicit cradle config (at least on my Arch Linux machine). However,defaultCradlecontains an emptycomponentOptions, so hls can not know this standalone hs module should be loaded dynamically. Here is a related issue: haskell/hie-bios#257.@felixonmars and I are working on this recently, and we decided to patch hie-bios. I believe hls can be installed directly from pacman on Arch Linux in the near future :)