2026/03/03

Newest at the top

2026-03-03 17:14:58 +0100pavonia(~user@user/siracusa) (Quit: Bye!)
2026-03-03 17:09:18 +0100chromoblob(~chromoblo@user/chromob1ot1c) (Ping timeout: 255 seconds)
2026-03-03 17:07:41 +0100durstloescher(~textual@ip4d16b23b.dynamic.kabel-deutschland.de)
2026-03-03 17:05:06 +0100chromoblob(~chromoblo@user/chromob1ot1c) chromoblob\0
2026-03-03 17:01:45 +0100chexum(~quassel@gateway/tor-sasl/chexum) chexum
2026-03-03 17:01:17 +0100chexum(~quassel@gateway/tor-sasl/chexum) (Remote host closed the connection)
2026-03-03 16:58:09 +0100elainedastolat(~m@2804:3d14:4b:de00:b20e:16f9:f4d1:21e4) (Quit: Leaving)
2026-03-03 16:54:45 +0100chromoblob(~chromoblo@user/chromob1ot1c) (Ping timeout: 245 seconds)
2026-03-03 16:51:45 +0100misterfish(~misterfis@31-161-39-137.biz.kpn.net) (Ping timeout: 246 seconds)
2026-03-03 16:49:49 +0100durstloescher(~textual@ip4d16b23b.dynamic.kabel-deutschland.de) (Quit: My Mac has gone to sleep. ZZZzzz…)
2026-03-03 16:49:24 +0100tromp(~textual@2001:1c00:3487:1b00:9536:a446:6cb6:b101) (Quit: My iMac has gone to sleep. ZZZzzz…)
2026-03-03 16:48:55 +0100 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/myBmmoOKFntttTPQmkgsqoPc/QzDiwyVIkO4 (3 lines)
2026-03-03 16:48:55 +0100 <haskellbridge> <ijouw> Yes, (:) is the constructor for lists. You need the one for trees.
2026-03-03 16:48:30 +0100elainedastolat(~m@2804:3d14:4b:de00:b20e:16f9:f4d1:21e4)
2026-03-03 16:48:05 +0100 <c_wraith> Do you have a specific example to work with, or just exploring the idea more generally?
2026-03-03 16:46:14 +0100 <c_wraith> So you should be starting with the data definition, and the constructors within
2026-03-03 16:46:00 +0100 <c_wraith> Ah, true. Matching is done against the constructors for the data type.
2026-03-03 16:45:28 +0100 <durstloescher> my intuition says i just use (x:xs) but trees are no lists
2026-03-03 16:45:07 +0100 <durstloescher> i don't understand how i can "get" the value and how to proceed with the next node
2026-03-03 16:44:39 +0100 <durstloescher> i know the concept but i'm not comfortable with the use of pattern matching in this topic
2026-03-03 16:43:28 +0100 <c_wraith> (There's nothing particularly special about Haskell for binary trees, at least in the context of immutable data structures.)
2026-03-03 16:42:24 +0100 <c_wraith> How comfortable are you with binary trees in general?
2026-03-03 16:41:56 +0100 <durstloescher> hey can someone explain binary trees in haskell to me?
2026-03-03 16:41:08 +0100durstloescher(~textual@ip4d16b23b.dynamic.kabel-deutschland.de)
2026-03-03 16:35:14 +0100jreicher(~joelr@user/jreicher) jreicher
2026-03-03 16:34:04 +0100jreicher(~joelr@user/jreicher) (Read error: Connection reset by peer)
2026-03-03 16:22:10 +0100machinedgod(~machinedg@d172-219-48-230.abhsia.telus.net) machinedgod
2026-03-03 16:16:11 +0100gentaurohowever, I DO run my `ghci` with stack -> `stack ghci`
2026-03-03 16:15:47 +0100 <gentauro> kind of strainge tbh
2026-03-03 16:15:43 +0100 <gentauro> __monty__: Nope. That seem to work
2026-03-03 16:14:49 +0100jtnuttall(~jeremy@user/jeremyn) jeremyn
2026-03-03 16:12:53 +0100misterfish(~misterfis@31-161-39-137.biz.kpn.net) misterfish
2026-03-03 16:12:08 +0100 <__monty__> Can you reproduce the same behavior in GHCi?
2026-03-03 16:11:18 +0100 <gentauro> but, I'm not on a windows device …
2026-03-03 16:11:10 +0100 <gentauro> I guess even (Elm) Evan ran into something like this (back in 2019): https://discourse.elm-lang.org/t/help-improve-unicode-support-on-windows/3366
2026-03-03 16:11:05 +0100 <lambdabot> print x = putStrLn (show x)
2026-03-03 16:11:05 +0100 <int-e> @src print
2026-03-03 16:09:47 +0100 <gentauro> __monty__: yeah: `putStr (show localeEncoding)` -> `UTF-8`
2026-03-03 16:07:31 +0100 <__monty__> Does System.IO.localeEncoding report UTF-8 for you?
2026-03-03 16:06:53 +0100tremon(~tremon@83.80.159.219) tremon
2026-03-03 16:05:47 +0100 <__monty__> s/en_US/en_DK/g; except LC_ALL is empty.
2026-03-03 16:04:37 +0100 <gentauro> __monty__: what does your `locale` say?
2026-03-03 15:59:17 +0100 <__monty__> If I `hSetEncoding` to `latin1` I do get the error you got so it looks like it is an encoding problem.
2026-03-03 15:55:32 +0100 <gentauro> it's correct to assume that `hSetEncoding` is set globally right? I just need to add it in my `main :: IO ()` right?
2026-03-03 15:55:19 +0100wbrawner(~wbrawner@129.146.105.153) wbrawner
2026-03-03 15:53:23 +0100 <gentauro> it's just x3 the same syntas with the following keywords
2026-03-03 15:53:07 +0100 <gentauro> __monty__: obviously not. It's to write less ;)
2026-03-03 15:51:56 +0100wbrawner(~wbrawner@129.146.105.153) (Ping timeout: 252 seconds)
2026-03-03 15:51:55 +0100 <__monty__> That doesn't look like valid Haskell syntax.
2026-03-03 15:51:27 +0100 <gentauro> just in case, it's `hSetEncoding {stderr|stdin|stdout} utf8`