Home liberachat/#haskell: Logs Calendar

Logs on 2024-08-06 (liberachat/#haskell)

00:02:00 <Inst> dolio: insofar as you can't access a file on a filesystem with blocking IO twice unless the data's completely consumed; readFile' would close the handle, readFile wouldn't until the resource's exhausted
00:02:32 <Inst> so i mean my conceptual model is iteratee IO > strict IO > lazy IO
00:03:00 <Inst> although tbh I guess you can't do it with iteratee / streaming either
00:04:04 × acidjnk quits (~acidjnk@p200300d6e72cfb126dbf5ec3ae9702a3.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
00:07:03 abyxq joins (~abyxq@user/abyxq)
00:18:59 zmt01 joins (~zmt00@user/zmt00)
00:23:00 × zmt00 quits (~zmt00@user/zmt00) (Ping timeout: 260 seconds)
00:29:41 × falafel quits (~falafel@2a0c:5a87:3104:4c01::bfe0) (Ping timeout: 252 seconds)
00:35:25 × califax quits (~califax@user/califx) (Remote host closed the connection)
00:36:58 califax joins (~califax@user/califx)
00:40:22 JuanDaugherty joins (~juan@user/JuanDaugherty)
00:40:26 auci joins (~auci@user/auci)
00:41:01 auci parts (~auci@user/auci) (Konversation terminated!)
00:41:15 × abyxq quits (~abyxq@user/abyxq) (Quit: leaving)
00:49:48 <haskellbridge> <thirdofmay18081814goya> anyone got a good set of exercises about monad transformers with solutions?
00:50:57 machinedgod joins (~machinedg@d173-183-246-216.abhsia.telus.net)
00:52:05 <jackdk> https://github.com/qfpl/applied-fp-course/blob/master/bonus/mtl.md
00:52:45 <jackdk> http://jackkelly.name/wiki/haskell/learning.html is where I keep my list of recommended resources
00:52:48 <jackdk> No solutions though
00:53:35 <jackdk> Actually wait, there are. In the <details> tags
00:56:34 <haskellbridge> <thirdofmay18081814goya> great ty!!
01:05:32 <Inst> Am I correct if I characterize the FP divide from mainstream programming as one between proof-based mathematics and algorithmic mathematics?
01:07:03 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Remote host closed the connection)
01:07:16 <Inst> actually, probably a really bad topic of conversation, I'll drop it
01:07:17 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
01:21:22 ddellacosta joins (~ddellacos@ool-44c73d29.dyn.optonline.net)
01:23:40 peterbecich joins (~Thunderbi@syn-047-229-123-186.res.spectrum.com)
01:25:17 <JuanDaugherty> no that's a totally whack take
01:25:42 <JuanDaugherty> mainframe isn a thing to be in opposition to FP
01:25:58 <JuanDaugherty> and ofc the first FP was on mainframes cause that's all there was
01:26:43 <geekosaur> uh, where did mainframes come into it?
01:26:56 <geekosaur> mainstream
01:27:13 <Inst> it's a dumb thought that's better drpped into off-topic
01:27:18 <JuanDaugherty> and when i said (in #politics) that it's more permissive here, I meant nobody but me is likely to respond like that
01:27:46 <JuanDaugherty> (##politics)
01:28:31 <JuanDaugherty> oh my bad i read mainframe
01:29:00 <JuanDaugherty> but it's still wrongheaded
01:29:13 <JuanDaugherty> mainstream means what?
01:29:24 <Inst> juandaughterty: if you want to continue, try #haskell-offtopic
01:29:27 <JuanDaugherty> the bulk of commercial IT activity?
01:32:24 × machinedgod quits (~machinedg@d173-183-246-216.abhsia.telus.net) (Ping timeout: 252 seconds)
01:35:41 × JuanDaugherty quits (~juan@user/JuanDaugherty) (Quit: JuanDaugherty)
01:35:44 × ZharMeny quits (~user@user/ZharMeny) (Quit: how `long` is an `int`)
01:41:13 × xff0x quits (~xff0x@2405:6580:b080:900:dfe2:132b:5bfa:6516) (Ping timeout: 265 seconds)
01:44:04 × peterbecich quits (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 260 seconds)
01:56:26 × waleee quits (~waleee@h-176-10-144-38.NA.cust.bahnhof.se) (Read error: Connection reset by peer)
02:00:13 tzh joins (~tzh@c-76-115-131-146.hsd1.or.comcast.net)
02:04:57 × gentauro quits (~gentauro@user/gentauro) (Ping timeout: 252 seconds)
02:11:42 gentauro joins (~gentauro@user/gentauro)
02:20:50 Guest25 joins (~Guest25@c-71-205-23-57.hsd1.co.comcast.net)
02:28:53 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
02:32:53 × td_ quits (~td@i53870916.versanet.de) (Ping timeout: 248 seconds)
02:34:40 td_ joins (~td@i53870936.versanet.de)
02:37:05 xff0x joins (~xff0x@125.103.176.34)
02:44:44 × cipherrot quits (~znc-user@user/petrichor) (Ping timeout: 260 seconds)
02:46:44 petrichor joins (~znc-user@user/petrichor)
02:56:07 peterbecich joins (~Thunderbi@syn-047-229-123-186.res.spectrum.com)
03:05:42 aforemny_ joins (~aforemny@2001:9e8:6ce5:9e00:3eae:bcb7:91ff:d64b)
03:07:15 × aforemny quits (~aforemny@2001:9e8:6cc5:7700:e5cf:3849:4594:a5ae) (Ping timeout: 265 seconds)
03:09:33 × Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 245 seconds)
03:10:07 Lord_of_Life joins (~Lord@user/lord-of-life/x-2819915)
03:10:35 smalltalkman joins (uid545680@id-545680.hampstead.irccloud.com)
03:13:26 rosco joins (~rosco@175.136.158.234)
03:45:14 × peterbecich quits (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 260 seconds)
04:25:48 × Guest25 quits (~Guest25@c-71-205-23-57.hsd1.co.comcast.net) (Quit: Client closed)
04:31:50 peterbecich joins (~Thunderbi@syn-047-229-123-186.res.spectrum.com)
04:44:44 × peterbecich quits (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 260 seconds)
04:45:53 peterbecich joins (~Thunderbi@syn-047-229-123-186.res.spectrum.com)
04:52:52 × FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Remote host closed the connection)
04:53:20 FinnElija joins (~finn_elij@user/finn-elija/x-0085643)
04:53:22 michalz joins (~michalz@185.246.207.200)
05:12:54 × peterbecich quits (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 245 seconds)
05:26:54 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 276 seconds)
05:27:27 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
05:30:40 Square joins (~Square@user/square)
05:33:39 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 244 seconds)
05:34:00 euleritian joins (~euleritia@dynamic-176-006-133-192.176.6.pool.telefonica.de)
05:47:04 lol_ is now known as jcarpenter2
05:48:16 × pkal quits (~pkal@2a01:4f8:1c1b:a321::) (Remote host closed the connection)
05:48:25 pkal joins (~pkal@2a01:4f8:1c1b:a321::1)
05:50:09 × pkal quits (~pkal@2a01:4f8:1c1b:a321::1) (Remote host closed the connection)
05:50:18 pkal joins (~pkal@2a01:4f8:1c1b:a321::1)
05:51:04 × pkal quits (~pkal@2a01:4f8:1c1b:a321::1) (Remote host closed the connection)
05:51:13 pkal joins (~pkal@2a01:4f8:1c1b:a321::1)
05:51:58 × pkal quits (~pkal@2a01:4f8:1c1b:a321::1) (Remote host closed the connection)
05:52:06 pkal joins (~pkal@2a01:4f8:1c1b:a321::1)
06:00:03 × pkal quits (~pkal@2a01:4f8:1c1b:a321::1) (Remote host closed the connection)
06:01:15 pkal joins (~pkal@2a01:4f8:1c1b:a321::1)
06:15:28 JuanDaugherty joins (~juan@user/JuanDaugherty)
06:33:53 × Xe quits (~cadey@perl/impostor/xe) (Ping timeout: 255 seconds)
06:38:32 Xe joins (~cadey@perl/impostor/xe)
06:39:52 CiaoSen joins (~Jura@2a05:5800:2d9:fc00:e6b9:7aff:fe80:3d03)
06:42:56 kuribas joins (~user@2a02:1808:7:61bb:229c:98fa:4701:3649)
06:48:42 kuribas` joins (~user@2a02:1808:3:a2c9:e84:e3f2:e81a:6ace)
06:50:33 × kuribas quits (~user@2a02:1808:7:61bb:229c:98fa:4701:3649) (Ping timeout: 265 seconds)
06:53:05 lortabac joins (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4)
07:03:02 × kuribas` quits (~user@2a02:1808:3:a2c9:e84:e3f2:e81a:6ace) (Ping timeout: 244 seconds)
07:06:13 × rosco quits (~rosco@175.136.158.234) (Quit: Lost terminal)
07:21:44 acidjnk joins (~acidjnk@p200300d6e72cfb628054de8284f67264.dip0.t-ipconnect.de)
07:24:34 kuribas joins (~user@ip-188-118-57-242.reverse.destiny.be)
07:25:43 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
07:25:55 mreh joins (~matthew@host86-160-168-12.range86-160.btcentralplus.com)
07:27:08 × euleritian quits (~euleritia@dynamic-176-006-133-192.176.6.pool.telefonica.de) (Read error: Connection reset by peer)
07:27:23 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
07:40:42 × Sgeo quits (~Sgeo@user/sgeo) (Read error: Connection reset by peer)
07:41:35 gmg joins (~user@user/gehmehgeh)
07:43:58 × JuanDaugherty quits (~juan@user/JuanDaugherty) (Quit: JuanDaugherty)
07:44:05 sord937 joins (~sord937@gateway/tor-sasl/sord937)
07:47:54 danse-nr3 joins (~danse-nr3@user/danse-nr3)
07:49:03 Guest42 joins (~Guest42@m90-131-37-64.cust.tele2.lt)
07:53:47 Guest42 is now known as jinkims
07:55:08 × jinkims quits (~Guest42@m90-131-37-64.cust.tele2.lt) (Changing host)
07:55:08 jinkims joins (~Guest42@user/jinkims)
07:56:31 × CiaoSen quits (~Jura@2a05:5800:2d9:fc00:e6b9:7aff:fe80:3d03) (Ping timeout: 264 seconds)
07:56:41 × tzh quits (~tzh@c-76-115-131-146.hsd1.or.comcast.net) (Quit: zzz)
07:58:25 machinedgod joins (~machinedg@d173-183-246-216.abhsia.telus.net)
08:19:00 × Xe quits (~cadey@perl/impostor/xe) (Ping timeout: 265 seconds)
08:20:59 Xe joins (~cadey@perl/impostor/xe)
08:25:01 × danse-nr3 quits (~danse-nr3@user/danse-nr3) (Quit: on the move)
08:31:01 cfricke joins (~cfricke@user/cfricke)
08:37:16 mhatta joins (~mhatta@www21123ui.sakura.ne.jp)
08:38:15 × ft quits (~ft@p4fc2aa15.dip0.t-ipconnect.de) (Quit: leaving)
08:39:23 danse-nr3 joins (~danse-nr3@user/danse-nr3)
08:44:43 × Square quits (~Square@user/square) (Remote host closed the connection)
08:51:29 ubert joins (~Thunderbi@178.115.47.16.wireless.dyn.drei.com)
09:04:17 × Kryder quits (~Kryder@90.201.223.82) (Ping timeout: 248 seconds)
09:08:01 Kryder joins (~Kryder@85.255.237.168)
09:13:43 × Kryder quits (~Kryder@85.255.237.168) (Ping timeout: 245 seconds)
09:13:50 sawilagar joins (~sawilagar@user/sawilagar)
09:18:44 alex`` joins (~user@92.red-83-33-248.dynamicip.rima-tde.net)
09:20:48 thyriaen joins (~thyriaen@2001:4bc9:1fb8:12d1:6245:cbff:fe9f:48b1)
09:21:37 rosco joins (~rosco@175.136.158.234)
09:30:26 Kryder joins (~Kryder@90.201.223.82)
09:37:17 × thyriaen quits (~thyriaen@2001:4bc9:1fb8:12d1:6245:cbff:fe9f:48b1) (Remote host closed the connection)
09:39:45 × Dykam quits (Dykam@dykam.nl) (Quit: Dykam)
09:40:48 Dykam joins (Dykam@dykam.nl)
09:42:59 × AlexZenon quits (~alzenon@94.233.241.125) (Ping timeout: 260 seconds)
09:50:01 AlexZenon joins (~alzenon@94.233.241.125)
09:50:32 rlittl joins (~Android@2600:1004:b0b8:c0c0:d81c:21ff:fef5:41ca)
10:08:08 × lortabac quits (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Quit: WeeChat 4.2.2)
10:13:33 × xff0x quits (~xff0x@125.103.176.34) (Ping timeout: 265 seconds)
10:36:57 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 276 seconds)
10:37:40 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
10:41:00 Square joins (~Square@user/square)
10:43:32 × rosco quits (~rosco@175.136.158.234) (Quit: Lost terminal)
10:43:55 ZharMeny joins (~user@user/ZharMeny)
10:44:55 CiaoSen joins (~Jura@2a05:5800:2d9:fc00:e6b9:7aff:fe80:3d03)
11:11:13 lortabac joins (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4)
11:14:15 × danse-nr3 quits (~danse-nr3@user/danse-nr3) (Quit: meal)
11:17:11 xff0x joins (~xff0x@2405:6580:b080:900:7bc4:5f07:443b:cdc)
11:30:54 × ubert quits (~Thunderbi@178.115.47.16.wireless.dyn.drei.com) (Ping timeout: 276 seconds)
11:54:35 rosco joins (~rosco@175.136.158.234)
12:17:57 oo_miguel joins (~Thunderbi@78.10.207.46)
12:23:05 × alex`` quits (~user@92.red-83-33-248.dynamicip.rima-tde.net) (Ping timeout: 265 seconds)
12:30:47 JuanDaugherty joins (~juan@user/JuanDaugherty)
12:37:39 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.2.2)
12:40:34 cfricke joins (~cfricke@user/cfricke)
12:53:27 danse-nr3 joins (~danse-nr3@user/danse-nr3)
13:04:14 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Quit: = "")
13:13:51 × JuanDaugherty quits (~juan@user/JuanDaugherty) (Quit: JuanDaugherty)
13:14:03 × john4 quits (~john@203.94.52.182) (Read error: Connection reset by peer)
13:14:36 john2 joins (~john@203.94.52.182)
13:14:58 × CiaoSen quits (~Jura@2a05:5800:2d9:fc00:e6b9:7aff:fe80:3d03) (Ping timeout: 245 seconds)
13:31:35 × sp1ff quits (~user@c-73-11-70-111.hsd1.wa.comcast.net) (Remote host closed the connection)
13:32:14 × ddellacosta quits (~ddellacos@ool-44c73d29.dyn.optonline.net) (Ping timeout: 260 seconds)
13:36:01 ystael joins (~ystael@user/ystael)
13:40:59 × tomku quits (~tomku@user/tomku) (Ping timeout: 260 seconds)
13:41:13 tomku joins (~tomku@user/tomku)
13:47:19 thyriaen joins (~thyriaen@2001:4bc9:1fb8:12d1:6245:cbff:fe9f:48b1)
13:54:52 wroathe joins (~wroathe@mobile-166-175-191-76.mycingular.net)
13:54:52 × wroathe quits (~wroathe@mobile-166-175-191-76.mycingular.net) (Changing host)
13:54:52 wroathe joins (~wroathe@user/wroathe)
13:54:55 sp1ff joins (~user@c-73-11-70-111.hsd1.wa.comcast.net)
14:00:25 falafel joins (~falafel@2a0c:5a87:3104:4c01::bfe0)
14:10:19 × dolio quits (~dolio@130.44.140.168) (Ping timeout: 264 seconds)
14:10:42 × wroathe quits (~wroathe@user/wroathe) (Quit: leaving)
14:15:21 dolio joins (~dolio@130.44.140.168)
14:20:48 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 245 seconds)
14:21:20 euleritian joins (~euleritia@dynamic-176-006-128-197.176.6.pool.telefonica.de)
14:25:07 × mreh quits (~matthew@host86-160-168-12.range86-160.btcentralplus.com) (Quit: Lost terminal)
14:25:23 × michalz quits (~michalz@185.246.207.200) (Ping timeout: 245 seconds)
14:33:28 michalz joins (~michalz@185.246.207.197)
14:33:34 × falafel quits (~falafel@2a0c:5a87:3104:4c01::bfe0) (Ping timeout: 244 seconds)
14:37:17 tzh joins (~tzh@c-76-115-131-146.hsd1.or.comcast.net)
14:39:46 × Angelz quits (Angelz@user/angelz) (Ping timeout: 244 seconds)
14:39:59 × zfnmxt quits (~zfnmxt@user/zfnmxt) (Ping timeout: 252 seconds)
14:50:04 × rosco quits (~rosco@175.136.158.234) (Quit: Lost terminal)
14:50:35 zfnmxt joins (~zfnmxt@user/zfnmxt)
14:50:48 × jinkims quits (~Guest42@user/jinkims) (Ping timeout: 245 seconds)
15:00:01 × danse-nr3 quits (~danse-nr3@user/danse-nr3) ()
15:02:37 × euleritian quits (~euleritia@dynamic-176-006-128-197.176.6.pool.telefonica.de) (Read error: Connection reset by peer)
15:03:08 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
15:08:58 curious-user joins (~user@user/curious-user)
15:11:08 <curious-user> hi, what modern *not abandoned* web frameworks(micro is fine too) are there nowadays?
15:11:42 × lortabac quits (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Quit: WeeChat 4.2.2)
15:13:57 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
15:14:43 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
15:15:04 <ZharMeny> curious-user: you got to narrow down what 'web framework' means first
15:18:27 <curious-user> ZharMeny: things like yesod or servant
15:24:54 × curious-user quits (~user@user/curious-user) (Quit: WeeChat 4.3.4)
15:25:37 curious-user joins (~user@user/curious-user)
15:26:00 <haskellbridge> <sm> yesod, servant, IHP are the big ones
15:26:09 <haskellbridge> <sm> yesod, servant, IHP are the big ones
15:26:23 <haskellbridge> <sm> miso may also be maintained
15:26:35 <haskellbridge> <sm> lots of smaller ones findable on hackage
15:27:09 × tomku quits (~tomku@user/tomku) (Ping timeout: 260 seconds)
15:27:11 × thyriaen quits (~thyriaen@2001:4bc9:1fb8:12d1:6245:cbff:fe9f:48b1) (Remote host closed the connection)
15:27:24 tomku joins (~tomku@user/tomku)
15:29:25 <curious-user> cool, thank you
15:34:53 × curious-user quits (~user@user/curious-user) (Quit: WeeChat 4.3.4)
15:37:12 × CrunchyFlakes quits (~CrunchyFl@ip92348280.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
15:37:37 × nschoe quits (~nschoe@2a01:e0a:8e:a190:e958:8b05:e0fc:affd) (Quit: ZNC 1.8.2 - https://znc.in)
15:37:54 nschoe joins (~nschoe@2a01:e0a:8e:a190:c682:940b:f5c:17fc)
15:39:47 CrunchyFlakes joins (~CrunchyFl@ip92348280.dynamic.kabel-deutschland.de)
15:45:22 danse-nr3 joins (~danse-nr3@user/danse-nr3)
15:45:51 falafel joins (~falafel@79.117.174.21)
15:51:52 × urdh quits (~urdh@user/urdh) (Ping timeout: 252 seconds)
15:56:17 rvalue- joins (~rvalue@user/rvalue)
15:57:01 dans61442 joins (~danse-nr3@user/danse-nr3)
15:57:03 × rvalue quits (~rvalue@user/rvalue) (Ping timeout: 245 seconds)
15:57:30 × danse-nr3 quits (~danse-nr3@user/danse-nr3) (Read error: Connection reset by peer)
16:00:24 rvalue- is now known as rvalue
16:02:53 <dmj`> sm: miso is "maintained" :P
16:03:04 Angelz joins (Angelz@2605:6400:30:fc15:9bd1:2217:41cd:bb15)
16:06:13 × falafel quits (~falafel@79.117.174.21) (Ping timeout: 245 seconds)
16:09:51 qeef joins (~qeef@138-169-143-94.cust.centrio.cz)
16:09:59 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.2.2)
16:12:04 <haskellbridge> <sm> 👍🏻
16:19:33 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 248 seconds)
16:19:44 euleritian joins (~euleritia@dynamic-176-006-128-197.176.6.pool.telefonica.de)
16:20:59 × euleritian quits (~euleritia@dynamic-176-006-128-197.176.6.pool.telefonica.de) (Read error: Connection reset by peer)
16:21:07 × kuribas quits (~user@ip-188-118-57-242.reverse.destiny.be) (Remote host closed the connection)
16:21:17 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
16:25:23 × tessier quits (~treed@ec2-184-72-149-67.compute-1.amazonaws.com) (Remote host closed the connection)
16:26:46 urdh joins (~urdh@user/urdh)
16:26:46 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
16:28:01 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
16:32:47 ddellacosta joins (~ddellacos@ool-44c73d29.dyn.optonline.net)
16:36:21 tessier joins (~treed@ec2-184-72-149-67.compute-1.amazonaws.com)
16:51:57 × dans61442 quits (~danse-nr3@user/danse-nr3) (Remote host closed the connection)
16:52:11 danse-nr3 joins (~danse-nr3@user/danse-nr3)
16:55:46 × euphores quits (~SASL_euph@user/euphores) (Quit: Leaving.)
17:09:09 euphores joins (~SASL_euph@user/euphores)
17:09:49 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
17:16:58 × sudden quits (~cat@user/sudden) (Read error: Connection reset by peer)
17:19:02 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
17:28:53 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
17:29:29 <monochrom> I ran into students in another class and they chose to use Haskell for the web app they are making for that class, and I got curious and asked "which library do you use" and the answer is IHP "because it's the first thing on the Haskell wiki page about web apps" :)
17:29:58 <danse-nr3> heh good luck with that attitude
17:32:29 <monochrom> I once used wai, but my web app was an extremely minimal toy. ("count how many times self is visited")
17:33:06 <monochrom> even "but only since the server was (re)started"
17:33:30 <danse-nr3> there's mainly the microframeworks and the "battery included" attempts
17:33:34 sudden joins (~cat@user/sudden)
17:33:51 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
17:33:59 <danse-nr3> if one goes for a microframework, that's not that far from what servant does
17:34:19 <monochrom> And I wrote it because, only because, someone invited me to give a talk on docker, so I wanted a dumb web app to be run in docker as a simple example. :)
17:35:32 <monochrom> I still want to write a web app that I will actually use. An exam timer with space for announcing errata.
17:36:24 <danse-nr3> makes sense. Now, beyond proofs of concepts, i never experienced in haskell what i experienced with other langs when it comes to web dev... therefore i haven't been doing much web dev in past years
17:37:10 <danse-nr3> things may change with wasm
17:50:03 wootehfoot joins (~wootehfoo@user/wootehfoot)
17:51:58 skyesoss joins (~Thunderbi@c-73-208-45-119.hsd1.il.comcast.net)
17:54:39 spew joins (~spew@201.141.102.132)
17:55:50 × pavonia quits (~user@user/siracusa) (Quit: Bye!)
17:57:23 falafel joins (~falafel@2a0c:5a87:3104:4c01::bfe0)
18:00:23 <spew> I'm just learning haskell and trying to make what I write as idiomatic as I can. I just wrote a function twoSum that finds indices that sum to a particular number. Would someone please let me know what could be done more idiomatically or any other interesting ways to implement it? Thank you! https://paste.tomsmeding.com/JJdDPwHU
18:00:43 kupi joins (uid212005@id-212005.hampstead.irccloud.com)
18:02:57 <Inst> the function name "go" is more common these days than having function + apostrophe (prime) as the worker in a worker wrapper pattern
18:03:22 <spew> Inst: thank you that's very helpful
18:04:12 <Inst> add can also be put on the same level as twoSum', to avoid excessive nesting of wheres
18:04:57 <Inst> if you are going to nest it, though, you can remove the i
18:05:40 <Inst> yoou're technically shadowing a binding in the outer scope anyways
18:07:43 <spew> I think I prefer less nesting: https://paste.tomsmeding.com/iMLgXTar
18:09:27 <Inst> could add a space in the where clause
18:09:37 <Inst> erm, a newline to separate the function definitions
18:10:02 <spew> Inst: this is all very helpful, thank you for looking
18:10:38 <zzz> spew: https://stackoverflow.com/questions/60681248/is-this-idiomatic-haskell-two-sum-question
18:10:42 <haskellbridge> <sm> wow I feel for those students facing IHP setup
18:10:44 <haskellbridge> <sm> unless they're already nix zealots
18:12:04 <spew> zzz: someone somewhere on stackoverflow has done every stupid thing
18:13:18 × machinedgod quits (~machinedg@d173-183-246-216.abhsia.telus.net) (Ping timeout: 245 seconds)
18:13:54 <ZharMeny> if you can imagine doing something stupid then there's a stackoverflow question about it
18:15:13 × Angelz quits (Angelz@2605:6400:30:fc15:9bd1:2217:41cd:bb15) (Remote host closed the connection)
18:16:41 Buliarous joins (~gypsydang@46.232.210.139)
18:17:02 × Inst quits (~Inst@user/Inst) (Read error: Connection reset by peer)
18:19:12 <probie> When in doubt, use foldr (not actually idiomatic here)
18:19:17 <probie> > (\k xs -> foldr (\(n, ix) cont m -> [(iy, ix) | iy <- M.findWithDefault [] (k - n) m] ++ cont (M.alter (Just [ix] <>) n m)) (const []) (zip xs [0::Int ..]) mempty) 5 [1, 3, 6, -1, 3, 2]
18:19:18 <lambdabot> [(2,3),(4,5),(1,5)]
18:21:18 <probie> > Just [5 :: Int, 6, 7] <> Just [8] <> Nothing <> Just [9, 10] -- low hanging fruit; no need for `add`
18:21:19 <lambdabot> Just [5,6,7,8,9,10]
18:22:11 <probie> `IntMap.alter (Just [i] <>) x seen` does the job
18:23:22 <probie> actually, probably use `(<> Just [i])` so you get better ordering
18:25:37 <spew> probie: that is incredibly helpful, thank you
18:25:47 <spew> I'm very curious about various ways to implement things
18:29:57 × forell quits (~forell@user/forell) (Quit: ZNC - https://znc.in)
18:30:51 forell joins (~forell@user/forell)
18:32:22 noumenon joins (~noumenon@113.51-175-156.customer.lyse.net)
18:33:57 × tomku quits (~tomku@user/tomku) (Ping timeout: 248 seconds)
18:34:11 tomku joins (~tomku@user/tomku)
18:37:01 machinedgod joins (~machinedg@d173-183-246-216.abhsia.telus.net)
18:37:38 noumenon is now known as philalethes
18:37:46 Angelz joins (Angelz@Angelz.oddprotocol.org)
18:37:56 philalethes is now known as ephilalethes
18:39:53 × Angelz quits (Angelz@Angelz.oddprotocol.org) (Client Quit)
18:43:01 × machinedgod quits (~machinedg@d173-183-246-216.abhsia.telus.net) (Ping timeout: 248 seconds)
18:47:38 Angelz joins (Angelz@2605:6400:30:fc15:d55b:fa6c:bd14:9973)
18:56:06 × falafel quits (~falafel@2a0c:5a87:3104:4c01::bfe0) (Ping timeout: 272 seconds)
18:56:38 rlittl_ joins (~Android@2603:6081:5500:54:591c:3691:4117:db20)
18:56:38 × rlittl_ quits (~Android@2603:6081:5500:54:591c:3691:4117:db20) (Excess Flood)
18:56:57 × rlittl quits (~Android@2600:1004:b0b8:c0c0:d81c:21ff:fef5:41ca) (Read error: Connection reset by peer)
18:58:06 rlittl joins (~Android@160.sub-174-245-99.myvzw.com)
18:58:06 × rlittl quits (~Android@160.sub-174-245-99.myvzw.com) (Excess Flood)
18:58:29 rlittl joins (~Android@2600:1004:b0b8:c0c0:703e:f6ff:feae:8042)
18:58:29 × rlittl quits (~Android@2600:1004:b0b8:c0c0:703e:f6ff:feae:8042) (Excess Flood)
18:59:13 rlittl joins (~Android@2600:1004:b0b8:c0c0:703e:f6ff:feae:8042)
18:59:13 × rlittl quits (~Android@2600:1004:b0b8:c0c0:703e:f6ff:feae:8042) (Excess Flood)
18:59:45 × Angelz quits (Angelz@2605:6400:30:fc15:d55b:fa6c:bd14:9973) (Remote host closed the connection)
19:00:18 rlittl joins (~Android@160.sub-174-245-99.myvzw.com)
19:00:18 × rlittl quits (~Android@160.sub-174-245-99.myvzw.com) (Excess Flood)
19:00:24 jasperr joins (~jasperr@91-82-240-95.pool.digikabel.hu)
19:02:42 rlittl joins (~Android@2603:6081:5500:54:591c:3691:4117:db20)
19:02:42 × rlittl quits (~Android@2603:6081:5500:54:591c:3691:4117:db20) (Excess Flood)
19:04:46 Angelz joins (Angelz@2605:6400:30:fc15:9bd1:2217:41cd:bb15)
19:13:59 ft joins (~ft@p4fc2aa15.dip0.t-ipconnect.de)
19:15:14 × Square quits (~Square@user/square) (Ping timeout: 260 seconds)
19:15:57 Square joins (~Square@user/square)
19:17:00 × qeef quits (~qeef@138-169-143-94.cust.centrio.cz) (Remote host closed the connection)
19:17:42 × Angelz quits (Angelz@2605:6400:30:fc15:9bd1:2217:41cd:bb15) (Quit: IRCNow and Forever!)
19:22:07 × danse-nr3 quits (~danse-nr3@user/danse-nr3) (Quit: good night)
19:34:45 × spew quits (~spew@201.141.102.132) (Quit: spew)
19:45:55 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
20:05:08 target_i joins (~target_i@user/target-i/x-6023099)
20:10:21 × jasperr quits (~jasperr@91-82-240-95.pool.digikabel.hu) (Quit: Client closed)
20:22:41 machinedgod joins (~machinedg@d173-183-246-216.abhsia.telus.net)
20:25:48 × Square quits (~Square@user/square) (Ping timeout: 245 seconds)
20:36:58 Angelz joins (Angelz@Angelz.oddprotocol.org)
20:39:16 JuanDaugherty joins (~juan@user/JuanDaugherty)
20:48:19 × michalz quits (~michalz@185.246.207.197) (Remote host closed the connection)
20:57:40 g00gler joins (uid125351@id-125351.uxbridge.irccloud.com)
20:58:20 peterbecich joins (~Thunderbi@syn-047-229-123-186.res.spectrum.com)
21:05:58 × skyesoss quits (~Thunderbi@c-73-208-45-119.hsd1.il.comcast.net) (Quit: skyesoss)
21:09:30 × peterbecich quits (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 252 seconds)
21:13:08 mpb joins (~mpb@bras-base-otwaon230qw-grc-24-174-89-68-120.dsl.bell.ca)
21:27:00 pavonia joins (~user@user/siracusa)
21:35:24 × Luj9 quits (~Luj@2a01:e0a:de4:a0e1:be24:11ff:febc:b5b5) (Quit: Ping timeout (120 seconds))
21:35:42 Luj9 joins (~Luj@2a01:e0a:de4:a0e1:be24:11ff:febc:b5b5)
21:38:08 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
21:39:28 × machinedgod quits (~machinedg@d173-183-246-216.abhsia.telus.net) (Quit: Lost terminal)
21:39:50 machinedgod joins (~machinedg@d173-183-246-216.abhsia.telus.net)
21:39:59 × sord937 quits (~sord937@gateway/tor-sasl/sord937) (Quit: sord937)
21:40:15 skyesoss joins (~Thunderbi@c-73-208-45-119.hsd1.il.comcast.net)
22:08:41 × target_i quits (~target_i@user/target-i/x-6023099) (Quit: leaving)
22:12:12 Tuplanolla joins (~Tuplanoll@91-159-69-59.elisa-laajakaista.fi)
22:14:31 Sgeo joins (~Sgeo@user/sgeo)
22:20:24 × machinedgod quits (~machinedg@d173-183-246-216.abhsia.telus.net) (Remote host closed the connection)
22:20:29 × kupi quits (uid212005@id-212005.hampstead.irccloud.com) (Quit: Connection closed for inactivity)
22:22:49 machinedgod joins (~machinedg@d173-183-246-216.abhsia.telus.net)
22:45:27 <haskellbridge> <Jade> is this not a valid instance for `Monad (Lift f)`?
22:45:27 <haskellbridge> ... long message truncated: https://kf8nh.com/_matrix/media/v3/download/kf8nh.com/iXGiGCXhRYGAiRsbtVFzeGfT (3 lines)
23:03:31 <ncf> it is lawful i'm pretty sure
23:03:57 <ncf> i was considering something like this as a categorification of Semigroup m => Monoid (Maybe m) at some point
23:04:50 <ncf> (just like Maybe a = a + 1, Lift f = f + 1 where 1 is the identity functor)
23:05:39 <ncf> you'd think that you'd only need the functor equivalent of Semigroup (which is Bind), but this is actually not enough because general monads don't commute with coproducts
23:06:20 <ncf> so you need something like a generalised join : f (a + f a) → f a, or just give up and ask for Monad f
23:06:24 × mpb quits (~mpb@bras-base-otwaon230qw-grc-24-174-89-68-120.dsl.bell.ca) (Quit: Lost terminal)
23:18:16 × machinedgod quits (~machinedg@d173-183-246-216.abhsia.telus.net) (Remote host closed the connection)
23:19:31 machinedgod joins (~machinedg@d173-183-246-216.abhsia.telus.net)
23:23:36 × tabaqui quits (~root@87.200.123.114) (Ping timeout: 252 seconds)
23:28:57 halloy5409 joins (~halloy540@147.235.212.157)
23:31:56 × darkstardevx quits (~darkstard@50.53.3.2) (Quit: Leaving)
23:32:44 <halloy5409> @t foldr
23:32:44 <lambdabot> Maybe you meant: tell thank you thanks thesaurus thx tic-tac-toe ticker time todo todo-add todo-delete type v @ ? .
23:33:45 <halloy5409> @type map
23:33:46 <lambdabot> (a -> b) -> [a] -> [b]
23:34:24 × acidjnk quits (~acidjnk@p200300d6e72cfb628054de8284f67264.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
23:34:52 <halloy5409> > foldr (\x xs -> xs ++ [x]) [] [1,2,3,4,5]
23:34:53 <lambdabot> [5,4,3,2,1]
23:35:25 <halloy5409> @list
23:35:25 <lambdabot> What module? Try @listmodules for some ideas.
23:35:35 <halloy5409> @list,odules
23:35:35 <lambdabot> activity base bf check compose dice dict djinn dummy elite eval filter free fresh haddock help hoogle instances irc karma localtime metar more oeis offlineRC pl pointful poll pretty quote search
23:35:35 <lambdabot> seen slap source spell system tell ticker todo topic type undo unlambda unmtl version where
23:35:44 <halloy5409> @help
23:35:44 <lambdabot> help <command>. Ask for help for <command>. Try 'list' for all commands
23:35:51 <halloy5409> @help foldr
23:35:51 <lambdabot> help <command>. Ask for help for <command>. Try 'list' for all commands
23:36:17 <halloy5409> @listmodules
23:36:17 <lambdabot> activity base bf check compose dice dict djinn dummy elite eval filter free fresh haddock help hoogle instances irc karma localtime metar more oeis offlineRC pl pointful poll pretty quote search
23:36:17 <lambdabot> seen slap source spell system tell ticker todo topic type undo unlambda unmtl version where
23:36:28 <halloy5409> > foldr
23:36:30 <lambdabot> error:
23:36:30 <lambdabot> • No instance for (Typeable a0)
23:36:30 <lambdabot> arising from a use of ‘show_M77240290220706789158’
23:36:42 <halloy5409> ?
23:36:48 <halloy5409> ?help
23:36:48 <lambdabot> help <command>. Ask for help for <command>. Try 'list' for all commands
23:36:53 <halloy5409> help foldr
23:38:40 <halloy5409> > can someone please tell me how can i tell lambdabot to give me all the srtuct of the execution of foldr? not the result itself, but all the struct with the paren's
23:38:41 <lambdabot> <hint>:1:79: error: parse error on input ‘of’
23:38:51 <halloy5409> can someone please tell me how can i tell lambdabot to give me all the srtuct of the execution of foldr? not the result itself, but all the struct with the paren's
23:40:08 <halloy5409> > foldr (+) 0 [1,2,3,4]
23:40:10 <lambdabot> 10
23:40:30 <geekosaur> > foldr f z [a,b,c]
23:40:31 <lambdabot> f a (f b (f c z))
23:40:42 <geekosaur> courtesy of debug-reflect
23:41:24 <geekosaur> er, simple-reflect
23:42:12 <halloy5409> @geekosaur thanks. can i get it in specific function also? for example how do i get the same result with: foldr (+) 0 [1,1,3]
23:42:12 <lambdabot> Unknown command, try @list
23:42:30 <halloy5409> geekosaur thanks. can i get it in specific function also? for example how do i get the same result with: foldr (+) 0 [1,1,3]
23:43:23 <halloy5409> if i use specific function i get the result itself
23:44:20 halloy5409 is now known as menash
23:44:43 <menash> > foldr (+) 0 [1,2,3,4]
23:44:44 <lambdabot> 10
23:44:57 <geekosaur> lambdabot doesn't do that. I think there's a website that does?
23:45:36 <menash> i dont know. i would be happy to get a link to this website :-)
23:46:43 <menash> > foldr f [] [1,2,3,4 where f =
23:46:45 <lambdabot> <hint>:1:21: error: parse error on input ‘where’
23:47:07 <menash> > foldr f [] [1,2,3,4 where f x xs = xs ++ [x]
23:47:08 <lambdabot> <hint>:1:21: error: parse error on input ‘where’
23:48:11 <menash> > f x xs = xs ++ [x]
23:48:13 <lambdabot> <hint>:1:8: error: parse error on input ‘=’
23:48:37 <geekosaur> tried to find it, not succeeding. may have gone away years ago
23:49:46 <menash> geekosaur thanks for the help :-)
23:50:00 <jackdk> https://pbv.github.io/haskelite/site/index.html is the closest I'm aware of
23:50:46 <geekosaur> no, years ago there was a site that specifically traced foldl and foldr
23:51:31 <jackdk> Ah, well https://pbv.github.io/haskelite/site/folds.html shows `foldl`,`foldr`, and `foldl'` at least
23:51:45 <geekosaur> menash, "> " is an expression evaluator, you can use let-in or you can use @let to add a global definition (which will go away when someone does @undef)
23:53:19 × sawilagar quits (~sawilagar@user/sawilagar) (Ping timeout: 260 seconds)
23:53:23 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
23:55:44 <menash> this site is great. thank jackdk
23:57:36 <menash> @let f x xs = xs ++ [x]
23:57:37 <lambdabot> Defined.
23:57:52 <menash> foldr f [] [1,2,3,4]
23:58:11 <menash> > foldr f [] [1,2,3,4]
23:58:12 <lambdabot> error:
23:58:13 <lambdabot> Ambiguous occurrence ‘f’
23:58:13 <lambdabot> It could refer to
23:58:38 × Luj9 quits (~Luj@2a01:e0a:de4:a0e1:be24:11ff:febc:b5b5) (Quit: Ping timeout (120 seconds))
23:58:58 Luj9 joins (~Luj@2a01:e0a:de4:a0e1:be24:11ff:febc:b5b5)
23:59:26 <menash> geekosaur i did @let f x xs = xs ++ [x] and then when i'm using f with foldr, i get error (ambiguous occurrence 'f')

All times are in UTC on 2024-08-06.