Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,727 events total
2024-07-12 13:26:29 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> i fixed by declaring it
2024-07-12 13:26:29 <haskellbridge> let workspacen = ["ws1", "ws2", "ws3", "ws4", "ws5", "ws6", "ws7", "ws8", "ws9", "ws10"]
2024-07-12 13:27:14 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> https://kf8nh.com/_matrix/media/v3/download/hashi.sbs/jKHfsHcAqxHeuYTRmyQTHFWB/image.png
2024-07-12 13:27:16 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> now im trying to fix this
2024-07-12 13:28:52 <Leary> We'd need to see the context to help with that.
2024-07-12 13:29:40 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> let workspacen = ["ws1", "ws2", "ws3", "ws4", "ws5", "ws6", "ws7", "ws8", "ws9", "ws10", "ws11", "ws12", "ws13", "ws14", "ws15", "ws16"]
2024-07-12 13:29:43 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/XhHwPWXDUwIBdDBGnsdzAhuE (8 lines)
2024-07-12 13:29:45 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> it's this code
2024-07-12 13:38:40 <Leary> The backticks turn "additionalKeysP" into an infix operator, the first argument to which should be the XConfig record you pass to the xmonad function. E.g. main = do { let { workspacen = ... }; xmonad $ def{ ... } `additionalKeysP` ... }
2024-07-12 13:42:44 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> im doing like this:
2024-07-12 13:42:57 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> myConfig = def
2024-07-12 13:42:57 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/fIxAbRSIfxUDOWgBhQNQcKBY (26 lines)
2024-07-12 13:46:51 <Leary> The above still applies; you want: def{ ... } `additionalKeysP` ...
2024-07-12 13:47:28 <Leary> Get the `let workspacen` line out of the way by putting it elsewhere.
2024-07-12 14:22:51 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 260 seconds)
2024-07-12 15:16:38 cfricke joins (~cfricke@user/cfricke)
2024-07-12 15:34:40 × cfricke quits (~cfricke@user/cfricke) (Ping timeout: 246 seconds)
2024-07-12 15:34:49 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> Leary: ic, so i must define it outside of the brackets
2024-07-12 15:37:45 ft joins (~ft@p4fc2ab80.dip0.t-ipconnect.de)
2024-07-12 15:40:07 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> solved
2024-07-12 15:40:18 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> now the there's a syntax error in a small region of the code
2024-07-12 15:40:24 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> `additionalKeysP`
2024-07-12 15:40:25 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/mDhmBjQEtpbuSCRkxOxSPhsQ (9 lines)
2024-07-12 15:40:45 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> xmonad.hs:112:7: error:
2024-07-12 15:40:45 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/bPYcnqlIbPgZNUiDogLJIzeX (45 lines)
2024-07-12 15:47:28 <Leary> You can't just chuck extra elements at the end of a list comprehension---they need to go in their own list literal, which can be appended with the infix operator ++. Unfortunately, it has a lower precedence than `additionalKeysP`, so you'll either need to bracket the concatenation or refer to it by name, e.g. "myKeys = [ ... | ... ] ++ [ ... ]" at the top level.
2024-07-12 15:48:40 <Leary> I guess the other option is "def{ ... } `additionalKeysP` [ ... | ... ] `additionalKeysP` [ ... ]"; that should work too.
2024-07-12 15:48:59 cfricke joins (~cfricke@user/cfricke)
2024-07-12 16:05:41 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.2.2)
2024-07-12 16:44:49 × srk quits (~sorki@user/srk) (Ping timeout: 268 seconds)
2024-07-12 16:45:34 srk joins (~sorki@user/srk)
2024-07-12 16:56:54 × rieper quits (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933) (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
2024-07-12 16:57:13 rieper joins (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933)
2024-07-12 16:58:05 × rieper quits (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933) (Client Quit)
2024-07-12 16:59:10 rieper joins (~riepernet@2a03:4000:6:f1d6:6885:6fff:fe5a:8933)
2024-07-12 17:01:14 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> i'll give it a try
2024-07-12 17:03:37 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> Leary: like this:
2024-07-12 17:03:37 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/ehBwAcdUvIKaLESBBwXuYuNZ (23 lines)
2024-07-12 17:04:42 <Leary> Backticks (`) around additionalKeysP, not quotes (").
2024-07-12 17:09:38 <Leary> Also, does your copy/paste not preserve indentation, or is the code really laid out like that? Either way, please send something indented next time---it's very important for parsing Haskell correctly.
2024-07-12 17:45:52 ultima12 joins (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8)
2024-07-12 17:47:30 <ultima12> what the status on wayland and collecting money to bring a full time dev in? :)
2024-07-12 19:03:19 × ultima12 quits (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8) (Ping timeout: 250 seconds)
2024-07-12 19:14:06 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> Leary: oh, might be that
2024-07-12 19:14:07 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/iIhpIcyjDSTARwgYSUhMNwPi (3 lines)
2024-07-12 19:16:49 × incertia quits (~incertia@209.122.137.252) (Ping timeout: 268 seconds)
2024-07-12 19:21:57 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> i cleaned up and now it looks better
2024-07-12 19:21:57 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/FKhCobNLtvbFWMynuEWdBrni (9 lines)
2024-07-12 19:31:12 <Leary> Everything on the right-hand side of an = should be indented further than the name on the left-hand side: https://paste.tomsmeding.com/YS9IF8o6
2024-07-12 19:33:42 incertia joins (~incertia@209.122.137.252)
2024-07-12 19:42:25 ash3en joins (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8)
2024-07-12 19:42:25 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> Leary: thank you!
2024-07-12 19:44:48 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> right below that code, i have this:
2024-07-12 19:44:48 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/oUvyEYrxQTImQDCMNWEQnHiP (6 lines)
2024-07-12 19:45:26 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> once again, i used Backticks (`) around additionalKeysP, and not quotes "
2024-07-12 19:50:07 × ash3en quits (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8) (Ping timeout: 250 seconds)
2024-07-12 19:52:27 <Leary> Well I'm seeing quotes. Does matrix replace backticks or something? You might need to put the error message in a paste bin too.
2024-07-12 19:52:47 ash3en joins (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8)
2024-07-12 20:06:35 × ash3en quits (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8) (Ping timeout: 250 seconds)
2024-07-12 20:14:34 ash3en joins (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8)
2024-07-12 20:35:10 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> Leary: yes, maybe matrix is replacing it, i'll post it on pastebin
2024-07-12 20:35:50 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> https://paste.tomsmeding.com/SnrFSsOj
2024-07-12 20:59:43 × ash3en quits (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8) (Remote host closed the connection)
2024-07-12 21:14:53 ultima12 joins (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8)
2024-07-12 21:28:20 × ultima12 quits (~ash3en@2a01:c22:8c1d:e900:34c:3f3:8550:afd8) (Remote host closed the connection)
2024-07-12 21:54:55 ryck joins (~ryck@user/ryck)
2024-07-12 22:11:35 × ryck quits (~ryck@user/ryck) (Remote host closed the connection)
2024-07-12 22:14:49 <geekosaur> Leary: haskellbridge (heisenbridge) replaces backticks with double quotes
2024-07-12 22:16:04 <geekosaur> @hashirama:hashi.sbs, `additionalKeysP` can't be used at the top level, it should be appended to your existing `additionalKeysP`
2024-07-12 22:16:04 <lambdabot> Unknown command, try @list
2024-07-12 22:16:49 <geekosaur> you're applying an operator to your xmonad config record, so it needs a config record
2024-07-12 22:17:22 <geekosaur> you might do better going through the wikibook to learn how Haskell works at least partially
2024-07-12 22:17:29 <geekosaur> @where wikibook
2024-07-12 22:17:30 <lambdabot> http://en.wikibooks.org/wiki/Haskell
2024-07-12 23:30:10 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> geekosaur: yes, i was reading a bit
2024-07-12 23:31:19 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> geekosaur: i'll move that snippet of code to other place then, it seems that it cant be before the Config definition, right?
2024-07-12 23:32:49 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> geekosaur: i was watching a video about PF, and it scared me a bit
2024-07-12 23:32:49 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/yiukShyIwqxQtwsVvAaoLBXe (3 lines)
2024-07-12 23:42:01 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> i also saw this:
2024-07-12 23:42:01 <haskellbridge> "additionalKeysP can only be used as part of the configuration function, not as a standalone declaration."
2024-07-12 23:42:04 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> now it makes sense
2024-07-12 23:49:52 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> oh god, it was just the damn indentation problem!
2024-07-12 23:49:52 <haskellbridge> lol....
2024-07-12 23:55:58 <geekosaur> yeh, I had it indented for a reason (but the indentation matched my config and might be wrong for others)
2024-07-12 23:56:45 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/xmonad.hs#L140-L279
2024-07-13 00:00:45 <geekosaur> also: IO does take some brain rewiring… but lazy evaluation will really break your brain until you get used to it
2024-07-13 00:01:52 <geekosaur> > [1..]
2024-07-13 00:01:53 <lambdabot> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,...
2024-07-13 00:03:29 <geekosaur> ^ lazy evaluation is what makes this work, not special-casing by the bot. you can think of it as evaluation turning a crank until it gets a value, and stopping turning the crank when it no longer needs values (in this case, because lambdabot only prints output to a certain size and truncates)
2024-07-13 00:04:54 <geekosaur> (you can't use the bot from matrix, because heisenbridge only puppets the matrix side, so everything you send has a prefix on the IRC side)
2024-07-13 00:08:26 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> geekosaur: oh, this is just like a set in mathematics
2024-07-13 00:08:34 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> this is the set of all integers
2024-07-13 00:08:55 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> geekosaur: this is cool, might save a lot of work
2024-07-13 00:09:19 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> geekosaur: i assumeed haskell didnt had indentation because of the brackets
2024-07-13 00:09:46 <geekosaur> indentation/"layout" is how we normally do things. it is possible to use brackets to override, but we usually don't
2024-07-13 00:09:49 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> btw, the code did compiled, but i didnt understood the key convention
2024-07-13 00:10:00 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> C-M-1 copies to the first workspace?
2024-07-13 00:10:23 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> i tried pressing it, but it does nothing at all
2024-07-13 00:10:32 <geekosaur> the brackets you see in xmonad, though, aren't about indentation: they're record update syntax `record {field1 = newvalue, field2 = newvalue2, …}`
2024-07-13 00:10:54 <haskellbridge> <柱間 (@hashirama:hashi.sbs)> geekosaur: so it's different from the most languages huh...

All times are in UTC.