Replies: 1 comment 3 replies
-
|
Yes, see |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I'm pretty new to Haskell (and Nix), so sorry if this is a silly question.
I've been trying to set up a Hakyll site using this template. I got everything built and working, but when I actually open the code for editing, haskell-tools.nvim crashes. Upon reviewing the logs, this is likely because it calls
haskell-language-server-wrapper, which tells it to runhaskell-language-serverfrom the installation handled by Mason, which can't pick up the local Haskell dependencies managed by Nix.I managed to get it working in the meantime with a dirty hack (symlinking the nix store's executable to the Mason install location), but I'm hoping there's a much better way to do this. Checking the outputs of
which haskell-language-serverandwhich haskell-language-wrapper, I see that they are both in the nix store. Furthermore, runninghaskell-language-server-wrapperdirectly seems to be successful with no errors. However, haskell-tools seems to ignore the haskell-language-server executables provided by nix and directly use the system ones which fail.Am I doing something wrong? How can I make this work with Nix?
Beta Was this translation helpful? Give feedback.
All reactions