Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,791,317 events total
2026-03-03 12:22:08 × housemate quits (~housemate@202.7.248.67) (Quit: https://ineedsomeacidtocalmmedown.space/)
2026-03-03 12:22:33 housemate joins (~housemate@202.7.248.67)
2026-03-03 12:26:34 × troydm quits (~troydm@user/troydm) (Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset)
2026-03-03 12:26:43 × vanishingideal quits (~vanishing@user/vanishingideal) (Ping timeout: 264 seconds)
2026-03-03 12:28:11 vanishingideal joins (~vanishing@user/vanishingideal)
2026-03-03 12:37:31 × merijn quits (~merijn@77.242.116.146) (Ping timeout: 264 seconds)
2026-03-03 12:41:43 × housemate quits (~housemate@202.7.248.67) (Ping timeout: 264 seconds)
2026-03-03 12:43:34 × Enrico63 quits (~Enrico63@host-80-104-109-187.retail.telecomitalia.it) (Quit: Client closed)
2026-03-03 12:49:23 merijn joins (~merijn@77.242.116.146)
2026-03-03 12:58:16 <fp> Not exactly Haskell, but does anyone know a way to get a LUCID dev environment running? I downloaded some source for pLUCID which builds after some adjustment, but instantly segfaults when you try to run the shipped examples. Alternately, if there are other systems for learning about dataflow programming languages in 2026, I'd love to hear about them
2026-03-03 13:00:04 × user363627 quits (~user@user/user363627) (Quit: Konversation terminated!)
2026-03-03 13:00:30 user363627 joins (~user@user/user363627)
2026-03-03 13:07:00 qqq joins (~qqq@185.54.22.240)
2026-03-03 13:25:26 AlexNoo joins (~AlexNoo@94.233.241.37)
2026-03-03 13:26:42 Alex_delenda_est joins (~al_test@94.233.241.37)
2026-03-03 13:38:10 akegalj joins (~akegalj@78-1-128-213.adsl.net.t-com.hr)
2026-03-03 13:43:30 mange joins (~mange@user/mange)
2026-03-03 13:47:28 × acidjnk_new3 quits (~acidjnk@p200300d6e700e523af5c13a8fba9f168.dip0.t-ipconnect.de) (Remote host closed the connection)
2026-03-03 13:47:54 acidjnk_new3 joins (~acidjnk@p200300d6e700e523af5c13a8fba9f168.dip0.t-ipconnect.de)
2026-03-03 13:58:55 × fp quits (~Thunderbi@130.233.70.80) (Ping timeout: 245 seconds)
2026-03-03 14:03:39 × CiaoSen quits (~Jura@2a02:8071:64e1:da0:5a47:caff:fe78:33db) (Ping timeout: 245 seconds)
2026-03-03 14:10:10 stef204 joins (~stef204@user/stef204)
2026-03-03 14:10:30 × merijn quits (~merijn@77.242.116.146) (Ping timeout: 255 seconds)
2026-03-03 14:12:49 × Square2 quits (~Square4@user/square) (Remote host closed the connection)
2026-03-03 14:13:22 merijn joins (~merijn@77.242.116.146)
2026-03-03 14:13:24 Square2 joins (~Square4@user/square)
2026-03-03 14:17:07 Guest88 joins (~Guest88@45.152.20.171)
2026-03-03 14:17:46 × Guest88 quits (~Guest88@45.152.20.171) (Client Quit)
2026-03-03 14:25:49 tromp joins (~textual@2001:1c00:3487:1b00:9536:a446:6cb6:b101)
2026-03-03 14:26:35 × DetourNetworkUK quits (~DetourNet@user/DetourNetworkUK) (Read error: Connection reset by peer)
2026-03-03 14:27:10 DetourNetworkUK joins (~DetourNet@user/DetourNetworkUK)
2026-03-03 14:31:25 × wbrawner quits (~wbrawner@129.146.105.153) (Ping timeout: 268 seconds)
2026-03-03 14:33:43 wbrawner joins (~wbrawner@129.146.105.153)
2026-03-03 14:36:33 × user363627 quits (~user@user/user363627) (Remote host closed the connection)
2026-03-03 14:37:21 × u0_a216 quits (~molidae@2401:4900:628f:90b4:f04f:39fd:d52a:6874) (Ping timeout: 268 seconds)
2026-03-03 14:38:13 × mange quits (~mange@user/mange) (Quit: Zzz...)
2026-03-03 14:39:14 × wbrawner quits (~wbrawner@129.146.105.153) (Ping timeout: 248 seconds)
2026-03-03 14:39:42 wbrawner joins (~wbrawner@129.146.105.153)
2026-03-03 14:41:07 weary-traveler joins (~user@user/user363627)
2026-03-03 14:42:29 <gentauro> > :t putStrLn
2026-03-03 14:42:31 <lambdabot> <hint>:1:1: error: parse error on input `:'
2026-03-03 14:42:42 <gentauro> % :t putStrLn
2026-03-03 14:42:42 <yahb2> putStrLn :: String -> IO ()
2026-03-03 14:42:58 <gentauro> % putStrLn [ '🍎' ]
2026-03-03 14:42:59 <yahb2> 🍎
2026-03-03 14:43:04 <gentauro> Hmmm
2026-03-03 14:43:13 rekahsoft joins (~rekahsoft@76.67.111.168)
2026-03-03 14:43:35 <gentauro> why do I get `<stdout>: hPutChar: invalid argument (cannot encode character '\55357'`?
2026-03-03 14:44:14 <__monty__> Is your locale UTF-8?
2026-03-03 14:44:18 <gentauro> I'm setting the encoding to `hSetEncoding stdout utf8`.
2026-03-03 14:45:31 <gentauro> __monty__: it sure is -> https://paste.tomsmeding.com/ZsN4DRUa
2026-03-03 14:46:40 <haskellbridge> <ijouw> Just to be sure, you can use hGetEncoding to double check
2026-03-03 14:46:57 <__monty__> (FYI, you can use en_DK to get sensible dates ; ) )
2026-03-03 14:47:05 <gentauro> % putStrLn [ '🍎', '🍏' ]
2026-03-03 14:47:05 <yahb2> 🍎🍏
2026-03-03 14:47:46 <gentauro> ijouw: let me try
2026-03-03 14:50:10 <gentauro> ijouw: `hGetEncoding` -> `Just UTF-8`
2026-03-03 14:50:25 <gentauro> I guess I've set UTF-8 properly in the Haskell app.
2026-03-03 14:51:19 × misterfish quits (~misterfis@84.53.85.146) (Ping timeout: 264 seconds)
2026-03-03 14:51:27 <gentauro> just in case, it's `hSetEncoding {stderr|stdin|stdout} utf8`
2026-03-03 14:51:55 <__monty__> That doesn't look like valid Haskell syntax.
2026-03-03 14:51:56 × wbrawner quits (~wbrawner@129.146.105.153) (Ping timeout: 252 seconds)
2026-03-03 14:53:07 <gentauro> __monty__: obviously not. It's to write less ;)
2026-03-03 14:53:23 <gentauro> it's just x3 the same syntas with the following keywords
2026-03-03 14:55:19 wbrawner joins (~wbrawner@129.146.105.153)
2026-03-03 14:55:32 <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 14:59:17 <__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:04:37 <gentauro> __monty__: what does your `locale` say?
2026-03-03 15:05:47 <__monty__> s/en_US/en_DK/g; except LC_ALL is empty.
2026-03-03 15:06:53 tremon joins (~tremon@83.80.159.219)
2026-03-03 15:07:31 <__monty__> Does System.IO.localeEncoding report UTF-8 for you?
2026-03-03 15:09:47 <gentauro> __monty__: yeah: `putStr (show localeEncoding)` -> `UTF-8`
2026-03-03 15:11:05 <int-e> @src print
2026-03-03 15:11:05 <lambdabot> print x = putStrLn (show x)
2026-03-03 15:11:10 <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 15:11:18 <gentauro> but, I'm not on a windows device …
2026-03-03 15:12:08 <__monty__> Can you reproduce the same behavior in GHCi?
2026-03-03 15:12:53 misterfish joins (~misterfis@31-161-39-137.biz.kpn.net)
2026-03-03 15:14:49 jtnuttall joins (~jeremy@user/jeremyn)
2026-03-03 15:15:43 <gentauro> __monty__: Nope. That seem to work
2026-03-03 15:15:47 <gentauro> kind of strainge tbh
2026-03-03 15:16:11 gentauro however, I DO run my `ghci` with stack -> `stack ghci`
2026-03-03 15:22:10 machinedgod joins (~machinedg@d172-219-48-230.abhsia.telus.net)
2026-03-03 15:34:04 × jreicher quits (~joelr@user/jreicher) (Read error: Connection reset by peer)
2026-03-03 15:35:14 jreicher joins (~joelr@user/jreicher)
2026-03-03 15:41:08 durstloescher joins (~textual@ip4d16b23b.dynamic.kabel-deutschland.de)
2026-03-03 15:41:56 <durstloescher> hey can someone explain binary trees in haskell to me?
2026-03-03 15:42:24 <c_wraith> How comfortable are you with binary trees in general?
2026-03-03 15:43:28 <c_wraith> (There's nothing particularly special about Haskell for binary trees, at least in the context of immutable data structures.)
2026-03-03 15:44:39 <durstloescher> i know the concept but i'm not comfortable with the use of pattern matching in this topic
2026-03-03 15:45:07 <durstloescher> i don't understand how i can "get" the value and how to proceed with the next node
2026-03-03 15:45:28 <durstloescher> my intuition says i just use (x:xs) but trees are no lists
2026-03-03 15:46:00 <c_wraith> Ah, true. Matching is done against the constructors for the data type.
2026-03-03 15:46:14 <c_wraith> So you should be starting with the data definition, and the constructors within
2026-03-03 15:48:05 <c_wraith> Do you have a specific example to work with, or just exploring the idea more generally?
2026-03-03 15:48:30 elainedastolat joins (~m@2804:3d14:4b:de00:b20e:16f9:f4d1:21e4)
2026-03-03 15:48:55 <haskellbridge> <ijouw> Yes, (:) is the constructor for lists. You need the one for trees.
2026-03-03 15:48:55 <haskellbridge> ... long message truncated: https://kf8nh.com/_heisenbridge/media/kf8nh.com/myBmmoOKFntttTPQmkgsqoPc/QzDiwyVIkO4 (3 lines)
2026-03-03 15:49:24 × tromp quits (~textual@2001:1c00:3487:1b00:9536:a446:6cb6:b101) (Quit: My iMac has gone to sleep. ZZZzzz…)
2026-03-03 15:49:49 × durstloescher quits (~textual@ip4d16b23b.dynamic.kabel-deutschland.de) (Quit: My Mac has gone to sleep. ZZZzzz…)

All times are in UTC.