2021/10/16

2021-10-16 00:03:23 +0200 <geekosaur> we test it with a number of ghc versions, should include 8.10.4
2021-10-16 00:04:02 +0200 <mc47> Guest41 it's generally not a good idea to manage project dependencies globally
2021-10-16 00:04:13 +0200 <mc47> (and not just with Haskell)
2021-10-16 00:04:16 +0200 <geekosaur> if you install using cabal, you either need to use a cabal-based build script or `cabal install --lib xmonad xmonad-contrib`
2021-10-16 00:05:27 +0200 <geekosaur> I prefer the former, there's a suitable buildscript (which you may need to edit) at https://github.com/xmonad/xmonad-testing/blob/master/build-scripts/build-with-cabal.sh
2021-10-16 00:07:57 +0200 <geekosaur> the buildscript expects an xmonad.project file in the same directory and the xmonad and xmonad-contrib checkouts beside it if you're running from git; also a cabal file for your xmonad.hs
2021-10-16 00:09:23 +0200wonko(~wjc@62.115.229.50) (Ping timeout: 264 seconds)
2021-10-16 00:09:27 +0200 <liskin> I think what Guest41 is experiencing can actually happen with the instructions we have in INSTALL.md
2021-10-16 00:10:08 +0200 <liskin> cabal install --lib might break when the deps are updated, even with --package-env
2021-10-16 00:10:36 +0200 <liskin> and the solution, if I remember correctly, is to delete the package env files
2021-10-16 00:10:48 +0200 <liskin> which I don't remember the names of
2021-10-16 00:11:15 +0200 <liskin> something like ~/.xmonad/.ghc.environment.x86_64-linux-8.8.3
2021-10-16 00:11:39 +0200 <geekosaur> I thought they went under ~/.ghc
2021-10-16 00:11:43 +0200 <liskin> Guest41: can you give that a try? if it works, we absolutely need to document that
2021-10-16 00:11:53 +0200 <liskin> geekosaur: they go wherever --package-env says they should
2021-10-16 00:11:57 +0200 <geekosaur> and if there are updates you need to delete the earlier lines or it will use those
2021-10-16 00:12:22 +0200 <liskin> and we recommend using --package-env so that ghc invoked from ~/.xmonad will pick it up automatically
2021-10-16 00:12:29 +0200 <liskin> (because xmonad --recompile invokes ghc from there)
2021-10-16 00:12:35 +0200 <geekosaur> sorry, missed that
2021-10-16 00:14:00 +0200 <Guest41> i have no .ghc.environments in .xmonad, and x86_64-linux-8.10.7 in .ghc
2021-10-16 00:15:30 +0200 <liskin> Guest41: did you use --package-env when installing xmonad for the first time or just --lib?
2021-10-16 00:16:13 +0200humky(~humky@user/humky) (Quit: Leaving)
2021-10-16 00:16:36 +0200 <Guest41> just --lib i think
2021-10-16 00:17:06 +0200 <liskin> in that case you might need to delete that stuff from ~/.ghc
2021-10-16 00:17:20 +0200 <liskin> or perhaps cabal has some uninstall subcommand?
2021-10-16 00:17:36 +0200 <liskin> probably not
2021-10-16 00:18:03 +0200 <Guest41> would rebuilding it with cabal help?
2021-10-16 00:18:44 +0200 <liskin> oh yes, that will certianly be necessary either way
2021-10-16 00:19:01 +0200 <liskin> (we should've started with that actually :-))
2021-10-16 00:21:06 +0200humky(~humky@user/humky)
2021-10-16 00:21:59 +0200 <Guest41> and should mod+q do the same as running xmonad --recompile?
2021-10-16 00:22:50 +0200 <Guest41> because that does nothing, and running --recompile in terminal shows the error
2021-10-16 00:23:48 +0200 <liskin> well it should do the same, but it uses xmessage to show the error, which you possibly don't have?
2021-10-16 00:24:13 +0200 <liskin> the error from mod+q should also be logged somewhere
2021-10-16 00:24:34 +0200 <liskin> like .xsession-errors or systemd journal or wherever your session's stderr goes
2021-10-16 00:27:01 +0200seschwar(~seschwar@user/seschwar) (Quit: :wq)
2021-10-16 00:28:50 +0200 <Guest41> what would be the easiest way to see if it works? :)
2021-10-16 00:29:01 +0200 <Guest41> this is my current config
2021-10-16 00:29:02 +0200 <Guest41> import XMonad
2021-10-16 00:29:03 +0200 <Guest41> main = xmonad defaultConfig
2021-10-16 00:29:03 +0200 <Guest41> { modMask = mod4Mask -- Use Super instead of Alt
2021-10-16 00:29:04 +0200 <Guest41> , terminal = "alacritty"
2021-10-16 00:29:04 +0200 <Guest41> }
2021-10-16 00:29:48 +0200 <liskin> changing the terminal, probably :-)
2021-10-16 00:29:52 +0200 <Guest41> reinstalling with cabal seemed to help
2021-10-16 00:29:53 +0200 <liskin> or the modmask
2021-10-16 00:32:27 +0200alternateved(~user@staticline-31-183-147-179.toya.net.pl) (Remote host closed the connection)
2021-10-16 00:33:59 +0200Guest41(~Guest41@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) (Quit: Client closed)
2021-10-16 00:34:48 +0200Guest41(~Guest41@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb)
2021-10-16 00:35:54 +0200Guest41(~Guest41@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) (Client Quit)
2021-10-16 00:37:00 +0200Guest31(~Guest31@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb)
2021-10-16 00:37:18 +0200rundown(~eb0t@2a02:c7d:f20e:ed00:216:44ff:fe6a:c888)
2021-10-16 00:41:17 +0200 <Guest31> hello again :)
2021-10-16 00:42:17 +0200 <Guest31> tried to recompile, and it seems to work after reinstalling, but it doesnt change the config
2021-10-16 00:43:23 +0200 <Guest31> XMonad will use ghc to recompile, because "/home/ranmacar/.xmonad/build" does not exist. ,
2021-10-16 00:43:40 +0200 <Guest31> is this normal?
2021-10-16 00:43:46 +0200 <liskin> yes
2021-10-16 00:45:03 +0200 <liskin> (although the message is a bit different in the latest version…)
2021-10-16 00:45:56 +0200 <Guest31> could the problem be in how i start the session?
2021-10-16 00:47:01 +0200 <Guest31> its just an xmonad.session with exec=xmonad
2021-10-16 00:47:29 +0200 <Guest31> *xmonad.desktop
2021-10-16 00:51:12 +0200 <Guest31> changing the terminal and mod+q does nothing
2021-10-16 00:51:38 +0200 <Guest31> recompiling from terminal works, but doesnt change the terminal
2021-10-16 00:52:51 +0200Guest31(~Guest31@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) (Quit: Client closed)
2021-10-16 00:53:24 +0200Guest31(~Guest31@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb)
2021-10-16 00:54:59 +0200 <Guest31> only restarting the session seems to apply the changes
2021-10-16 00:57:06 +0200 <geekosaur> ou using the right mod key? if you're still using the one you pasted earlier, it'll be the windows key instead of (left) alt
2021-10-16 00:57:18 +0200 <geekosaur> *are you using
2021-10-16 00:58:52 +0200 <Guest31> i think there might be something wrong with my paths :/
2021-10-16 00:59:31 +0200 <Guest31> will sleep on it :)
2021-10-16 00:59:37 +0200 <Guest31> thanks everyone
2021-10-16 01:01:43 +0200Guest31(~Guest31@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) (Quit: Client closed)
2021-10-16 01:10:55 +0200mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)
2021-10-16 01:12:36 +0200rundown(~eb0t@2a02:c7d:f20e:ed00:216:44ff:fe6a:c888) (Ping timeout: 245 seconds)
2021-10-16 01:28:12 +0200 <FOSSHuman[m]> Hey guys, one of my monitors are old and disconnect sometimes, I was wondering how I would run a script (simple wallpaper setter script using feh) on screen change events, would I use XMonad.Hooks.Rescreen??
2021-10-16 01:28:54 +0200 <geekosaur> yes
2021-10-16 01:31:18 +0200 <FOSSHuman[m]> K thanks!!
2021-10-16 01:37:02 +0200rundown(~eb0t@90.197.81.245)
2021-10-16 02:23:43 +0200ectospasm(~ectospasm@user/ectospasm) (Quit: WeeChat 3.3)
2021-10-16 02:36:57 +0200ectospasm(~ectospasm@user/ectospasm)
2021-10-16 02:37:29 +0200ectospasm(~ectospasm@user/ectospasm) (Client Quit)
2021-10-16 02:39:57 +0200ectospasm(~ectospasm@user/ectospasm)
2021-10-16 04:03:30 +0200banc(banc@gateway/vpn/airvpn/banc) (Ping timeout: 265 seconds)
2021-10-16 04:08:08 +0200pl(sid98063@id-98063.helmsley.irccloud.com) (Ping timeout: 246 seconds)
2021-10-16 04:09:28 +0200pl(sid98063@helmsley.irccloud.com)
2021-10-16 04:21:23 +0200rundown(~eb0t@90.197.81.245) (Ping timeout: 264 seconds)
2021-10-16 04:23:00 +0200rundown(~eb0t@90.194.34.18)
2021-10-16 04:24:22 +0200banc(banc@gateway/vpn/airvpn/banc)
2021-10-16 04:45:09 +0200eyenx(~m-5paiux@eyenx.ch) (Remote host closed the connection)
2021-10-16 04:45:26 +0200eyenx(~m-5paiux@eyenx.ch)
2021-10-16 04:47:49 +0200td_(~td@muedsl-82-207-238-175.citykom.de) (Ping timeout: 252 seconds)
2021-10-16 05:21:32 +0200rundown(~eb0t@90.194.34.18) (Ping timeout: 268 seconds)
2021-10-16 05:23:17 +0200rundown(~eb0t@90.194.37.187)
2021-10-16 05:32:48 +0200HashOpenSores
2021-10-16 07:26:22 +0200abhixec(~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
2021-10-16 07:43:39 +0200OpenSoresHash
2021-10-16 08:00:01 +0200rundown(~eb0t@90.194.37.187) (Ping timeout: 268 seconds)
2021-10-16 09:39:13 +0200wonko(~wjc@62.115.229.50)
2021-10-16 09:46:21 +0200cfricke(~cfricke@user/cfricke)
2021-10-16 10:04:34 +0200werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 252 seconds)
2021-10-16 10:36:57 +0200Solidwonders if it's worth defining "proper" versions of <&&> and <||> at this point
2021-10-16 10:37:16 +0200 <liskin> proper as in short-circuiting?
2021-10-16 10:37:26 +0200 <Solid> I've seen them used more and more lately (maybe that's just my impression) and I really don't like that they're strict on both arguments
2021-10-16 10:37:28 +0200 <Solid> yes
2021-10-16 10:37:59 +0200 <Solid> s/ on / in /
2021-10-16 10:38:08 +0200 <liskin> it'd be a breaking change but I'd say it might be worth it
2021-10-16 10:43:35 +0200wonko(~wjc@62.115.229.50) (Ping timeout: 264 seconds)
2021-10-16 11:12:17 +0200ranmacar(~ranmacar@2001:16b8:5c51:6500:2a39:26ff:fe02:85bb)
2021-10-16 11:13:07 +0200 <ranmacar> Hello! What could be the problem if mod+q doesn't work?
2021-10-16 11:14:20 +0200 <Solid> does `xmonad --recompile' in a terminal work?
2021-10-16 11:15:18 +0200 <ranmacar> yes, but doesn't apply the changes
2021-10-16 11:16:14 +0200 <ranmacar> just prints "XMonad will use ghc to recompile, because "/home/ranmacar/.xmonad/build" does not exist.
2021-10-16 11:16:15 +0200 <ranmacar> XMonad recompilation process exited with success!"
2021-10-16 11:18:56 +0200 <Solid> `xmonad --recompile && xmonad --restart' will apply the changes
2021-10-16 11:19:03 +0200 <Solid> (M-q does not actually do much more than that)
2021-10-16 11:19:16 +0200 <Solid> do you have xmessage installed? it should print an error in case anything goes wrong
2021-10-16 11:21:13 +0200 <ranmacar> i have, and it does show an error when there is a typo in the config on --recompile
2021-10-16 11:21:30 +0200 <ranmacar> but mod+q doesn't do anything
2021-10-16 11:22:18 +0200 <ranmacar> with --restart it worked, thanks
2021-10-16 11:23:22 +0200 <ranmacar> any idea what would break the mod+q?
2021-10-16 11:23:28 +0200 <ranmacar> my config is just
2021-10-16 11:23:30 +0200 <ranmacar> import XMonad
2021-10-16 11:23:30 +0200 <ranmacar> main = xmonad defaultConfig
2021-10-16 11:23:31 +0200 <ranmacar> { modMask = mod4Mask -- Use Super instead of Alt
2021-10-16 11:23:31 +0200 <ranmacar> , terminal = "alacritty"
2021-10-16 11:23:32 +0200 <ranmacar> }
2021-10-16 11:23:40 +0200 <Solid> are you pressing the right mod key?
2021-10-16 11:23:59 +0200 <Solid> are you on an exotic system like nixos where there could be path problems with finding both xmonad and xmessage?
2021-10-16 11:24:32 +0200 <ranmacar> i am on arch, installed xmonad with ghcup / cabal
2021-10-16 11:26:14 +0200 <ranmacar> where does mod+q source the path from?
2021-10-16 11:28:12 +0200 <ranmacar> i am starting it with a .desktop in xsessions, with just exec xmonad
2021-10-16 11:30:50 +0200 <ranmacar> s+mod+q, and other default bindings do work
2021-10-16 11:31:00 +0200 <Solid> it just looks in $PATH
2021-10-16 11:31:13 +0200 <Solid> What M-q essentially does is `/bin/sh -c "if type xmonad; then xmonad --recompile && xmonad --restart; else xmessage xmonad not in $PATH: \"$PATH\"; fi"'
2021-10-16 11:32:50 +0200rundown(~eb0t@90.212.144.152)
2021-10-16 11:33:17 +0200 <ranmacar> maybe /bin/sh doesnt see the path for xmonad and xmessage then?
2021-10-16 11:33:39 +0200 <Solid> one one way to find out :)
2021-10-16 11:34:22 +0200seschwar(~seschwar@user/seschwar)
2021-10-16 11:34:44 +0200 <ranmacar> i'm a bit lost in paths and shells atm, think this install defaults to fish :)
2021-10-16 11:35:21 +0200 <Solid> I doubt /bin/sh is actually bound to fish
2021-10-16 11:35:41 +0200 <Solid> but you can probably just copy that line above and see if it runs on your system
2021-10-16 11:37:28 +0200 <ranmacar> yeah, works. if i run bin/sh it sees xmonad, but maybe mod+q gets the path before it gets set?
2021-10-16 11:39:31 +0200mc47(~mc47@xmonad/TheMC47)
2021-10-16 11:39:59 +0200rundown(~eb0t@90.212.144.152) (Ping timeout: 264 seconds)
2021-10-16 11:40:40 +0200 <Solid> Oo
2021-10-16 11:40:57 +0200 <Solid> well I'm out of ideas :) is there anything in ~/.xsession-erros (or an equivalent file)?
2021-10-16 11:41:07 +0200rundown(~eb0t@90.210.94.119)
2021-10-16 11:42:34 +0200 <ranmacar> dont see anything like that
2021-10-16 11:42:45 +0200 <Solid> how are you starting X?
2021-10-16 11:43:49 +0200 <ranmacar> not sure, the session starts from /xsessions
2021-10-16 11:45:51 +0200 <tomsmeding> where are you putting the path to where xmonad lives in your PATH? Perhaps in your shell config?
2021-10-16 11:46:12 +0200 <Solid> I mean something along the line of are you using a login manager/startx/something else?
2021-10-16 11:46:24 +0200 <FOSSHuman[m]> How would I combine two spawn functions??
2021-10-16 11:46:52 +0200 <ranmacar> yeah, login manager, with xmonad.desktop that starts with exec=xmonad
2021-10-16 11:48:52 +0200 <ranmacar> tomsmeding i've tried various places to set the path, /etc/profile /xinitrc fish config
2021-10-16 11:48:57 +0200 <Solid> FOSSHuman[m]: spawn "..." >> spawn "..."
2021-10-16 11:49:13 +0200 <ranmacar> where would be best to set it?
2021-10-16 11:49:21 +0200 <tomsmeding> ranmacar: fish config probably doesn't work because the login manager only gets the global profile; I would've expected /etc/profile to work (after a reboot)
2021-10-16 11:49:31 +0200 <Solid> indeed
2021-10-16 11:49:45 +0200 <FOSSHuman[m]> Solid: Nice! Thanks..
2021-10-16 11:53:08 +0200 <ranmacar> didnt seem to work in /etc/profile. any tips where it could?
2021-10-16 11:54:43 +0200 <ranmacar> or would setting the binding mod+q to --recompile && --restart manually work? :)
2021-10-16 11:54:49 +0200 <tomsmeding> get xmonad to print the shell environment somehow (i.e. the output of `env`)
2021-10-16 11:55:10 +0200 <tomsmeding> ranmacar: yes, but you probably have to add an absolute path to xmonad
2021-10-16 11:56:08 +0200 <ranmacar> i have it in ~/.cabal/bin/xmonad
2021-10-16 11:57:50 +0200 <ranmacar> how can i print the env?
2021-10-16 11:58:24 +0200 <tomsmeding> execute the 'env' executable somehow and make sure you get the output; perhaps run 'env >/home/ranmacar/envstuff.txt' in a binding
2021-10-16 11:58:28 +0200tomsmedingdoesn't actually know xmonad
2021-10-16 12:00:04 +0200 <ranmacar> it probably is a more general linux issue :)
2021-10-16 12:00:59 +0200rundown(~eb0t@90.210.94.119) (Ping timeout: 264 seconds)
2021-10-16 12:01:19 +0200 <tomsmeding> feels like it, but I wouldn't know how to make xmonad run something :p
2021-10-16 12:02:05 +0200 <Solid> you can just do `spawn "env"' as a keybinding (this will print to stdout, so make sure you know where that goes :))
2021-10-16 12:02:23 +0200rundown(~eb0t@90.196.142.168)
2021-10-16 12:14:32 +0200 <ranmacar> where does it go? :)
2021-10-16 12:16:37 +0200 <mc47> depends
2021-10-16 12:16:41 +0200 <Solid> that entirely depends on your login manager, so I can't help you there, sorry
2021-10-16 12:17:05 +0200 <Solid> (I start X with `exec launchx >& ~/.xsession.log' and so goes to ~/.xsession.log for me, though ~/.xsession-errors is somewhat more common for a lot of distros)
2021-10-16 12:17:40 +0200 <mc47> for me, it goes to ~/.local/share/sddm/xorg-session.log
2021-10-16 12:17:55 +0200 <FOSSHuman[m]> <Solid> "you can just do `spawn "env"' as..." <- Maybe `spawn "env >> example.txt"`??
2021-10-16 12:18:59 +0200 <Solid> oh right, POSIX shell is an actual language :)
2021-10-16 12:19:15 +0200 <Solid> probably need to make that an absolute path though
2021-10-16 12:21:12 +0200 <liskin> ranmacar: xargs -0 -n1 </proc/$(pidof xmonad-x86_64-linux)/environ | grep ^PATH
2021-10-16 12:21:24 +0200 <liskin> prints the env of the running xmonad instance
2021-10-16 12:22:10 +0200 <ranmacar> import XMonad
2021-10-16 12:22:10 +0200 <ranmacar> import XMonad.Util.EZConfig
2021-10-16 12:22:11 +0200 <ranmacar> main :: IO ()
2021-10-16 12:22:11 +0200 <ranmacar> main = xmonad $ def
2021-10-16 12:22:12 +0200 <ranmacar> { modMask = mod4Mask -- Rebind Mod to the Super key
2021-10-16 12:22:12 +0200 <ranmacar> , terminal = "alacritty"
2021-10-16 12:22:13 +0200 <ranmacar> }
2021-10-16 12:22:13 +0200 <ranmacar> `additionalKeysP`
2021-10-16 12:22:14 +0200 <ranmacar> [ ("M-a", spawn "env >> /home/ranmacar/xmonad.env")]
2021-10-16 12:22:54 +0200 <ranmacar> this worked, and printed the env, but the path seems to be ok
2021-10-16 12:23:06 +0200 <ranmacar> PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:~/.cabal/bin:~/.local/bin:/home/ranmacar/.cabal/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
2021-10-16 12:26:50 +0200 <liskin> what display manager do you use?
2021-10-16 12:27:14 +0200 <liskin> we need to see logs. if you have gdm, it'll probably be in the systemd journal, if not, then maybe .xsession-errors or something
2021-10-16 12:27:18 +0200 <liskin> but it has to be somewhere
2021-10-16 12:27:35 +0200 <liskin> ls -la /proc/$(pidof xmonad-x86_64-linux)/fd
2021-10-16 12:27:41 +0200 <liskin> that will tell us where
2021-10-16 12:28:21 +0200 <liskin> ls -la /proc/$(pidof xmonad-x86_64-linux)/fd/{1,2}
2021-10-16 12:31:50 +0200 <ranmacar> sddm :)
2021-10-16 12:31:53 +0200 <ranmacar> xmonad: ghc: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
2021-10-16 12:32:43 +0200 <liskin> where's your ghc binary?
2021-10-16 12:33:28 +0200 <ranmacar> in ghcup, not in path :)
2021-10-16 12:33:32 +0200 <tomsmeding> yay
2021-10-16 12:33:39 +0200 <liskin> but why
2021-10-16 12:33:57 +0200 <liskin> how do you build xmonad then?
2021-10-16 12:34:14 +0200 <tomsmeding> liskin: people add stuff to their path in their shell profiles
2021-10-16 12:34:30 +0200 <tomsmeding> login managers don't care about that and only read /etc/profile
2021-10-16 12:34:34 +0200 <ranmacar> i installed ghcup from the website, then xmonad with cabal
2021-10-16 12:34:58 +0200 <liskin> ranmacar: you just said there's no ghc on your path
2021-10-16 12:35:05 +0200 <liskin> does ghcup only put cabal on path?
2021-10-16 12:35:11 +0200 <liskin> that seems rather hard to believe tbh
2021-10-16 12:35:37 +0200 <tomsmeding> liskin: ghcup definitely puts ghc in your path, but it does that by modifying your shell rc file
2021-10-16 12:35:45 +0200 <tomsmeding> login managers don't care about shell rc files :p
2021-10-16 12:36:18 +0200 <ranmacar> it gets added somewhere, but the env printed from xmonad doesnt have it
2021-10-16 12:36:27 +0200 <liskin> okay let me try to put it another way
2021-10-16 12:36:30 +0200 <liskin> $ which ghc
2021-10-16 12:36:34 +0200 <liskin> what does this give?
2021-10-16 12:36:43 +0200 <Solid> ghcup seems to create ~/.ghcup/bin and put executables there
2021-10-16 12:36:52 +0200 <tomsmeding> liskin: in their normal shell, that will give a ghc
2021-10-16 12:37:07 +0200 <tomsmeding> because their .bashrc or their .config/fish/config.fish or whatever adds that
2021-10-16 12:37:12 +0200 <Solid> and I can't see that in the above $PATH
2021-10-16 12:37:28 +0200 <liskin> tomsmeding: I don't want to be rude, man, but what I want is specific stuff, not some vague "something does something"
2021-10-16 12:37:40 +0200 <liskin> I want to see their specific ghc location
2021-10-16 12:37:47 +0200 <liskin> I want to see their specific $PATH in a shell
2021-10-16 12:37:57 +0200 <liskin> and I want to see their specific $PATH in the xmonad process
2021-10-16 12:38:06 +0200 <liskin> specific shit.
2021-10-16 12:38:12 +0200 <liskin> only then can we do something about the problem.
2021-10-16 12:38:46 +0200 <ranmacar> ~/.ghcup/bin
2021-10-16 12:38:54 +0200 <tomsmeding> you're right I was being the rude person here, kind of, because you clearly know your shit. It's just that I think I already know what the problem is (which ghc gives ~/.ghcup/bin/ghc which is in .bashrc but not in /etc/profile etc., but I shouldn't presume and that's exactly what I was doing!)
2021-10-16 12:38:58 +0200 <liskin> (and, I believe, only by actually seeing specific shit can one get some understanding)
2021-10-16 12:39:22 +0200 <liskin> 12:23 <ranmacar> PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:~/.cabal/bin:~/.local/bin:/home/ranmacar/.cabal/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
2021-10-16 12:39:28 +0200 <liskin> ranmacar: ^^ see, no ~/.ghcup/bin in there
2021-10-16 12:40:04 +0200 <ranmacar> yeah, i noticed :)
2021-10-16 12:40:23 +0200 <ranmacar> thanks, adding that to /etc/profile
2021-10-16 12:42:27 +0200ranmacar(~ranmacar@2001:16b8:5c51:6500:2a39:26ff:fe02:85bb) (Quit: Client closed)
2021-10-16 12:43:02 +0200 <Solid> why would login managers not read shell rc files
2021-10-16 12:43:18 +0200 <Solid> that seems insane
2021-10-16 12:43:46 +0200 <liskin> some of them read .xsessionrc (it's probably more complicated than that, some may read that, some may invoke Xsession which sources that)
2021-10-16 12:44:26 +0200ranmacar(~ranmacar@88.130.159.133)
2021-10-16 12:44:43 +0200 <tomsmeding> Solid: how would a login manager like gdm know how to read my fish config file?
2021-10-16 12:45:21 +0200 <liskin> but .bashrc really is meant for interactive shell (actually just bash, as tomsmeding correctly says) sessions only, so dms don't read that
2021-10-16 12:46:26 +0200 <liskin> I just tried googling for how to set env vars with sddm and didn't really get an answer
2021-10-16 12:46:37 +0200 <liskin> how the hell are less experienced people supposed to do that :-/
2021-10-16 12:48:13 +0200 <liskin> (oh and there's also ~/.pam_environment which should just work for all sessions, but I bet that thing doesn't expand tildes and $vars)
2021-10-16 12:49:24 +0200 <liskin> and for added fun, every distro does it differently, so arch seems to have ~/.xprofile instead of ~/.xsessionrc: https://wiki.archlinux.org/title/xprofile
2021-10-16 12:49:26 +0200 <liskin> :-D
2021-10-16 12:49:33 +0200 <ranmacar> etc/profile didnt help :(
2021-10-16 12:49:54 +0200 <ranmacar> maybe xprofile :D
2021-10-16 12:50:01 +0200 <liskin> yeah, try xprofile and xsessionrc
2021-10-16 12:50:12 +0200 <ranmacar> yay linuxes :)
2021-10-16 12:50:28 +0200 <liskin> maybe add XXX=xprofile and XXX=xsessionrc respectively so that you can then check which one actually worked :-)
2021-10-16 12:51:35 +0200 <ranmacar> should .xprofile be there already?
2021-10-16 12:52:31 +0200 <liskin> probably not
2021-10-16 12:52:39 +0200 <liskin> but it would be nice wouldn't it? :-)
2021-10-16 12:53:10 +0200 <liskin> instead of randomly googling shit, distros could actually put these files in /etc/skel so a new user just looks around for a bit and knows where goes what
2021-10-16 12:54:00 +0200 <ranmacar> along with the particular brand of outdated syntax they chose to expect there :D
2021-10-16 12:59:53 +0200ranmacar(~ranmacar@88.130.159.133) (Quit: Client closed)
2021-10-16 13:00:27 +0200ranmacar(~ranmacar@2001:16b8:5c51:6500:2a39:26ff:fe02:85bb)
2021-10-16 13:11:37 +0200benin(~benin@183.82.25.86)
2021-10-16 13:18:20 +0200cfricke(~cfricke@user/cfricke) (Quit: WeeChat 3.3)
2021-10-16 13:53:33 +0200dschrempf(~dominik@070-207.dynamic.dsl.fonira.net)
2021-10-16 14:18:23 +0200dschrempf(~dominik@070-207.dynamic.dsl.fonira.net) (Ping timeout: 264 seconds)
2021-10-16 14:27:42 +0200ranmacar(~ranmacar@2001:16b8:5c51:6500:2a39:26ff:fe02:85bb) (Quit: Client closed)
2021-10-16 14:30:56 +0200dschrempf(~dominik@070-207.dynamic.dsl.fonira.net)
2021-10-16 14:32:18 +0200mestre(~mestre@191.177.175.57)
2021-10-16 14:40:16 +0200dschrempf(~dominik@070-207.dynamic.dsl.fonira.net) (Quit: WeeChat 3.3)
2021-10-16 14:44:57 +0200mestre(~mestre@191.177.175.57) (Quit: leaving)
2021-10-16 14:45:28 +0200cyr4x3(~cyr4x3@139.47.115.87)
2021-10-16 14:47:15 +0200eqw(~eqw@31.134.178.99)
2021-10-16 14:58:58 +0200geekosaur(~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-10-16 15:00:56 +0200geekosaur(~geekosaur@xmonad/geekosaur)
2021-10-16 17:46:18 +0200cyr4x3(~cyr4x3@139.47.115.87) (Quit: WeeChat 2.3)
2021-10-16 18:29:35 +0200wonko(~wjc@62.115.229.50)
2021-10-16 18:29:58 +0200geekosaur(~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-10-16 18:31:48 +0200geekosaur(~geekosaur@xmonad/geekosaur)
2021-10-16 18:54:42 +0200alternateved(~user@194.177.28.164)
2021-10-16 19:14:24 +0200mestre(~mestre@191.177.175.57)
2021-10-16 19:38:47 +0200werneta(~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net)
2021-10-16 20:14:16 +0200benin(~benin@183.82.25.86) (Ping timeout: 245 seconds)
2021-10-16 20:48:55 +0200AndrewYu(~andrew@user/andrewyu) (Remote host closed the connection)
2021-10-16 20:49:39 +0200AndrewYu(~andrew@user/andrewyu)
2021-10-16 20:50:07 +0200humky(~humky@user/humky) (Quit: Leaving)
2021-10-16 21:12:34 +0200 <alternateved> Hello! It may be a silly question, but what are different kinds of comments in Haskell?
2021-10-16 21:12:57 +0200 <alternateved> I know about block comments and single line comments
2021-10-16 21:13:24 +0200 <geekosaur> those are it
2021-10-16 21:13:26 +0200 <alternateved> But what is the difference in meaning of comments between simple `--` and `-- |`
2021-10-16 21:13:40 +0200 <geekosaur> oh. that's a comment with haddock markup in it
2021-10-16 21:13:56 +0200 <geekosaur> you can read the haddock manual to see the kinds of markup it supports
2021-10-16 21:14:23 +0200 <alternateved> Oh, I should do so. Thank you for pointing me in correct direction
2021-10-16 21:14:53 +0200 <geekosaur> (sorry, I rarely use haddock in my own stuff so I never remember what all the kinds of markup mean)
2021-10-16 21:15:31 +0200 <alternateved> It's okay. I can easily check now what is the meaning of those
2021-10-16 23:36:30 +0200Guest68(~Guest68@103.151.184.198)
2021-10-16 23:36:49 +0200Guest68(~Guest68@103.151.184.198) (Client Quit)
2021-10-16 23:38:28 +0200mc47(~mc47@xmonad/TheMC47) (Remote host closed the connection)