Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→
Page 1 .. 132 133 134 135 136 137 138 139 140 141 142 .. 5022
502,152 events total
2020-09-22 11:52:51 <dminuoso> Unless that's what AWizzArd is looking for :)
2020-09-22 11:53:00 jedws joins (~jedws@121.209.139.222)
2020-09-22 11:53:05 × mariatsji quits (~mariatsji@2a01:79d:53aa:c66c:342b:5324:f59b:5b0e) ()
2020-09-22 11:53:18 × jedws quits (~jedws@121.209.139.222) (Client Quit)
2020-09-22 11:54:45 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds)
2020-09-22 11:55:04 <Uniaika> dminuoso: aren't many nix derivations just wrappers for the cabal package? :P
2020-09-22 11:55:06 Amras joins (~Amras@unaffiliated/amras0000)
2020-09-22 11:55:36 aaaaaa joins (~ArthurStr@host-91-90-11-13.soborka.net)
2020-09-22 11:56:02 × cpressey quits (~cpressey@88.144.69.118) (Quit: WeeChat 1.9.1)
2020-09-22 11:56:15 <AWizzArd> I thought there might be a binary, compiled for a certain GHC version.
2020-09-22 11:58:14 alx741 joins (~alx741@186.178.110.154)
2020-09-22 12:00:02 × Cros1 quits (~Cros@217.146.82.202) ()
2020-09-22 12:02:03 fendor joins (~fendor@77.119.129.26.wireless.dyn.drei.com)
2020-09-22 12:06:02 <Uniaika> Ah, that's a different request
2020-09-22 12:06:11 <Uniaika> I'm getting those directly from their GitHub release page
2020-09-22 12:06:21 <Uniaika> I'm pretty sure they don't exist in nixpkgs
2020-09-22 12:06:25 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-22 12:06:27 × dirediresalt quits (DirefulSal@gateway/vpn/privateinternetaccess/direfulsalt) (Remote host closed the connection)
2020-09-22 12:07:09 <AWizzArd> Uniaika: I would like to include the language server in my Nix environment. I don’t want to install the HLS globally cause different projects may want to use different GHC versions.
2020-09-22 12:07:21 dirediresalt joins (DirefulSal@gateway/vpn/privateinternetaccess/direfulsalt)
2020-09-22 12:07:30 <Uniaika> AWizzArd: well, that's why haskell-language-server-wrapper is for
2020-09-22 12:07:34 <dminuoso> AWizzArd: https://github.com/haskell/haskell-language-server/issues/122
2020-09-22 12:07:55 <Uniaika> typically in my path I have : .local/bin/haskell-language-server-8.6.5* .local/bin/haskell-language-server-8.8.3* .local/bin/haskell-language-server-wrapper*
2020-09-22 12:08:10 <AWizzArd> My idea was to include the HLS in each project. Then I could start a nix shell in which I call Emacs, so that this instance of Emacs can "see" the specific HLS.
2020-09-22 12:08:36 dminuoso kicks back, thinking ghcid is the sweet spot of "ease of setup and future compatibility"
2020-09-22 12:08:53 <dminuoso> And for what it brings. :)
2020-09-22 12:09:29 <dminuoso> Maybe I should try out hls to know what the fuzz is about, but so far ghcid has not kept me wanting more.
2020-09-22 12:10:36 urodna joins (~urodna@unaffiliated/urodna)
2020-09-22 12:11:05 mmohammadi9812 joins (~mmohammad@2.178.188.114)
2020-09-22 12:11:20 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 272 seconds)
2020-09-22 12:15:37 shad0w_ joins (~shad0w_@160.202.36.59)
2020-09-22 12:15:39 <siraben> Why doesn't haskell-lsp in Emacs recognize packages in my cabal file?
2020-09-22 12:15:47 × darjeeling_ quits (~darjeelin@122.245.219.58) (Ping timeout: 240 seconds)
2020-09-22 12:15:50 <siraben> Like if I have project-specific dependencies, it says the library could not be found
2020-09-22 12:16:17 <maralorn> AWizzArd: If you take haskell-language-server from the haskell.packages.ghcxxx version that you use for your project you should be fine. Although we don‘t build or test hls for anything other than the default ghc version.
2020-09-22 12:17:17 adamwespiser joins (~adam_wesp@209.6.42.110)
2020-09-22 12:17:32 <maralorn> Meaning: hls is always implicitly build for the ghc version you use to build it.
2020-09-22 12:17:44 darjeeling_ joins (~darjeelin@122.245.219.58)
2020-09-22 12:17:59 <maralorn> dminuoso: I actually have projects for which hls works and ghcid fails.^^
2020-09-22 12:18:39 <dminuoso> maralorn: Curious, why is that?
2020-09-22 12:19:14 <merijn> dminuoso: I don't think ghcid is remotely comparable to ghcide/hls, tbh
2020-09-22 12:19:57 <merijn> dminuoso: I want warning/errors in my editor and the ability to query types. ghcid requires sacrificing an entire terminal window to it and can't even tell you the type of an expression
2020-09-22 12:19:59 <maralorn> dminuoso: Not sure. It's probably easy to fix. But just saying it also sometimes fails to deliver ootb.
2020-09-22 12:20:01 drbean joins (~drbean@TC210-63-209-182.static.apol.com.tw)
2020-09-22 12:20:34 <dminuoso> merijn: I can query types quickly with (f :: _), ghcid gives me a prompt response. ;)
2020-09-22 12:20:36 <AWizzArd> maralorn: how is "default ghc version" defined?
2020-09-22 12:20:53 <dminuoso> merijn: And for the "entire terminal window" that's not true. I have my ghcid running in compilation-mode in emacs just fine
2020-09-22 12:21:40 <maralorn> AWizzArd: It's the one used to build all packages in pkgs.haskellPackages and the one you get with pkgs.ghc. So you can see the default version just in the package search.
2020-09-22 12:21:52 <merijn> dminuoso: Right, so all I have to do is switch to a completely different editor and get a complicated setup to work there :p
2020-09-22 12:21:57 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-22 12:22:08 <maralorn> Right now it's 8.6.5 in 20.03 and 8.8.4 on 20.09 and unstable.
2020-09-22 12:22:31 <dminuoso> Not sure about complicated setup *shrugs*
2020-09-22 12:22:42 <dminuoso> It's a really simplistic elisp file to tie ghcid into emacs
2020-09-22 12:22:49 <merijn> dminuoso: It's emacs, any setup is gonna be complicated :)
2020-09-22 12:23:02 <dminuoso> Sounds to me like you have already made up your mind then
2020-09-22 12:23:30 machinedgod joins (~machinedg@d67-193-126-196.home3.cgocable.net)
2020-09-22 12:23:34 <maralorn> For what it's worth the hls feedback is (or at least feels) just significantly faster then ghcid. Also hls has a quickly growing number of amazing features. Like applying warning corrections, etc.
2020-09-22 12:23:41 <siraben> How can I make Haskell mode detect cabal packages?
2020-09-22 12:24:22 <AWizzArd> maralorn: having an implicit build for my concrete ghc version is good of course. It would be nice if I didn’t have to specify version numbers in multiple places. Optimal is just to pin a certain Nix repo hash.
2020-09-22 12:25:33 <dminuoso> maralorn: I dont want a fight at all, but how can lsp be faster? How does lsp obtain its information?
2020-09-22 12:25:42 <dminuoso> Surely it interfaces with ghc or ghci under the hood
2020-09-22 12:26:03 <dminuoso> (I dont know the details of how ghcide works internally)
2020-09-22 12:26:09 × Kaivo quits (~Kaivo@ec2-15-222-231-32.ca-central-1.compute.amazonaws.com) (Quit: WeeChat 2.9)
2020-09-22 12:26:32 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 265 seconds)
2020-09-22 12:26:54 <maralorn> dminuoso: I don‘t know. It just has a running ghc-session and only re-typechecks the changed parts.
2020-09-22 12:27:10 × adamwespiser quits (~adam_wesp@209.6.42.110) (Ping timeout: 272 seconds)
2020-09-22 12:27:19 <maralorn> I just can say that often the type error appears milliseconds after leaving insert mode.
2020-09-22 12:27:21 <dminuoso> Fair enough, I can see how that could be faster. :)
2020-09-22 12:27:27 <AWizzArd> Currently I like Intero most. Left-hand side is code, right-hand side the repl. I can mark sub expressions and get their types. Alas, it’s no longer maintained and it’s just a question of time until HLS will have overtaken.
2020-09-22 12:27:45 <dminuoso> How does ghcide fare with the unstable GHC API?
2020-09-22 12:28:09 <dminuoso> I mean this is my main motivator for ghcid, it just works regardless of how the GHC API changes
2020-09-22 12:28:13 <maralorn> dminuoso: With tons of CPP. It's a nightmare.
2020-09-22 12:28:16 <dminuoso> Heh
2020-09-22 12:29:14 <maralorn> dminuoso: But right now it's really well maintained. So I don‘t think that new ghc versions will loose support in the next years.
2020-09-22 12:30:20 <maralorn> siraben: I don‘t understand your question. But have you tried writting an explicit hie.yaml file?
2020-09-22 12:30:30 <dminuoso> I might give it a try some day. From the looks of it, it's nicely modular, I just not convinced I want to drag lsp-ui into emacs :(
2020-09-22 12:30:40 <dminuoso> Im a big fan of my sleek and small emacs setup
2020-09-22 12:30:51 <dminuoso> (or is there an lsp tie into compilation-mode?)
2020-09-22 12:30:53 <siraben> maralorn: I don't have an explicit hie.yaml, basically I have my dependencies in the cabal file and expect HIE to see them as well
2020-09-22 12:31:11 <ohmysomuchuser> Hello all. I'm having trouble recompiling xmonad with ghc 8.8.3: I am running FreeBSD 12; cabal-install installed from packages; latest version installed with `cabal install Cabal cabal-install`; installed xmonad and xmonad-contrib via cabal with command `cabal install --overwrite-policy=always xmonad xmonad-contrib` - completed without error; $PATH includes $HOME/.cabal/bin; there is a symlink to
2020-09-22 12:31:17 <ohmysomuchuser> xmonad inside (symlink created successfully); `whereis xmonad` returns $HOME/.cabal/bin/xmonad; but xmonad --recompile causes the error: "Could not find module XMonad"; neither does it find any of the xmonad-contrib modules. Everything was working before i updated my system. I have made no changes to $HOME/.xmonad/xmonad.hs
2020-09-22 12:31:29 <maralorn> siraben: Oh, I don‘t know anything about HIE. But you I would also expect it to see them.
2020-09-22 12:32:29 <ohmysomuchuser> My config file: https://paste.mozilla.org/2c8jfWF5
2020-09-22 12:32:37 <siraben> Hang on, what's the difference between HIE and haskell-language-serevr?
2020-09-22 12:32:38 <dminuoso> ohmysomuchuser: Presumably $HOME/.cabal/bin/ is not on PATH for the user who initially started xmonad?
2020-09-22 12:32:53 <merijn> siraben: None
2020-09-22 12:32:53 <siraben> I have this in my config, `(setq lsp-haskell-process-path-hie "haskell-language-server-wrapper")`
2020-09-22 12:32:53 lolo_ joins (~laurent@clg-coutanciere-44.dyn.ac-nantes.fr)
2020-09-22 12:32:55 <dminuoso> siraben: haskell-language-server is ghcide bolted onto lsp
2020-09-22 12:33:03 <dminuoso> (roughly)
2020-09-22 12:33:05 <merijn> siraben: HIE is/has been merging with hls
2020-09-22 12:33:20 <merijn> siraben: See https://mpickering.github.io/ide/posts/2020-05-08-state-of-haskell-ide.html
2020-09-22 12:33:29 <dminuoso> Ah heh indeed
2020-09-22 12:33:35 <siraben> Hm, then I don't get why emacs isn't seeing my cabal packages
2020-09-22 12:33:37 × lolo_ quits (~laurent@clg-coutanciere-44.dyn.ac-nantes.fr) (Client Quit)
2020-09-22 12:33:44 <siraben> I'm not using a nix shell for this project because of custom overrides
2020-09-22 12:34:00 <ohmysomuchuser> @dminuoso I believe it is: echo $PATH shows it is.
2020-09-22 12:34:00 <lambdabot> Unknown command, try @list
2020-09-22 12:34:12 <siraben> And one of the dependencies has been marked broken on pkgs.haskellPackages
2020-09-22 12:34:17 <dminuoso> ohmysomuchuser: "for the user who initially started xmonad"

All times are in UTC.