Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,804,036 events total
2021-08-09 16:16:28 <sm> srid: cool
2021-08-09 16:16:34 <merijn> Nix shouldn't be a strict requirement ever :p
2021-08-09 16:16:46 <srid[m]> <sm> "lechner, I got it to build..." <- yea, those libraries need to be released to hackage once out of dev phase. then a simple 'cabal install' should work
2021-08-09 16:16:55 <AnselmSchler[m]> Gurkenglas: good idea, cabal does this with libraries
2021-08-09 16:17:10 <Gurkenglas> i did just run stack install lens...
2021-08-09 16:17:14 <srid[m]> well, except heist which is a fork - need to convince upstream to merge that small change
2021-08-09 16:17:22 <sm> Gurkenglas: I think you should be letting vscode haskell extension doing the installing
2021-08-09 16:17:32 <Gurkenglas> because i thought "that always takes a while, might as well do it now on the side"
2021-08-09 16:17:40 <dsal> Gurkenglas: That'd be polite. There's probably someone out there who wants that behavior.
2021-08-09 16:17:53 <AnselmSchler[m]> Can you use the Nix build system outside of NixOS? Or, even, are the two unrelated?
2021-08-09 16:17:55 <Gurkenglas> sm, that gave an error though. maybe because of the years old history of this machine.
2021-08-09 16:18:05 <AnselmSchler[m]> (I’m using an Ubuntu derivative)
2021-08-09 16:18:13 <sm> best to figure that out I'd say.. #haskell-ide-engine has all the devs
2021-08-09 16:18:39 <sm> #haskell-language-server, sorry
2021-08-09 16:18:51 <Gurkenglas> yeah they appear to have made good use of the libera stuff
2021-08-09 16:19:25 × Guest71 quits (~Guest71@217.156.31.64) (Ping timeout: 246 seconds)
2021-08-09 16:19:42 <Gurkenglas> havent received a reply in the past 3 hours, so i thought id ask the non-hls version of the question here :)
2021-08-09 16:19:59 AnselmSchler[m] is now known as schuelermine[m]
2021-08-09 16:20:00 <sm> fair enough
2021-08-09 16:20:07 <sm> they'll wake up soon
2021-08-09 16:20:25 <sm> in vs code Output -> Haskell pane you can see diagnostics from hls
2021-08-09 16:20:34 <sm> I'd check for errors there and search the hls tracker
2021-08-09 16:20:39 <Gurkenglas> maybe i should just delete everything haskell-related except what was manually written by me and then reinstall. is there a command for that?
2021-08-09 16:21:02 <sm> rm -rf ~/{.cabal,.stack,.ghc} if you really don't care...
2021-08-09 16:21:21 <sm> but there might be some config in there worth keeping
2021-08-09 16:21:31 schuelermine joins (~anselmsch@user/schuelermine)
2021-08-09 16:21:44 <Gurkenglas> I'm on Windows :P
2021-08-09 16:21:53 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 248 seconds)
2021-08-09 16:22:10 <schuelermine[m]> sm: also don’t forget rm ~/.ghcup if you use GHCup
2021-08-09 16:22:18 <sm> have you tried this in a brand new project ?
2021-08-09 16:23:21 <Gurkenglas> yeah current project is called helloworld, but i was also right in the process of trying again with hello2world in case i made it worse
2021-08-09 16:24:10 <sm> stack new foo, latest vscode, latest haskell extension <- should just work
2021-08-09 16:24:54 <schuelermine> Gurkenglas: where does GHCup, Cabal, Stack, GHC store config and cache on Windows? %APPDATA%/…?
2021-08-09 16:24:54 <Gurkenglas> and the primary folder i open in vscode needs to be the project folder, yes?
2021-08-09 16:24:58 × mattil quits (~mattilinn@87-92-142-109.rev.dnainternet.fi) (Read error: Connection reset by peer)
2021-08-09 16:25:07 <Gurkenglas> schuelermine, who knows?
2021-08-09 16:25:19 <Gurkenglas> stack should have a command for cleaning all of it up :)
2021-08-09 16:25:34 × schuelermine quits (~anselmsch@user/schuelermine) (Quit: WeeChat 3.2)
2021-08-09 16:25:36 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-08-09 16:25:43 <schuelermine[m]> same with cabal
2021-08-09 16:25:43 <schuelermine[m]> it’s a shame
2021-08-09 16:25:57 schuelermine joins (~anselmsch@user/schuelermine)
2021-08-09 16:26:48 × jneira[m] quits (~jneira@99.red-176-87-53.dynamicip.rima-tde.net) (Remote host closed the connection)
2021-08-09 16:27:53 <Gurkenglas> "stack nuke"
2021-08-09 16:27:56 geekosaur joins (~geekosaur@xmonad/geekosaur)
2021-08-09 16:28:09 × drd quits (~drd@2001:b07:a70:9f1f:1562:34de:f50f:77d4) (Ping timeout: 276 seconds)
2021-08-09 16:28:54 × schuelermine quits (~anselmsch@user/schuelermine) (Client Quit)
2021-08-09 16:29:16 <schuelermine[m]> I mean not even removing everything
2021-08-09 16:29:16 <schuelermine[m]> just garbage collection so drives don’t get stuffed with unused packages
2021-08-09 16:29:43 <Gurkenglas> (which compresses all of those folders into a diff file to what would be generated automatically, so that the babbys first .hs you wrote 10 years ago stays in the archives)
2021-08-09 16:31:13 <Gurkenglas> But maybe "stack, I would like a sysadmin to be unable to tell whether there was ever a haskeller on this machine."
2021-08-09 16:32:03 nvmd joins (~nvmd@user/nvmd)
2021-08-09 16:32:37 <schuelermine[m]> well that’d be called stack uninstall-stack if I got to name it
2021-08-09 16:32:43 mattil joins (~mattilinn@87-92-142-109.rev.dnainternet.fi)
2021-08-09 16:37:04 <Gurkenglas> Alright so vscode finds no updates, hls is on 1.6.0, I did stack new foo, opened that folder in a new window, i ctrl-click on someFunc and it does nothing
2021-08-09 16:37:51 <sm> schuelermine: stack-clean-old is not built in, but good
2021-08-09 16:37:52 <Gurkenglas> There is a suggestion to replace import Lib with import Lib ( someFunc ) so it's not completely dead
2021-08-09 16:38:22 wallymathieu joins (~wallymath@81-234-151-21-no94.tbcn.telia.com)
2021-08-09 16:38:33 <Gurkenglas> sm, is stack install stack-clean-old correct in this case?
2021-08-09 16:39:06 <sm> yup, though usually best to run that in your home directory (to avoid a project-specific resolver)
2021-08-09 16:39:26 ec joins (~ec@gateway/tor-sasl/ec)
2021-08-09 16:39:30 xsperry joins (~as@user/xsperry)
2021-08-09 16:39:38 <Gurkenglas> unix needed :D
2021-08-09 16:39:56 <geekosaur> root of the drive, then
2021-08-09 16:40:19 <sm> Gurkenglas: where do you see that ?
2021-08-09 16:40:19 <Gurkenglas> no, i mean, stack install stack-clean-old tells me to add unix to my extra-deps.
2021-08-09 16:40:52 <Gurkenglas> They should say "Some different approaches to resolving this:" when there's actually more than one approach ._.
2021-08-09 16:40:57 <sm> I don't think that advice is right
2021-08-09 16:41:05 cheater joins (~Username@user/cheater)
2021-08-09 16:41:39 <sm> ah maybe it is. stack-clean-old depends on extra which depends on unix (not unix-compat). Sorry
2021-08-09 16:41:43 <sm> afk
2021-08-09 16:42:59 jakalx joins (~jakalx@base.jakalx.net)
2021-08-09 16:45:38 <Gurkenglas> goto-definition did work in one of the previous helloworlds. stack build didnt make it start working. it works within the file but not across files.
2021-08-09 16:49:04 schuelermine joins (~anselmsch@user/schuelermine)
2021-08-09 16:49:40 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-08-09 16:50:37 <Gurkenglas> restarting the hls server gives this output, which doesn't seem right. https://paste.tomsmeding.com/MQUCkhpo
2021-08-09 16:50:46 <Gurkenglas> (if i dont have a .hs open)
2021-08-09 16:52:30 <Gurkenglas> the "Haskell" vscode extension says it's on version 1.6.0, but the hls output says it's hls 1.3.0.0
2021-08-09 16:52:30 × ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 244 seconds)
2021-08-09 16:54:12 Pickchea joins (~private@user/pickchea)
2021-08-09 16:54:57 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 248 seconds)
2021-08-09 16:55:10 mikoto-chan joins (~mikoto-ch@ip-193-121-10-50.dsl.scarlet.be)
2021-08-09 16:56:05 nilweed joins (~nilweed@c-73-161-233-4.hsd1.mi.comcast.net)
2021-08-09 16:57:14 <Gurkenglas> When I do the same thing in WSL, the same thing happens - apparently it wasn't because of windows
2021-08-09 16:57:26 <Gurkenglas> except that this time goto-definition also doesn't work within-file.
2021-08-09 16:58:13 × azeem quits (~azeem@dynamic-adsl-84-220-236-17.clienti.tiscali.it) (Ping timeout: 258 seconds)
2021-08-09 17:00:42 × schuelermine[m] quits (~schuelerm@2001:470:69fc:105::d032) (Quit: Reconnecting)
2021-08-09 17:00:57 schuelermine[m] joins (~schuelerm@user/schuelermine)
2021-08-09 17:01:00 azeem joins (~azeem@176.201.37.131)
2021-08-09 17:01:42 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Remote host closed the connection)
2021-08-09 17:01:53 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 248 seconds)
2021-08-09 17:03:19 × aplainzetakind quits (~johndoe@captainludd.powered.by.lunarbnc.net) (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net)
2021-08-09 17:03:30 × schuelermine quits (~anselmsch@user/schuelermine) (Quit: WeeChat 3.2)
2021-08-09 17:03:42 ec joins (~ec@gateway/tor-sasl/ec)
2021-08-09 17:03:47 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
2021-08-09 17:05:08 aplainzetakind joins (~johndoe@captainludd.powered.by.lunarbnc.net)
2021-08-09 17:07:20 schuelermine joins (~anselmsch@user/schuelermine)
2021-08-09 17:07:30 <lechner> srid[m] sm: Hi, any ideas what i can do about these compilation errors for 'ema' using only cabal.project (and not stack)? Thanks! https://paste.debian.net/1207061/
2021-08-09 17:08:35 <lechner> srid[m]: I am now also on Matrix now but it's very new for me.
2021-08-09 17:08:59 × azeem quits (~azeem@176.201.37.131) (Read error: Connection reset by peer)

All times are in UTC.