Home liberachat/#haskell: Logs Calendar

Logs on 2022-04-02 (liberachat/#haskell)

00:01:16 geekosaur joins (~geekosaur@xmonad/geekosaur)
00:03:19 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 260 seconds)
00:05:02 × madjestic quits (~madjestic@88-159-247-120.fixed.kpn.net) (Ping timeout: 246 seconds)
00:07:50 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 246 seconds)
00:08:24 BlackboardN joins (~nathan@user/BlackboardN)
00:10:19 alp joins (~alp@user/alp)
00:11:50 wroathe joins (~wroathe@206-55-188-8.fttp.usinternet.com)
00:11:50 × wroathe quits (~wroathe@206-55-188-8.fttp.usinternet.com) (Changing host)
00:11:50 wroathe joins (~wroathe@user/wroathe)
00:15:55 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 260 seconds)
00:18:13 × gurkenglas quits (~gurkengla@dslb-178-012-018-212.178.012.pools.vodafone-ip.de) (Ping timeout: 260 seconds)
00:21:24 × Kaiepi quits (~Kaiepi@156.34.47.253) (Ping timeout: 272 seconds)
00:25:18 × califax quits (~califax@user/califx) (Remote host closed the connection)
00:28:39 califax joins (~califax@user/califx)
00:29:18 × segfaultfizzbuzz quits (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79) (Ping timeout: 260 seconds)
00:32:44 × lainon quits (~lainon@45-18-156-230.lightspeed.knvltn.sbcglobal.net) (Quit: lainon)
00:35:17 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
00:39:41 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 246 seconds)
00:43:35 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
00:47:31 Kaiepi joins (~Kaiepi@156.34.47.253)
00:49:52 lainon joins (~lainon@2600:1700:1bb0:1c10::1b)
00:50:50 × lainon quits (~lainon@2600:1700:1bb0:1c10::1b) (Client Quit)
00:52:38 abastro joins (~abab9579@220.75.216.63)
00:59:36 segfaultfizzbuzz joins (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79)
01:05:50 × alp quits (~alp@user/alp) (Ping timeout: 252 seconds)
01:06:33 chenqisu1 joins (~chenqisu1@183.217.200.168)
01:07:35 × zeenk quits (~zeenk@2a02:2f04:a313:d600:8d26:ec9f:3ff6:fc94) (Quit: Konversation terminated!)
01:08:16 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
01:10:34 × albet70 quits (~xxx@2400:8902::f03c:92ff:fe60:98d8) (Remote host closed the connection)
01:11:15 frost joins (~frost@user/frost)
01:11:17 harveypwca joins (~harveypwc@2601:246:c180:a570:3828:d8:e523:3f67)
01:11:53 × rawley quits (~rawley@216-197-141-102.nbfr.hsdb.sasknet.sk.ca) (Ping timeout: 256 seconds)
01:12:06 × ChaiTRex quits (~ChaiTRex@user/chaitrex) (Remote host closed the connection)
01:12:29 ChaiTRex joins (~ChaiTRex@user/chaitrex)
01:13:20 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 272 seconds)
01:15:44 × BlackboardN quits (~nathan@user/BlackboardN) (Ping timeout: 246 seconds)
01:16:40 albet70 joins (~xxx@2400:8902::f03c:92ff:fe60:98d8)
01:17:08 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 260 seconds)
01:18:55 neurocyte86149 joins (~neurocyte@IP-094046077081.dynamic.medianet-world.de)
01:18:56 × neurocyte86149 quits (~neurocyte@IP-094046077081.dynamic.medianet-world.de) (Changing host)
01:18:56 neurocyte86149 joins (~neurocyte@user/neurocyte)
01:20:47 × neurocyte8614 quits (~neurocyte@user/neurocyte) (Ping timeout: 260 seconds)
01:20:48 neurocyte86149 is now known as neurocyte8614
01:27:00 finsternis joins (~X@23.226.237.192)
01:35:10 × michalz quits (~michalz@185.246.204.61) (Remote host closed the connection)
01:36:35 × segfaultfizzbuzz quits (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79) (Ping timeout: 256 seconds)
01:44:32 × robertm quits (robertm@lattice.rojoma.com) (Quit: ...)
01:45:27 × hyiltiz quits (~quassel@31.220.5.250) (Ping timeout: 252 seconds)
01:46:05 × wroathe quits (~wroathe@user/wroathe) (Quit: Lost terminal)
01:47:27 robertm joins (robertm@lattice.rojoma.com)
01:47:35 × cheater quits (~Username@user/cheater) (Ping timeout: 256 seconds)
01:50:11 wroathe joins (~wroathe@206-55-188-8.fttp.usinternet.com)
01:50:11 × wroathe quits (~wroathe@206-55-188-8.fttp.usinternet.com) (Changing host)
01:50:11 wroathe joins (~wroathe@user/wroathe)
01:51:53 hyiltiz joins (~quassel@31.220.5.250)
01:54:36 × lbseale quits (~ep1ctetus@user/ep1ctetus) (Read error: Connection reset by peer)
01:57:02 × Unicorn_Princess quits (~Unicorn_P@93-103-228-248.dynamic.t-2.net) (Remote host closed the connection)
01:59:09 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
01:59:34 <abastro[m]> I think when we use haskell, we are enjoying advantage of laziness without noticing esp. when we employ abstractions. Am I the only one with this opinion?
02:02:03 × mon_aaraj quits (~MonAaraj@user/mon-aaraj/x-4416475) (Ping timeout: 260 seconds)
02:03:26 dsrt^ joins (~dsrt@c-24-99-107-170.hsd1.ga.comcast.net)
02:03:27 cheater joins (~Username@user/cheater)
02:03:33 mon_aaraj joins (~MonAaraj@user/mon-aaraj/x-4416475)
02:04:01 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 256 seconds)
02:04:40 segfaultfizzbuzz joins (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79)
02:06:42 rawley joins (~rawley@216-197-141-102.nbfr.hsdb.sasknet.sk.ca)
02:08:36 × segfaultfizzbuzz quits (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79) (Ping timeout: 240 seconds)
02:08:50 × robertm quits (robertm@lattice.rojoma.com) (Quit: WeeChat 3.0)
02:13:59 <shapr> abastro[m]: I would agree with that
02:14:43 robertm joins (robertm@lattice.rojoma.com)
02:25:05 fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net)
02:25:27 AlexNoo_ joins (~AlexNoo@178.34.161.168)
02:28:04 × AlexZenon quits (~alzenon@178.34.151.158) (Ping timeout: 272 seconds)
02:28:04 × Alex_test quits (~al_test@178.34.151.158) (Ping timeout: 272 seconds)
02:28:37 × AlexNoo quits (~AlexNoo@178.34.151.158) (Ping timeout: 240 seconds)
02:29:28 × motherfsck quits (~motherfsc@user/motherfsck) (Ping timeout: 260 seconds)
02:29:49 × [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Ping timeout: 240 seconds)
02:29:58 × fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 272 seconds)
02:31:16 Alex_test joins (~al_test@178.34.161.168)
02:31:17 AlexZenon joins (~alzenon@178.34.161.168)
02:31:53 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
02:34:00 [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470)
02:36:35 finn_elija joins (~finn_elij@user/finn-elija/x-0085643)
02:36:35 × FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Killed (NickServ (Forcing logout FinnElija -> finn_elija)))
02:36:35 finn_elija is now known as FinnElija
02:38:19 segfaultfizzbuzz joins (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79)
02:40:18 × abastro quits (~abab9579@220.75.216.63) (Remote host closed the connection)
02:40:28 abastro joins (~abab9579@220.75.216.63)
02:42:53 × segfaultfizzbuzz quits (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79) (Ping timeout: 260 seconds)
02:49:44 cdman joins (~dcm@user/dmc/x-4369397)
02:58:09 neightchan joins (~nate@98.45.152.91)
02:58:09 × Dorkside quits (~dorkside@208.190.197.222) (Remote host closed the connection)
02:58:23 Dorkside6 joins (~dorkside@208.190.197.222)
02:58:24 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
02:58:36 Dorkside6 joins (~dorkside@208.190.197.222)
02:58:36 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
02:58:41 × natechan quits (~nate@98.45.152.91) (Read error: Connection reset by peer)
02:58:48 Dorkside6 joins (~dorkside@208.190.197.222)
02:58:48 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
02:59:01 Dorkside6 joins (~dorkside@208.190.197.222)
02:59:01 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
02:59:14 Dorkside6 joins (~dorkside@208.190.197.222)
02:59:14 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
02:59:29 Dorkside6 joins (~dorkside@208.190.197.222)
02:59:30 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
02:59:41 × waleee quits (~waleee@2001:9b0:213:7200:cc36:a556:b1e8:b340) (Ping timeout: 252 seconds)
02:59:43 × zyklotomic quits (~ethan@res380d-128-61-87-11.res.gatech.edu) (Ping timeout: 260 seconds)
02:59:43 Dorkside6 joins (~dorkside@208.190.197.222)
02:59:44 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
02:59:56 Dorkside6 joins (~dorkside@208.190.197.222)
02:59:57 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:00:01 × haasn quits (~nand@haasn.dev) (Quit: ZNC 1.7.5+deb4 - https://znc.in)
03:00:09 Dorkside6 joins (~dorkside@208.190.197.222)
03:00:09 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:00:21 Dorkside6 joins (~dorkside@208.190.197.222)
03:00:21 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:00:34 Dorkside6 joins (~dorkside@208.190.197.222)
03:00:35 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:00:48 Dorkside6 joins (~dorkside@208.190.197.222)
03:00:49 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:01:08 Dorkside6 joins (~dorkside@208.190.197.222)
03:01:08 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:01:11 × yaroot quits (~yaroot@2409:12:ac0:2300:680e:dbff:fe1e:4953) (Ping timeout: 245 seconds)
03:01:25 haasn joins (~nand@haasn.dev)
03:01:27 Dorkside6 joins (~dorkside@208.190.197.222)
03:01:28 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:01:28 zyklotomic joins (~ethan@res380d-128-61-87-255.res.gatech.edu)
03:01:49 Dorkside6 joins (~dorkside@208.190.197.222)
03:01:49 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:02:01 Dorkside6 joins (~dorkside@208.190.197.222)
03:02:02 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:02:15 Dorkside6 joins (~dorkside@208.190.197.222)
03:02:16 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:02:29 Dorkside6 joins (~dorkside@208.190.197.222)
03:02:29 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:02:42 Dorkside6 joins (~dorkside@208.190.197.222)
03:02:42 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:03:03 Dorkside6 joins (~dorkside@208.190.197.222)
03:03:03 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:03:16 Dorkside6 joins (~dorkside@208.190.197.222)
03:03:17 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:03:30 Dorkside6 joins (~dorkside@208.190.197.222)
03:03:31 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:03:44 Dorkside6 joins (~dorkside@208.190.197.222)
03:03:44 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:03:57 Dorkside6 joins (~dorkside@208.190.197.222)
03:03:58 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:04:11 Dorkside6 joins (~dorkside@208.190.197.222)
03:04:12 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:04:24 Dorkside6 joins (~dorkside@208.190.197.222)
03:04:24 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:04:35 × FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Ping timeout: 240 seconds)
03:04:36 Dorkside6 joins (~dorkside@208.190.197.222)
03:04:36 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:04:51 Dorkside6 joins (~dorkside@208.190.197.222)
03:04:51 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:05:04 Dorkside6 joins (~dorkside@208.190.197.222)
03:05:05 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:05:17 Dorkside6 joins (~dorkside@208.190.197.222)
03:05:17 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:05:30 Dorkside6 joins (~dorkside@208.190.197.222)
03:05:31 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:05:44 Dorkside6 joins (~dorkside@208.190.197.222)
03:05:44 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:05:47 arjun joins (~arjun@user/arjun)
03:05:57 Dorkside6 joins (~dorkside@208.190.197.222)
03:05:57 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:06:11 Dorkside6 joins (~dorkside@208.190.197.222)
03:06:11 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:06:24 Dorkside6 joins (~dorkside@208.190.197.222)
03:06:25 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:06:38 Dorkside6 joins (~dorkside@208.190.197.222)
03:06:38 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:06:47 FinnElija joins (~finn_elij@user/finn-elija/x-0085643)
03:06:51 Dorkside6 joins (~dorkside@208.190.197.222)
03:06:51 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:07:04 Dorkside6 joins (~dorkside@208.190.197.222)
03:07:05 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:07:19 Dorkside6 joins (~dorkside@208.190.197.222)
03:07:19 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:07:21 <shapr> wow, part/join spam is much
03:07:33 Dorkside6 joins (~dorkside@208.190.197.222)
03:07:33 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:07:46 Dorkside6 joins (~dorkside@208.190.197.222)
03:07:47 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:08:00 Dorkside6 joins (~dorkside@208.190.197.222)
03:08:00 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:08:13 Dorkside6 joins (~dorkside@208.190.197.222)
03:08:13 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:08:27 Dorkside6 joins (~dorkside@208.190.197.222)
03:08:27 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:08:40 Dorkside6 joins (~dorkside@208.190.197.222)
03:08:41 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:08:53 Dorkside6 joins (~dorkside@208.190.197.222)
03:08:53 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:09:05 Dorkside6 joins (~dorkside@208.190.197.222)
03:09:05 × Dorkside6 quits (~dorkside@208.190.197.222) (Remote host closed the connection)
03:09:06 ChanServ sets mode +o litharge
03:09:06 litharge sets mode +b *!*@208.190.197.222
03:09:16 litharge sets mode -o litharge
03:09:59 motherfsck joins (~motherfsc@user/motherfsck)
03:10:46 ChanServ sets mode +o shapr
03:12:13 gingeh joins (~gingeh@2001:8003:1c2a:b600:6547:4150:79c1:8a30)
03:14:29 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
03:16:21 × mmaruseacph2 quits (~mihai@198.199.100.72) (Quit: So long and thanks for all the lambdas)
03:18:28 <gingeh> Hi, I'm fairly new to Haskell. I am writing a very basic interpreter (https://paste.tomsmeding.com/eT561V0J) and want to know if there is a way lines 11 and 12 could be simplified. Perhaps using something like a state monad?
03:22:35 <dsal> I don't think a State Monad is what you need there. The structure seems a little odd to me, though.
03:26:26 Zemyla joins (~Zemyla@2603-8080-4901-6095-ad10-d42b-e8a2-48d2.res6.spectrum.com)
03:26:57 <glguy> gingeh: https://paste.tomsmeding.com/RwcJYkCH
03:27:04 <glguy> dsal: maybe you'll find it interesting, too?
03:30:01 × ChaiTRex quits (~ChaiTRex@user/chaitrex) (Remote host closed the connection)
03:30:04 <dsal> Yeah, that's neat. I still don't think I'd use state for that, though.
03:30:23 ChaiTRex joins (~ChaiTRex@user/chaitrex)
03:30:30 segfaultfizzbuzz joins (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79)
03:30:46 <glguy> it's the same idea as using parser combinators
03:30:53 × zebrag quits (~chris@user/zebrag) (Quit: Konversation terminated!)
03:31:08 Codaraxis__ joins (~Codaraxis@user/codaraxis)
03:32:03 <monochrom> If you use Haskell's built-in recursion, you no longer use your own stack state.
03:32:14 Zemyla_ joins (~ec2-user@ec2-54-80-174-150.compute-1.amazonaws.com)
03:32:23 × Zemyla quits (~Zemyla@2603-8080-4901-6095-ad10-d42b-e8a2-48d2.res6.spectrum.com) (Quit: Client closed)
03:32:32 Zemyla_ is now known as Zemyla
03:32:32 × Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer)
03:32:40 Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi)
03:33:35 <monochrom> But you can also choose to limit yourself to tail recursion so you're as close to a low level loop as Haskell allows, and then you maintain your own stack and you can make it your state of the State monad.
03:34:12 <monochrom> Although, the only state operations are push and pop, so it is not the full power of State either.
03:34:43 × Codaraxis_ quits (~Codaraxis@user/codaraxis) (Ping timeout: 260 seconds)
03:34:47 × segfaultfizzbuzz quits (~segfaultf@2602:306:cd3c:9350:4091:e9b1:bc9f:dc79) (Ping timeout: 260 seconds)
03:34:48 × machinedgod quits (~machinedg@24.105.81.50) (Ping timeout: 260 seconds)
03:34:51 <monochrom> In this case any or all of Graham Hutton's "calculating a compiler" papers apply.
03:35:23 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 260 seconds)
03:36:01 <gingeh> glguy: that looks promising! I'll play around with that to see if it makes things easier.
03:36:49 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
03:37:31 <gingeh> monochrom: "If you use Haskell's built-in recursion, you no longer use your own stack state." What do you mean by that?
03:38:43 <monochrom> Err nevermind this is a Polish-notation calculator. So yeah what glguy says about parsing, this is simply parsing Polish notation. And s/stack/input stream/ .
03:39:07 ChanServ sets mode +o litharge
03:39:07 litharge sets mode -bo *!*@208.190.197.222 litharge
03:39:36 <monochrom> It is true that "StateT [Token] Maybe" is poor man's parser monad.
03:48:13 × rawley quits (~rawley@216-197-141-102.nbfr.hsdb.sasknet.sk.ca) (Remote host closed the connection)
03:50:44 <dsal> gingeh: Where was that list format specified? I think that's the part that's thrown me off. I'd expected to have parsed something into a tree structure that's more natural to evaluate instead of doing the same parsing phase again in the evaluator.
03:51:03 <dsal> I realized here I'd never actually seen forward polish notation.
03:51:25 <gingeh> This is just something I made while bored in class
03:51:35 <gingeh> I didn't put much design thought into it
03:54:19 <dsal> Ah, OK. It's a sensible exercise. In practice, I end up with the expression being more tree-like. e.g., data Expr a = Constant a | Add Expr Expr | Mul Expr Expr etc...
04:00:32 × abastro quits (~abab9579@220.75.216.63) (Ping timeout: 272 seconds)
04:01:10 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 272 seconds)
04:02:01 deadmarshal_ joins (~deadmarsh@95.38.116.113)
04:10:32 × sammelweis quits (~quassel@2601:401:8200:2d4c:bd9:d04c:7f69:eb10) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
04:16:37 <abastro[m]> Can you backtrack with `StateT [Token] Maybe`?
04:17:25 <glguy> You'd switch from Maybe to []
04:18:17 x88x88x joins (~x88x88x@2001:19f0:5:39a8:5400:3ff:feb6:73cb)
04:18:50 <abastro[m]> Oh, so that is poor man's parser monad
04:19:08 <glguy> also
04:34:55 × jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 260 seconds)
04:40:08 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 246 seconds)
04:40:46 <Zemyla> Do you tokenize before parsing?
04:45:07 Codaraxis_ joins (~Codaraxis@user/codaraxis)
04:45:13 × arjun quits (~arjun@user/arjun) (Quit: Leaving)
04:45:25 <dsal> Most of the time, I just do everything in one pass with megaparsec.
04:47:38 <dsal> My current work project is using attoparsec, but similar concept, I built up the final data structure as I'm going.
04:48:53 × Codaraxis__ quits (~Codaraxis@user/codaraxis) (Ping timeout: 260 seconds)
04:49:55 <Zemyla> So would tokenizing make things faster or simpler?
04:55:08 <dsal> I don't have performance or simplicity problems with any of my parsers, so I've not put thought into it.
04:57:43 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Remote host closed the connection)
04:58:17 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
05:00:42 BlackboardN joins (~nathan@user/BlackboardN)
05:02:53 × deadmarshal_ quits (~deadmarsh@95.38.116.113) (Ping timeout: 260 seconds)
05:03:14 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 246 seconds)
05:05:12 × BlackboardN quits (~nathan@user/BlackboardN) (Ping timeout: 260 seconds)
05:08:21 merijn joins (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl)
05:08:55 <abastro[m]> Why not do tokenizers tho?
05:10:30 <dsal> I don't understand what kind of improvements people are suggesting. Can you be concrete about what needs to be better in a particular parser?
05:10:35 × azimut quits (~azimut@gateway/tor-sasl/azimut) (Ping timeout: 240 seconds)
05:11:16 azimut joins (~azimut@gateway/tor-sasl/azimut)
05:13:50 <dolio> Parser combinators don't really require factoring out a separate tokenization stage as much as traditional parser designs.
05:14:24 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
05:14:26 <dolio> Getting a token can just be a parser.
05:16:17 × napping quits (~brandon@65.128.49.110) (Ping timeout: 260 seconds)
05:16:39 × AkechiShiro quits (~licht@user/akechishiro) (Ping timeout: 252 seconds)
05:17:31 AkechiShiro joins (~licht@user/akechishiro)
05:17:41 jakalx parts (~jakalx@base.jakalx.net) (Error from remote client)
05:24:20 mmaruseacph2 joins (~mihai@198.199.98.239)
05:32:31 vicfred joins (~vicfred@user/vicfred)
05:33:29 takuan joins (~takuan@178-116-218-225.access.telenet.be)
05:36:59 vysn joins (~vysn@user/vysn)
05:37:27 × merijn quits (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl) (Ping timeout: 260 seconds)
05:42:34 sammelweis joins (~quassel@2601:401:8200:2d4c:bd9:d04c:7f69:eb10)
05:43:25 jakalx joins (~jakalx@base.jakalx.net)
05:45:03 × Akiva quits (~Akiva@user/Akiva) (Ping timeout: 250 seconds)
05:51:39 acidjnk joins (~acidjnk@p200300d0c7049f703514052294f74a96.dip0.t-ipconnect.de)
05:58:26 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
06:01:15 × vicfred quits (~vicfred@user/vicfred) (Ping timeout: 260 seconds)
06:01:28 vicfred joins (~vicfred@user/vicfred)
06:08:03 × [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Remote host closed the connection)
06:18:30 × vysn quits (~vysn@user/vysn) (Remote host closed the connection)
06:22:13 × vicfred quits (~vicfred@user/vicfred) (Read error: Connection reset by peer)
06:22:55 vicfred joins (~vicfred@user/vicfred)
06:24:20 gurkenglas joins (~gurkengla@dslb-178-012-018-212.178.012.pools.vodafone-ip.de)
06:26:38 fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net)
06:31:28 vicfred_ joins (~vicfred@user/vicfred)
06:31:33 × fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 260 seconds)
06:31:52 <abastro[m]> I mean, getting a token would be parser
06:32:08 × vicfred quits (~vicfred@user/vicfred) (Ping timeout: 260 seconds)
06:32:37 <abastro[m]> So I was suggesting more like, gathering PC doing lexing together - so that you could distinguish which is interacting with char more easily
06:32:38 × zmt00 quits (~zmt00@user/zmt00) (Quit: Leaving)
06:36:45 zmt00 joins (~zmt00@user/zmt00)
06:43:13 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 260 seconds)
07:01:24 gehmehgeh joins (~user@user/gehmehgeh)
07:12:51 × cyphase quits (~cyphase@user/cyphase) (Ping timeout: 256 seconds)
07:15:52 cyphase joins (~cyphase@user/cyphase)
07:16:39 × zmt00 quits (~zmt00@user/zmt00) (Quit: Leaving)
07:18:31 zmt00 joins (~zmt00@user/zmt00)
07:20:43 bahamas joins (~lucian@84.232.140.158)
07:28:43 jakalx parts (~jakalx@base.jakalx.net) ()
07:28:49 jakalx joins (~jakalx@base.jakalx.net)
07:30:36 × ellie quits (~ellie@user/ellie) (Quit: The Lounge - https://thelounge.chat)
07:32:24 Midjak joins (~Midjak@82.66.147.146)
07:32:46 coot joins (~coot@213.134.190.95)
07:34:25 merijn joins (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl)
07:34:36 × Midjak quits (~Midjak@82.66.147.146) (Client Quit)
07:48:29 vicfred__ joins (~vicfred@user/vicfred)
07:48:47 × vicfred_ quits (~vicfred@user/vicfred) (Ping timeout: 246 seconds)
07:52:38 × bahamas quits (~lucian@84.232.140.158) (Ping timeout: 246 seconds)
07:52:51 Midjak joins (~Midjak@82.66.147.146)
07:56:45 × nek0 quits (~nek0@nek0.eu) (Quit: The Lounge - https://thelounge.chat)
07:57:50 madjestic joins (~madjestic@88-159-247-120.fixed.kpn.net)
08:07:27 Pickchea joins (~private@user/pickchea)
08:08:23 × merijn quits (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl) (Ping timeout: 260 seconds)
08:10:30 mikoto-chan joins (~mikoto-ch@213.177.151.239)
08:15:27 merijn joins (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl)
08:15:45 kuribas joins (~user@ptr-25vy0i9ukrx95drquaj.18120a2.ip6.access.telenet.be)
08:19:09 × benin quits (~benin@183.82.204.110) (Ping timeout: 256 seconds)
08:19:23 × cyphase quits (~cyphase@user/cyphase) (Ping timeout: 260 seconds)
08:19:39 mixfix41 joins (~homefame@user/mixfix41)
08:23:25 deadmarshal_ joins (~deadmarsh@95.38.116.113)
08:24:22 cyphase joins (~cyphase@user/cyphase)
08:27:43 daisyc1 joins (~daisyc4@212.30.36.90)
08:33:45 Tuplanolla joins (~Tuplanoll@91-159-69-98.elisa-laajakaista.fi)
08:36:41 alp joins (~alp@user/alp)
08:38:45 × Midjak quits (~Midjak@82.66.147.146) (Read error: Connection reset by peer)
08:39:27 Midjak joins (~Midjak@82.66.147.146)
08:40:42 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
08:45:01 × jespada quits (~jespada@cpc121022-nmal24-2-0-cust171.19-2.cable.virginm.net) (Quit: Textual IRC Client: www.textualapp.com)
08:49:03 ph14nix[m] joins (~ph14nixma@2001:470:69fc:105::1:ec40)
08:49:12 ph14nix[m] parts (~ph14nixma@2001:470:69fc:105::1:ec40) ()
08:52:49 × dsrt^ quits (~dsrt@c-24-99-107-170.hsd1.ga.comcast.net) (Remote host closed the connection)
08:57:58 × daisyc1 quits (~daisyc4@212.30.36.90) (Ping timeout: 260 seconds)
09:00:18 × Sgeo quits (~Sgeo@user/sgeo) (Read error: Connection reset by peer)
09:00:52 chomwitt joins (~chomwitt@2a02:587:dc1b:d600:c3a8:b4dc:b642:1f2)
09:03:50 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Remote host closed the connection)
09:04:25 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
09:05:06 mike11 joins (~Mike@user/mike11)
09:08:58 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
09:09:36 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 272 seconds)
09:13:08 jespada joins (~jespada@cpc121022-nmal24-2-0-cust171.19-2.cable.virginm.net)
09:14:06 × tzh quits (~tzh@c-24-21-73-154.hsd1.or.comcast.net) (Quit: zzz)
09:18:24 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
09:20:50 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 246 seconds)
09:22:28 × mike11 quits (~Mike@user/mike11) (Ping timeout: 260 seconds)
09:24:13 × acidjnk quits (~acidjnk@p200300d0c7049f703514052294f74a96.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
09:24:50 ProfSimm joins (~ProfSimm@87.227.196.109)
09:25:23 × zyklotomic quits (~ethan@res380d-128-61-87-255.res.gatech.edu) (Ping timeout: 260 seconds)
09:27:19 zyklotomic joins (~ethan@res388d-128-61-92-112.res.gatech.edu)
09:27:55 × ProfSimm quits (~ProfSimm@87.227.196.109) (Remote host closed the connection)
09:32:08 × dextaa_ quits (~dextaa@user/dextaa) (Remote host closed the connection)
09:35:08 liz joins (~liz@cpc84585-newc17-2-0-cust60.16-2.cable.virginm.net)
09:37:48 abastro joins (~abab9579@220.75.216.63)
09:37:53 AlexNoo_ is now known as AlexNoo
09:45:20 × merijn quits (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl) (Ping timeout: 246 seconds)
09:46:02 × mikoto-chan quits (~mikoto-ch@213.177.151.239) (Ping timeout: 246 seconds)
09:46:02 × Pickchea quits (~private@user/pickchea) (Ping timeout: 246 seconds)
09:48:10 mikoto-chan joins (~mikoto-ch@213.177.151.239)
09:52:20 zeenk joins (~zeenk@2a02:2f04:a313:d600:8d26:ec9f:3ff6:fc94)
09:53:56 acidjnk joins (~acidjnk@p200300d0c7049f70650b5af7f0466f4b.dip0.t-ipconnect.de)
09:56:02 jgeerds joins (~jgeerds@d5364b87.access.ecotel.net)
09:59:39 Guest43 joins (~Guest43@176.42.176.37)
10:01:08 BlackboardN joins (~nathan@user/BlackboardN)
10:02:34 hrdl joins (~hrdl@mail.hrdl.eu)
10:05:32 dyeplexer joins (~dyeplexer@user/dyeplexer)
10:06:03 × Guest43 quits (~Guest43@176.42.176.37) (Quit: Client closed)
10:06:56 × vicfred__ quits (~vicfred@user/vicfred) (Remote host closed the connection)
10:07:50 vicfred__ joins (~vicfred@user/vicfred)
10:10:05 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
10:11:49 cosimone joins (~user@93-47-228-79.ip115.fastwebnet.it)
10:14:23 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 246 seconds)
10:17:43 × abastro quits (~abab9579@220.75.216.63) (Remote host closed the connection)
10:17:54 abastro joins (~abab9579@220.75.216.63)
10:23:43 × deadmarshal_ quits (~deadmarsh@95.38.116.113) (Ping timeout: 260 seconds)
10:25:16 _ht joins (~quassel@231-169-21-31.ftth.glasoperator.nl)
10:28:17 fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net)
10:28:58 × xkuru quits (~xkuru@user/xkuru) (Ping timeout: 260 seconds)
10:30:22 × frost quits (~frost@user/frost) (Ping timeout: 250 seconds)
10:31:35 × ChaiTRex quits (~ChaiTRex@user/chaitrex) (Ping timeout: 240 seconds)
10:32:51 × fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 260 seconds)
10:33:41 ChaiTRex joins (~ChaiTRex@user/chaitrex)
10:34:53 cfricke joins (~cfricke@user/cfricke)
10:35:43 × turlando quits (~turlando@user/turlando) (Ping timeout: 256 seconds)
10:36:01 turlando joins (~turlando@93-42-250-112.ip89.fastwebnet.it)
10:36:01 × turlando quits (~turlando@93-42-250-112.ip89.fastwebnet.it) (Changing host)
10:36:01 turlando joins (~turlando@user/turlando)
10:36:23 ubert1 joins (~Thunderbi@p200300ecdf158897cd25ca1c45111265.dip0.t-ipconnect.de)
10:36:46 xkuru joins (~xkuru@user/xkuru)
10:47:05 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
10:50:47 × acidjnk quits (~acidjnk@p200300d0c7049f70650b5af7f0466f4b.dip0.t-ipconnect.de) (Ping timeout: 256 seconds)
10:53:10 deadmarshal_ joins (~deadmarsh@95.38.116.113)
10:54:42 × econo quits (uid147250@user/econo) (Quit: Connection closed for inactivity)
10:55:20 × mikoto-chan quits (~mikoto-ch@213.177.151.239) (Ping timeout: 246 seconds)
10:57:40 vysn joins (~vysn@user/vysn)
10:57:54 × deadmarshal_ quits (~deadmarsh@95.38.116.113) (Ping timeout: 272 seconds)
10:58:32 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b)))
10:58:32 allbery_b joins (~geekosaur@xmonad/geekosaur)
10:58:35 allbery_b is now known as geekosaur
10:59:40 zer0bitz joins (~zer0bitz@2001:2003:f750:a200:a519:6081:f3da:f296)
11:00:20 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.4.1)
11:01:41 <abastro> What is the idiomatic way to represent a function `f :: u -> v` where f (a <> b) = f a <> f b?
11:01:42 × BlackboardN quits (~nathan@user/BlackboardN) (Ping timeout: 272 seconds)
11:02:05 <abastro> When `u`, `v` are at least semigroup, ofc
11:02:34 <abastro> (Also `f mempty = mempty` in case of Monoid)
11:03:11 <abastro> I want a type which denotes that the restriction holds.
11:05:28 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Read error: Connection reset by peer)
11:05:28 awschnap joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
11:05:41 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Remote host closed the connection)
11:06:16 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
11:08:37 mikoto-chan joins (~mikoto-ch@213.177.151.239)
11:09:54 Psybur joins (~Psybur@2601:5c9:4201:3220:19c2:a1cd:6600:38ba)
11:11:22 × xkuru quits (~xkuru@user/xkuru) (Read error: Connection reset by peer)
11:11:50 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 272 seconds)
11:19:22 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
11:20:22 × Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer)
11:21:34 Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi)
11:21:51 × gurkenglas quits (~gurkengla@dslb-178-012-018-212.178.012.pools.vodafone-ip.de) (Ping timeout: 260 seconds)
11:25:47 × awschnap quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 246 seconds)
11:28:01 machinedgod joins (~machinedg@24.105.81.50)
11:28:48 Pickchea joins (~private@user/pickchea)
11:28:49 × gingeh quits (~gingeh@2001:8003:1c2a:b600:6547:4150:79c1:8a30) (Read error: Connection reset by peer)
11:29:38 × pooryorick quits (~pooryoric@87-119-174-173.tll.elisa.ee) (Ping timeout: 260 seconds)
11:29:52 pooryorick joins (~pooryoric@87-119-174-173.tll.elisa.ee)
11:30:22 gingeh joins (~gingeh@2001:8003:1c2a:b600:79c4:94cc:218e:5ea5)
11:32:40 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Remote host closed the connection)
11:35:13 acidjnk joins (~acidjnk@p200300d0c7049f70498c262e6d47c9a7.dip0.t-ipconnect.de)
11:35:45 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
11:40:59 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 260 seconds)
11:41:56 merijn joins (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl)
11:43:15 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
11:45:44 × mikoto-chan quits (~mikoto-ch@213.177.151.239) (Ping timeout: 246 seconds)
11:48:27 unit73e joins (~emanuel@2001:818:e8dd:7c00:32b5:c2ff:fe6b:5291)
11:49:11 <unit73e> hello. looks like the best way to handle packages is just using ghcup. at least in arch.
11:49:19 <unit73e> avoids all the issues
11:49:36 <geekosaur> that's generally the recommendation, yes
11:52:20 mcgroin joins (~mcgroin@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr)
11:57:06 <Franciman> unit73e: i like that way too ^^
11:58:22 bahamas joins (~lucian@84.232.140.158)
12:04:09 <unit73e> hls now works flawlessly. unfortunately arch packages never really worked very well with haskell.
12:04:34 <unit73e> not even the static versions
12:05:46 <unit73e> still on the nobody asked xp3 battle. making args now.
12:11:17 × zer0bitz quits (~zer0bitz@2001:2003:f750:a200:a519:6081:f3da:f296) ()
12:16:26 × merijn quits (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl) (Ping timeout: 272 seconds)
12:17:35 razetime joins (~quassel@49.207.199.125)
12:18:43 <abastro> Anyone knows answer to my question?
12:20:14 × jgeerds quits (~jgeerds@d5364b87.access.ecotel.net) (Ping timeout: 272 seconds)
12:21:28 × gawen quits (~gawen@user/gawen) (Quit: cya)
12:23:00 gawen joins (~gawen@user/gawen)
12:24:21 mbuf joins (~Shakthi@171.61.151.80)
12:27:20 <abastro> (Is it fine to say it again?)
12:27:38 <tdammers> it generally won't increase your odds of getting an answer
12:27:50 <tdammers> maybe if it's been hours
12:27:50 × mcgroin quits (~mcgroin@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 272 seconds)
12:28:02 <geekosaur> you might want to ask it on reddit or the discourse too
12:29:12 mcgroin joins (~mcgroin@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr)
12:30:53 × alp quits (~alp@user/alp) (Ping timeout: 260 seconds)
12:34:14 × chenqisu1 quits (~chenqisu1@183.217.200.168) (Quit: Leaving)
12:36:24 odnes joins (~odnes@5-203-146-18.pat.nym.cosmote.net)
12:37:40 × bliminse quits (~bliminse@host86-185-253-73.range86-185.btcentralplus.com) (Quit: leaving)
12:38:29 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Remote host closed the connection)
12:39:07 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
12:40:58 × pavonia quits (~user@user/siracusa) (Quit: Bye!)
12:42:51 × razetime quits (~quassel@49.207.199.125) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
12:43:07 razetime joins (~quassel@49.207.199.125)
12:43:59 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 260 seconds)
12:44:49 bliminse joins (~bliminse@host86-185-253-73.range86-185.btcentralplus.com)
12:45:20 × euandreh quits (~euandreh@2804:14c:33:9fe5:ac31:7ac1:bab2:710d) (Remote host closed the connection)
12:45:44 euandreh joins (~euandreh@2804:14c:33:9fe5:67d2:d391:3f5:bf92)
12:46:23 <abastro> I see, that could be betteer
12:46:46 <abastro> Perhaps you mean you do not have an easy answer for this?
12:47:28 × zeenk quits (~zeenk@2a02:2f04:a313:d600:8d26:ec9f:3ff6:fc94) (Quit: Konversation terminated!)
12:50:03 mikoto-chan joins (~mikoto-ch@213.177.151.239)
12:51:09 <geekosaur> I just mean if you're not getting answers here you might need a wider audience
12:51:34 <geekosaur> speaking more as a mod than as a Haskell person (sadly, I don't know nearly as much Haskell as I sometimes seem to)
12:53:08 × unit73e quits (~emanuel@2001:818:e8dd:7c00:32b5:c2ff:fe6b:5291) (Ping timeout: 252 seconds)
12:53:12 × vysn quits (~vysn@user/vysn) (Quit: WeeChat 3.4)
12:55:03 nek0 joins (~nek0@nek0.eu)
12:55:51 <abastro> Oh, I see. I thought you were master haskeller (and perhaps you really are & suffering imposter syndrome)
12:58:54 <geekosaur> no, there's quite a lot I don't know yet
12:59:25 <geekosaur> I think a lot of my rep comes from being the main xmonad maintainer… but 90% of that is twiddling the right X server bits, which I *do* know well
13:01:05 <geekosaur> but I confused myself (as usual) and possiblky confused someone else last night trying to explain "forall" last night: I understand it in practice but can't describe it properly for the life of me
13:03:15 <liz> abastro: i'm not sure if there's a type that represents that restriction, but that sort of function is a homomorphism of semigroups
13:09:11 × bahamas quits (~lucian@84.232.140.158) (Ping timeout: 260 seconds)
13:09:58 × acidjnk quits (~acidjnk@p200300d0c7049f70498c262e6d47c9a7.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
13:12:09 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
13:12:52 × AlexZenon quits (~alzenon@178.34.161.168) (Quit: ;-)
13:13:02 × Alex_test quits (~al_test@178.34.161.168) (Quit: ;-)
13:13:08 <abastro> Yep, I want to represent homomorphism of semigroups
13:13:08 × AlexNoo quits (~AlexNoo@178.34.161.168) (Quit: Leaving)
13:13:18 <abastro> Feels bad just using function
13:14:38 × madjestic quits (~madjestic@88-159-247-120.fixed.kpn.net) (Ping timeout: 260 seconds)
13:16:39 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 260 seconds)
13:17:06 AlexNoo joins (~AlexNoo@178.34.161.168)
13:17:38 AlexZenon joins (~alzenon@178.34.161.168)
13:18:58 Alex_test joins (~al_test@178.34.161.168)
13:19:24 × Psybur quits (~Psybur@2601:5c9:4201:3220:19c2:a1cd:6600:38ba) (Ping timeout: 240 seconds)
13:19:43 × mcgroin quits (~mcgroin@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Remote host closed the connection)
13:20:18 × Alex_test quits (~al_test@178.34.161.168) (Client Quit)
13:20:26 Psybur joins (~Psybur@2600:1003:b1ad:503e:b062:f712:8f0b:8adc)
13:21:10 Alex_test joins (~al_test@178.34.161.168)
13:23:29 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
13:27:44 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
13:27:53 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
13:32:08 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 246 seconds)
13:35:16 <kuribas> albet70: hi
13:35:18 <kuribas> albet70: do you get RankN types now?
13:37:49 <abastro> I guess my question is actually more suited for Haskell Discourse. Thank you!
13:42:33 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
13:44:28 __monty__ joins (~toonn@user/toonn)
13:46:14 deadmarshal_ joins (~deadmarsh@95.38.116.113)
13:51:27 × Pickchea quits (~private@user/pickchea) (Quit: Leaving)
13:52:06 stevenxl joins (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net)
13:52:22 × kuribas quits (~user@ptr-25vy0i9ukrx95drquaj.18120a2.ip6.access.telenet.be) (Remote host closed the connection)
13:56:39 × Psybur quits (~Psybur@2600:1003:b1ad:503e:b062:f712:8f0b:8adc) (Ping timeout: 256 seconds)
13:59:21 Psybur joins (~Psybur@2600:1003:b1a9:25a8:85a:5624:5153:ebdd)
14:01:12 acidjnk joins (~acidjnk@p200300d0c7049f70498c262e6d47c9a7.dip0.t-ipconnect.de)
14:01:33 wroathe joins (~wroathe@206-55-188-8.fttp.usinternet.com)
14:01:34 × wroathe quits (~wroathe@206-55-188-8.fttp.usinternet.com) (Changing host)
14:01:34 wroathe joins (~wroathe@user/wroathe)
14:01:56 × Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer)
14:02:07 Vajb joins (~Vajb@2001:999:62:aa00:7f5a:4f10:c894:3813)
14:02:51 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 260 seconds)
14:04:23 hololeap joins (~hololeap@user/hololeap)
14:12:21 merijn joins (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl)
14:12:55 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
14:15:56 × Vajb quits (~Vajb@2001:999:62:aa00:7f5a:4f10:c894:3813) (Read error: Connection reset by peer)
14:17:28 Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi)
14:17:37 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 260 seconds)
14:18:15 × acidjnk quits (~acidjnk@p200300d0c7049f70498c262e6d47c9a7.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
14:23:44 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 272 seconds)
14:23:56 × Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer)
14:24:29 Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi)
14:25:23 BlackboardN joins (~Blackboar@c-71-231-59-104.hsd1.wa.comcast.net)
14:25:26 Graham31415 joins (~Graham@user/Graham31415)
14:28:10 × razetime quits (~quassel@49.207.199.125) (Ping timeout: 272 seconds)
14:28:59 × BlackboardN quits (~Blackboar@c-71-231-59-104.hsd1.wa.comcast.net) (Client Quit)
14:31:17 nsaritzky joins (~nsaritzky@c-71-231-59-104.hsd1.wa.comcast.net)
14:31:36 × dextaa quits (~DV@user/dextaa) (Ping timeout: 252 seconds)
14:32:36 mvk joins (~mvk@2607:fea8:5ce3:8500::3800)
14:40:57 × Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Ping timeout: 260 seconds)
14:42:28 Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi)
14:42:28 zer0bitz joins (~zer0bitz@2001:2003:f750:a200:d90e:8b62:fe9d:3118)
14:46:43 × x88x88x quits (~x88x88x@2001:19f0:5:39a8:5400:3ff:feb6:73cb) (Quit: ZNC - https://znc.in)
14:46:43 × merijn quits (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl) (Ping timeout: 260 seconds)
14:48:40 wroathe joins (~wroathe@206-55-188-8.fttp.usinternet.com)
14:48:40 × wroathe quits (~wroathe@206-55-188-8.fttp.usinternet.com) (Changing host)
14:48:40 wroathe joins (~wroathe@user/wroathe)
14:57:50 × nsaritzky quits (~nsaritzky@c-71-231-59-104.hsd1.wa.comcast.net) (Quit: ZNC 1.8.2 - https://znc.in)
15:00:18 nsaritzky joins (~nsaritzky@c-71-231-59-104.hsd1.wa.comcast.net)
15:05:35 × coot quits (~coot@213.134.190.95) (Quit: coot)
15:08:23 × machinedgod quits (~machinedg@24.105.81.50) (Ping timeout: 246 seconds)
15:14:20 × hughjfchen quits (~hughjfche@vmi556545.contaboserver.net) (Quit: WeeChat 2.8)
15:15:01 napping joins (~brandon@65.128.49.110)
15:15:14 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Remote host closed the connection)
15:15:16 alp joins (~alp@user/alp)
15:15:31 [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470)
15:15:48 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
15:20:33 hughjfchen joins (~hughjfche@vmi556545.contaboserver.net)
15:21:51 × jrm quits (~jrm@156.34.173.250) (Quit: ciao)
15:23:26 jrm joins (~jrm@156.34.173.250)
15:26:59 gurkenglas joins (~gurkengla@dslb-178-012-018-212.178.012.pools.vodafone-ip.de)
15:28:00 benin joins (~benin@183.82.204.110)
15:32:28 kuribas joins (~user@ptr-25vy0i7mej08atpseum.18120a2.ip6.access.telenet.be)
15:34:19 × liz quits (~liz@cpc84585-newc17-2-0-cust60.16-2.cable.virginm.net) (Ping timeout: 260 seconds)
15:36:13 × Ram-Z quits (Ram-Z@2a01:7e01::f03c:91ff:fe57:d2df) (Ping timeout: 240 seconds)
15:38:00 pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655)
15:38:51 BlackboardN joins (~nathan@user/BlackboardN)
15:42:44 econo joins (uid147250@user/econo)
15:44:57 Sgeo joins (~Sgeo@user/sgeo)
15:47:17 daisyc1 joins (~daisyc4@212.30.36.24)
15:50:34 Ram-Z joins (~Ram-Z@li1814-254.members.linode.com)
15:56:15 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 260 seconds)
15:57:40 boxscape_ joins (~boxscape_@p4ff0be5f.dip0.t-ipconnect.de)
15:57:57 <boxscape_> is there a way to tell cabal which ghc binary it should use?
15:58:07 <maerwald> cabal build -w ghc-8.10.7
15:58:17 <boxscape_> ah, thanks
15:58:56 <maerwald> or: ghcup run --ghc 8.10.7 cabal -- build
15:59:16 <boxscape_> okay
15:59:41 <maerwald> more useful for vscode and such
15:59:53 <boxscape_> right, I see
16:00:07 × VanceIsM7[m] quits (~vanceism7@2001:470:69fc:105::3ad) (Quit: You have been kicked for being idle)
16:00:12 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
16:01:26 odnes_ joins (~odnes@5-203-146-18.pat.nym.cosmote.net)
16:01:51 × odnes quits (~odnes@5-203-146-18.pat.nym.cosmote.net) (Ping timeout: 260 seconds)
16:05:29 <monochrom> Every program evolves towards including an email client and a run command. >:)
16:05:52 <abastro> Can include ghc-options in `cabal.project` as well
16:06:14 <abastro> Oh, I meant `with-compiler: ghc-8.10.7
16:06:27 <boxscape_> oh, yeah, using cabal.project is a good idea
16:09:07 vysn joins (~vysn@user/vysn)
16:10:15 FragByte_ joins (~christian@user/fragbyte)
16:12:11 <maerwald> monochrom: ghcup run --ghc 8.10.7 -- cabal exec stack -- --system-ghc runghc -- --version
16:12:32 <monochrom> haha
16:12:46 <maerwald> that actually works (in a project dir)
16:12:49 <monochrom> Truly the next level of software envelopment.
16:13:00 × Psybur quits (~Psybur@2600:1003:b1a9:25a8:85a:5624:5153:ebdd) (Ping timeout: 240 seconds)
16:13:01 × FragByte quits (~christian@user/fragbyte) (Ping timeout: 240 seconds)
16:13:01 FragByte_ is now known as FragByte
16:13:15 <maerwald> funnilly, specifing stack first doesn't work because it messes with GHC_PACKAGE_PATH
16:13:28 × mbuf quits (~Shakthi@171.61.151.80) (Quit: Leaving)
16:13:38 <geekosaur> that's what I was just wondering, cabal exec should as well
16:13:49 <geekosaur> although you may need to be inside a project for that
16:14:29 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
16:14:35 Psybur joins (~Psybur@2600:4040:4022:4000:19c2:a1cd:6600:38ba)
16:14:40 <maerwald> is just missing a `docker run`
16:15:28 <monochrom> If specify stack first, perhaps insert a middle shell script that umesses GHC_PACKAGE_PATH
16:16:25 ec joins (~ec@gateway/tor-sasl/ec)
16:16:49 × ec quits (~ec@gateway/tor-sasl/ec) (Client Quit)
16:18:30 xkuru joins (~xkuru@user/xkuru)
16:19:38 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 272 seconds)
16:19:39 × kaph quits (~kaph@net-93-67-57-97.cust.vodafonedsl.it) (Read error: Connection reset by peer)
16:21:38 <maerwald> wrt email, I think https://github.com/soywod/himalaya might actually integrate well with ghcup xD
16:25:21 × boxscape_ quits (~boxscape_@p4ff0be5f.dip0.t-ipconnect.de) (Quit: Connection closed)
16:25:27 boxscape_3 joins (~boxscape_@p4ff0be5f.dip0.t-ipconnect.de)
16:25:39 kaph joins (~kaph@net-93-67-57-97.cust.vodafonedsl.it)
16:25:52 boxscape_3 is now known as boxscape_
16:25:55 tzh joins (~tzh@c-24-21-73-154.hsd1.or.comcast.net)
16:26:44 × boxscape_ quits (~boxscape_@p4ff0be5f.dip0.t-ipconnect.de) (Client Quit)
16:26:57 × img quits (~img@user/img) (Quit: ZNC 1.8.2 - https://znc.in)
16:27:59 <kuribas> :t foldl
16:28:00 <lambdabot> Foldable t => (b -> a -> b) -> b -> t a -> b
16:28:18 img joins (~img@user/img)
16:28:21 <kuribas> > foldl f a [b, c]
16:28:23 <lambdabot> f (f a b) c
16:28:50 <kuribas> @src foldl
16:28:50 <lambdabot> foldl f z [] = z
16:28:50 <lambdabot> foldl f z (x:xs) = foldl f (f z x) xs
16:28:57 boxscape_ joins (~boxscape_@p4ff0be5f.dip0.t-ipconnect.de)
16:37:02 lbseale joins (~ep1ctetus@user/ep1ctetus)
16:37:29 <kuribas> @src foldl'
16:37:29 <lambdabot> foldl' f a [] = a
16:37:29 <lambdabot> foldl' f a (x:xs) = let a' = f a x in a' `seq` foldl' f a' xs
16:38:37 <boxscape_> @src foldl
16:38:37 <lambdabot> foldl f z [] = z
16:38:37 <lambdabot> foldl f z (x:xs) = foldl f (f z x) xs
16:39:41 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
16:41:29 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 246 seconds)
16:43:10 merijn joins (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl)
16:48:11 jakalx parts (~jakalx@base.jakalx.net) (Error from remote client)
16:48:46 × lbseale quits (~ep1ctetus@user/ep1ctetus) (Ping timeout: 272 seconds)
16:52:52 razetime joins (~quassel@49.207.199.125)
16:55:00 jakalx joins (~jakalx@base.jakalx.net)
16:55:08 × daisyc1 quits (~daisyc4@212.30.36.24) (Ping timeout: 246 seconds)
16:55:29 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
16:59:32 × deadmarshal_ quits (~deadmarsh@95.38.116.113) (Ping timeout: 272 seconds)
17:02:27 liz joins (~liz@cpc84585-newc17-2-0-cust60.16-2.cable.virginm.net)
17:07:15 × razetime quits (~quassel@49.207.199.125) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
17:08:45 × vysn quits (~vysn@user/vysn) (Ping timeout: 256 seconds)
17:11:15 × motherfsck quits (~motherfsc@user/motherfsck) (Ping timeout: 256 seconds)
17:12:38 × dyeplexer quits (~dyeplexer@user/dyeplexer) (Ping timeout: 246 seconds)
17:15:02 × hololeap quits (~hololeap@user/hololeap) (Remote host closed the connection)
17:15:36 dyeplexer joins (~dyeplexer@user/dyeplexer)
17:16:21 hololeap joins (~hololeap@user/hololeap)
17:17:18 × merijn quits (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl) (Ping timeout: 260 seconds)
17:21:23 × abastro quits (~abab9579@220.75.216.63) (Ping timeout: 260 seconds)
17:25:12 jgeerds joins (~jgeerds@d5364b87.access.ecotel.net)
17:25:34 x88x88x joins (~x88x88x@2001:19f0:5:39a8:5400:3ff:feb6:73cb)
17:26:16 motherfsck joins (~motherfsc@user/motherfsck)
17:35:04 deadmarshal_ joins (~deadmarsh@95.38.116.113)
17:36:47 × stevenxl quits (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net) (Ping timeout: 246 seconds)
17:37:33 avpx joins (~avpx@c-174-61-141-172.hsd1.wa.comcast.net)
17:38:35 × motherfsck quits (~motherfsc@user/motherfsck) (Ping timeout: 252 seconds)
17:39:00 motherfsck joins (~motherfsc@user/motherfsck)
17:39:04 bahamas joins (~lucian@84.232.140.158)
17:39:14 × deadmarshal_ quits (~deadmarsh@95.38.116.113) (Ping timeout: 246 seconds)
17:39:28 × avpx quits (~avpx@c-174-61-141-172.hsd1.wa.comcast.net) (Client Quit)
17:39:42 stevenxl joins (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net)
17:40:19 × jtm quits (~jtm@user/jtm) (Quit: k byeeee)
17:40:40 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Remote host closed the connection)
17:41:15 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
17:41:24 avpx joins (~avpx___@c-174-61-141-172.hsd1.wa.comcast.net)
17:42:43 jtm joins (~jtm@user/jtm)
17:43:52 × motherfsck quits (~motherfsc@user/motherfsck) (Ping timeout: 272 seconds)
17:46:24 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 272 seconds)
17:48:14 coot joins (~coot@213.134.190.95)
17:54:19 × zaquest quits (~notzaques@5.130.79.72) (Ping timeout: 260 seconds)
17:55:36 Unicorn_Princess joins (~Unicorn_P@93-103-228-248.dynamic.t-2.net)
17:58:07 motherfsck joins (~motherfsc@user/motherfsck)
18:05:31 × stevenxl quits (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net) (Ping timeout: 260 seconds)
18:08:48 Digit parts (~user@user/digit) (i'll be back when i'm haskelling harder.)
18:08:55 × jpds quits (~jpds@gateway/tor-sasl/jpds) (Ping timeout: 240 seconds)
18:09:06 × kaph quits (~kaph@net-93-67-57-97.cust.vodafonedsl.it) (Read error: Connection reset by peer)
18:09:33 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
18:11:17 jpds joins (~jpds@gateway/tor-sasl/jpds)
18:13:56 × Psybur quits (~Psybur@2600:4040:4022:4000:19c2:a1cd:6600:38ba) (Ping timeout: 260 seconds)
18:14:22 Psybur joins (~Psybur@2600:1003:b1a9:25a8:9157:2734:89e6:c88e)
18:16:23 × x88x88x quits (~x88x88x@2001:19f0:5:39a8:5400:3ff:feb6:73cb) (Quit: ZNC - https://znc.in)
18:16:45 × avpx quits (~avpx___@c-174-61-141-172.hsd1.wa.comcast.net) (Quit: Leaving)
18:17:00 × TonyStone quits (~TonyStone@cpe-74-76-51-197.nycap.res.rr.com) (Remote host closed the connection)
18:21:35 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 240 seconds)
18:22:59 × boxscape_ quits (~boxscape_@p4ff0be5f.dip0.t-ipconnect.de) (Ping timeout: 246 seconds)
18:23:18 × cdman quits (~dcm@user/dmc/x-4369397) (Quit: Leaving)
18:24:24 × jgeerds quits (~jgeerds@d5364b87.access.ecotel.net) (Ping timeout: 272 seconds)
18:25:11 zeenk joins (~zeenk@2a02:2f04:a313:d600:8d26:ec9f:3ff6:fc94)
18:33:26 × vicfred__ quits (~vicfred@user/vicfred) (Quit: Leaving)
18:33:59 × BlackboardN quits (~nathan@user/BlackboardN) (Ping timeout: 260 seconds)
18:37:47 × dyeplexer quits (~dyeplexer@user/dyeplexer) (Remote host closed the connection)
18:39:17 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
18:39:37 × califax quits (~califax@user/califx) (Remote host closed the connection)
18:39:38 × hololeap quits (~hololeap@user/hololeap) (Remote host closed the connection)
18:39:38 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
18:39:52 califax joins (~califax@user/califx)
18:40:57 hololeap joins (~hololeap@user/hololeap)
18:53:05 × phma quits (phma@2001:5b0:211f:57f8:a451:bb44:e55e:abda) (Read error: Connection reset by peer)
18:54:29 phma joins (phma@2001:5b0:210f:36e8:e24d:2973:8920:8f2a)
18:54:59 waleee joins (~waleee@2001:9b0:213:7200:cc36:a556:b1e8:b340)
18:56:46 Pickchea joins (~private@user/pickchea)
19:03:58 madjestic joins (~madjestic@88-159-247-120.fixed.kpn.net)
19:06:51 gamara joins (~gamara@2607:fea8:1e5f:8df0:b897:10fa:588b:45bc)
19:09:02 <gamara> Why is this invalid syntax? https://paste.tomsmeding.com/AeEbRie9 How do i write this with where statements?
19:11:03 <hpc> i would expect that to be an error for using (/) on Ints
19:11:13 <hpc> is this just going in a file and you're doing like "ghci foo.hs"?
19:13:16 <gamara> I am using a file
19:13:37 <gamara> Not much interest in using the interpreter other than for info
19:13:38 merijn joins (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl)
19:14:02 <hpc> hmm, not sure why it would be failing then
19:14:30 <hpc> i suspected something like pasting it into ghci, where it misinterprets multiline inputs
19:14:33 <gamara> I think you are right getting the error No instance for (Fractional Int) arising from a use of ‘/’
19:14:46 <gamara> changing type to double fixes it
19:15:07 <gamara> I need to learn to read
19:15:07 <hpc> oh, cool
19:15:51 stevenxl joins (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net)
19:16:23 <gamara> If I want to use int I would do quot z x y
19:16:26 x88x88x joins (~x88x88x@149.28.53.172)
19:18:12 <gamara> thanks for the help
19:18:53 <geekosaur> that has an indentation error
19:19:09 <geekosaur> the let-in needs everything indented properly
19:19:34 <gamara> it was a copy paste from a textbook
19:20:39 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Ping timeout: 260 seconds)
19:21:26 × stevenxl quits (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net) (Ping timeout: 246 seconds)
19:24:06 × gawen quits (~gawen@user/gawen) (Quit: cya)
19:24:57 × Vajb quits (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi) (Read error: Connection reset by peer)
19:25:26 gawen joins (~gawen@user/gawen)
19:26:16 Vajb joins (~Vajb@hag-jnsbng11-58c3a8-176.dhcp.inet.fi)
19:34:23 × bahamas quits (~lucian@84.232.140.158) (Ping timeout: 246 seconds)
19:43:07 × hueso_ quits (~root@user/hueso) (Ping timeout: 256 seconds)
19:45:30 avpx joins (~nick@ec2-54-214-223-1.us-west-2.compute.amazonaws.com)
19:46:15 hueso joins (~root@user/hueso)
19:46:36 tfeb joins (~tfb@88.98.95.237)
19:47:48 × merijn quits (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl) (Ping timeout: 260 seconds)
19:48:09 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
19:48:23 × Psybur quits (~Psybur@2600:1003:b1a9:25a8:9157:2734:89e6:c88e) (Ping timeout: 260 seconds)
19:48:48 × tfeb quits (~tfb@88.98.95.237) (Client Quit)
19:49:43 Psybur joins (~Psybur@137.sub-97-47-71.myvzw.com)
19:49:44 × Graham31415 quits (~Graham@user/Graham31415) (Read error: Connection reset by peer)
19:56:34 frostbyte_ joins (~uid@2001:bc8:2117:100::)
19:56:36 kaph joins (~kaph@net-93-67-57-97.cust.vodafonedsl.it)
19:56:51 Graham31415 joins (~Graham@user/Graham31415)
19:58:13 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
19:58:32 geekosaur joins (~geekosaur@xmonad/geekosaur)
20:00:07 <frostbyte_> (completey new to haskell) I'm surprised to find that `runhaskell helloworld.hs > /dev/full` is correctly reporting an error: "helloworld.hs: <stdout>: hPutChar: resource exhausted (No space left on device)", but the compiled version of helloworld is not. Does anyone know why?
20:00:53 <frostbyte_> ghc --version: "The Glorious Glasgow Haskell Compilation System, version 9.2.1"
20:01:13 × Psybur quits (~Psybur@137.sub-97-47-71.myvzw.com) (Ping timeout: 260 seconds)
20:01:58 × _ht quits (~quassel@231-169-21-31.ftth.glasoperator.nl) (Remote host closed the connection)
20:02:07 TonyStone joins (~TonyStone@2603-7080-8607-c36a-e4f8-bd3f-9136-d580.res6.spectrum.com)
20:03:33 × mvk quits (~mvk@2607:fea8:5ce3:8500::3800) (Ping timeout: 260 seconds)
20:03:38 Psybur joins (~Psybur@2600:1003:b103:720d:4903:f699:2ddf:4e24)
20:05:04 <frostbyte_> helloworld.hs: 'main = putStrLn "Hello, world!"'
20:06:12 pavonia joins (~user@user/siracusa)
20:08:53 vicfred joins (~vicfred@user/vicfred)
20:10:33 <avpx> frostbyte_: What platform are you on? I wasn't able to repro on Windows/MinGW and Mac doesn't have /dev/full
20:10:45 <frostbyte_> Debian Linux
20:11:28 <avpx> It seems surprising to me too
20:11:47 <hpc> frostbyte_: i remember reading about that a while ago, a bunch of languages have this issue
20:12:22 <hpc> they just ignore the return status of the syscall
20:12:36 jtm parts (~jtm@user/jtm) (Leaving)
20:12:45 <frostbyte_> Indeed. It was seeing that article that led me to try. I wanted it to not be true, as one of the things appealing to me about haskell is correctness.
20:13:14 mvk joins (~mvk@2607:fea8:5ce3:8500::3800)
20:13:16 × Graham31415 quits (~Graham@user/Graham31415) (Read error: Connection reset by peer)
20:13:25 <frostbyte_> I'm particularly surprised that there's a difference between the two execution methods.
20:13:41 <frostbyte_> Rather than both go unreported.
20:13:56 Graham31415 joins (~Graham@user/Graham31415)
20:13:58 <hpc> there's probably some generic syscall wrapper in the interpreter maybe?
20:14:03 hpc isn't a ghc dev
20:14:48 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Remote host closed the connection)
20:14:52 <frostbyte_> Does `runhaskell` use ghci?
20:15:00 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
20:15:08 <Rembane> It uses the interpreter rather than the compiler.
20:15:09 <hpc> no, but they both use the same underlying bytecode stuff
20:15:17 <frostbyte_> Right.
20:15:53 Lord_of_Life_ joins (~Lord@user/lord-of-life/x-2819915)
20:17:07 × Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 256 seconds)
20:18:39 Lord_of_Life_ is now known as Lord_of_Life
20:20:53 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Remote host closed the connection)
20:21:31 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
20:22:56 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
20:24:27 MajorBiscuit joins (~MajorBisc@86-88-79-148.fixed.kpn.net)
20:24:52 jgeerds joins (~jgeerds@d5364b87.access.ecotel.net)
20:25:51 kawen joins (~quassel@static.208.191.216.95.clients.your-server.de)
20:26:11 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 246 seconds)
20:26:25 <geekosaur> write(1, "Hello, world!\n", 14) = -1 ENOSPC (No space left on device)
20:26:35 <frostbyte_> Why does the filter in the following code "stop the laziness"? That is, it will no longer read and write a line at-a-time.
20:26:38 <frostbyte_> main = mapM_ putStrLn =<< filterM doesDirectoryExist =<< lines <$> getContents
20:26:53 <frostbyte_> geekosaur: Yes, I saw that too.
20:28:26 <frostbyte_> So, clearly, the return value / error is being ignored. I'm surprised that it is; doubly surprised that it's not the case when using `runhaskell`.
20:29:09 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
20:30:23 × gamara quits (~gamara@2607:fea8:1e5f:8df0:b897:10fa:588b:45bc) (Quit: Client closed)
20:30:28 <geekosaur> actually I'm not
20:30:36 <frostbyte_> Why so?
20:30:48 <geekosaur> runhaskell will be in line at a time mode and the output is flushed at the newline, which causes the error to be caught
20:31:51 <geekosaur> the compiled one will be in block mode because output is not a terminal. this means the Handle isn't flushed and closed until the RTS is doing cleanup post-execution; it therefore has nowhere to report the error to
20:32:26 <geekosaur> thsi will as noted be a common probem. you need to switch buffering mode to enable the program to catch it
20:32:37 <Rembane> So... what happens if the output mode is changed? Will both interpreted and compiled code behave the same?
20:32:42 zaquest joins (~notzaques@5.130.79.72)
20:33:30 acidjnk joins (~acidjnk@p200300d0c7049f70498c262e6d47c9a7.dip0.t-ipconnect.de)
20:34:37 bahamas joins (~lucian@84.232.140.158)
20:34:38 <frostbyte_> That's not really an answer because the error isn't even visible in the program's exit status.
20:35:26 <geekosaur> it should. sadly stdbuf doesn't work on Haskell programs so you have to change the source
20:35:29 <frostbyte_> Which I think suggests more that the error is completely ignored and unhandled rather than simply lacking somewhere to report it.
20:36:39 <geekosaur> skkukuk Z$ ./hello > /dev/full
20:36:39 <geekosaur> hello: <stdout>: commitBuffer: resource exhausted (No space left on device)
20:36:39 <geekosaur> zsh: exit 1 ./hello > /dev/full
20:37:02 <frostbyte_> What have you done differently there?
20:37:13 <geekosaur> import System.IO
20:37:13 <geekosaur> main = hSetBuffering stdout LineBuffering >> putStrLn "Hello, world!"
20:37:45 <geekosaur> the problem is, hFlush throws an exception. but during RTS cleanup exception handling doesn't work
20:37:57 <geekosaur> it's already been torn down
20:38:35 <geekosaur> if I force the exception to be thrown during normal execution then it is thrown as usual and the RTS catches it because main doens't
20:39:00 × Psybur quits (~Psybur@2600:1003:b103:720d:4903:f699:2ddf:4e24) (Ping timeout: 240 seconds)
20:39:24 Psybur joins (~Psybur@2600:1003:b103:720d:4903:f699:2ddf:4e24)
20:39:55 <geekosaur> I am not sure this is fixable: if exceptions were sent to an already closed Handle then that would just throw another exception inside the exception handler
20:40:13 × lavaman quits (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net) (Remote host closed the connection)
20:40:18 × bahamas quits (~lucian@84.232.140.158) (Ping timeout: 260 seconds)
20:41:18 <frostbyte_> Perhaps, but surely the error could still surface without outputting error messages, such as the exit status.
20:41:24 <geekosaur> which is the general problem with trying to do exception/error handling during RTS cleanup in any language
20:42:51 <frostbyte_> Based on what you've said, are we able to manually flush and create the error without fiddling the linebuffering?
20:43:06 × [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Ping timeout: 272 seconds)
20:43:26 <geekosaur> mm, you'd have to take that one up with the ghc folks since the RTS is their baby. https://gitlab.haskell.org/ghc/ghc/-/issues/new
20:44:21 <geekosaur> skkukuk Z$ ./hello > /dev/full
20:44:22 <geekosaur> hello: <stdout>: hFlush: resource exhausted (No space left on device)
20:44:22 <geekosaur> zsh: exit 1 ./hello > /dev/full
20:44:22 <geekosaur> skkukuk Z$ cat hello.hs
20:44:22 <geekosaur> import System.IO
20:44:22 <geekosaur> main = putStrLn "Hello, world!" >> hFlush stdout
20:44:43 <frostbyte_> Right. Good.
20:45:07 [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470)
20:45:13 × odnes_ quits (~odnes@5-203-146-18.pat.nym.cosmote.net) (Quit: Leaving)
20:46:08 × Psybur quits (~Psybur@2600:1003:b103:720d:4903:f699:2ddf:4e24) (Ping timeout: 260 seconds)
20:46:32 <geekosaur> come tothink of it, exitFailed is also implemented as an exception, so this may be difficult to fix
20:47:48 <frostbyte_> Of course I know nothing of the internals but I don't see why, really. Shouldn't flushing and checking it's success be part of cleaning up anyway?
20:48:14 × Graham31415 quits (~Graham@user/Graham31415) (Ping timeout: 246 seconds)
20:48:36 <frostbyte_> It's just quite sad for me because it undermines what was haskell's main appeal for me.
20:48:48 Psybur joins (~Psybur@2601:5c9:4201:3220:19c2:a1cd:6600:38ba)
20:49:21 <geekosaur> I think if you ever let a filehandle be autoclosed, you're begging to lose any associated errors. be explicit if you care
20:49:26 <geekosaur> in any language
20:50:07 Graham31415 joins (~Graham@user/Graham31415)
20:50:45 BlackboardN joins (~nathan@user/BlackboardN)
20:50:54 <frostbyte_> Although that's true enough, I don't think that should be the case for high level languages, particularly with stdout being something one rarely explicitly opens / closes.
20:51:17 <geekosaur> this does raise the question of what happens if a Handle with a pending error condition is gc-ed, but it'd take a more involved program to check that
20:51:41 <frostbyte_> Interesting.
20:52:01 <geekosaur> because again I'm not sure it's safe to throw an exception in the middle of a gc
20:55:46 × mon_aaraj quits (~MonAaraj@user/mon-aaraj/x-4416475) (Ping timeout: 272 seconds)
20:57:30 mon_aaraj joins (~MonAaraj@user/mon-aaraj/x-4416475)
20:57:49 × [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Ping timeout: 240 seconds)
21:01:50 [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470)
21:02:38 × alp quits (~alp@user/alp) (Ping timeout: 252 seconds)
21:05:11 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 260 seconds)
21:07:01 × vicfred quits (~vicfred@user/vicfred) (Quit: Leaving)
21:07:59 stevenxl joins (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net)
21:08:33 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
21:08:35 × Graham31415 quits (~Graham@user/Graham31415) (Read error: Connection reset by peer)
21:09:01 Graham31415 joins (~Graham@user/Graham31415)
21:09:43 × shriekingnoise quits (~shrieking@201.231.16.156) (Quit: Quit)
21:10:03 shriekingnoise joins (~shrieking@201.231.16.156)
21:11:28 × shapr quits (~user@pool-173-73-44-186.washdc.fios.verizon.net) (Remote host closed the connection)
21:12:12 × stevenxl quits (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net) (Ping timeout: 240 seconds)
21:13:24 × Graham31415 quits (~Graham@user/Graham31415) (Ping timeout: 240 seconds)
21:14:26 Graham31415 joins (~Graham@user/Graham31415)
21:14:42 unit73e joins (~emanuel@2001:818:e8dd:7c00:32b5:c2ff:fe6b:5291)
21:16:57 × MajorBiscuit quits (~MajorBisc@86-88-79-148.fixed.kpn.net) (Quit: WeeChat 3.4)
21:20:43 MajorBiscuit joins (~MajorBisc@86-88-79-148.fixed.kpn.net)
21:21:46 stevenxl joins (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net)
21:25:35 × albet70 quits (~xxx@2400:8902::f03c:92ff:fe60:98d8) (Remote host closed the connection)
21:26:27 fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net)
21:26:33 × mixfix41 quits (~homefame@user/mixfix41) (Quit: cya bbiab!)
21:27:59 Feuermagier joins (~Feuermagi@user/feuermagier)
21:30:28 × Psybur quits (~Psybur@2601:5c9:4201:3220:19c2:a1cd:6600:38ba) (Ping timeout: 260 seconds)
21:31:14 × fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 272 seconds)
21:31:42 albet70 joins (~xxx@2400:8902::f03c:92ff:fe60:98d8)
21:33:52 × Graham31415 quits (~Graham@user/Graham31415) (Read error: Connection reset by peer)
21:36:32 Psybur joins (~Psybur@2600:1003:b103:720d:e963:cba8:6a5a:3543)
21:37:56 × gehmehgeh quits (~user@user/gehmehgeh) (Quit: Leaving)
21:42:50 × madjestic quits (~madjestic@88-159-247-120.fixed.kpn.net) (Ping timeout: 246 seconds)
21:43:03 madjestic joins (~madjestic@88-159-247-120.fixed.kpn.net)
21:43:35 × wyrd quits (~wyrd@gateway/tor-sasl/wyrd) (Ping timeout: 240 seconds)
21:44:28 × BlackboardN quits (~nathan@user/BlackboardN) (Ping timeout: 260 seconds)
21:45:02 lavaman joins (~lavaman@c-174-63-118-52.hsd1.ma.comcast.net)
21:48:30 BlackboardN joins (~nathan@user/BlackboardN)
21:49:10 merijn joins (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl)
21:49:29 × madjestic quits (~madjestic@88-159-247-120.fixed.kpn.net) (Ping timeout: 246 seconds)
21:49:36 × MajorBiscuit quits (~MajorBisc@86-88-79-148.fixed.kpn.net) (Ping timeout: 272 seconds)
21:50:29 × takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection)
21:50:41 × __monty__ quits (~toonn@user/toonn) (Quit: leaving)
21:50:48 wyrd joins (~wyrd@gateway/tor-sasl/wyrd)
21:57:05 × Psybur quits (~Psybur@2600:1003:b103:720d:e963:cba8:6a5a:3543) (Ping timeout: 252 seconds)
21:59:06 × mikoto-chan quits (~mikoto-ch@213.177.151.239) (Ping timeout: 272 seconds)
22:01:05 × cosimone quits (~user@93-47-228-79.ip115.fastwebnet.it) (Quit: ERC (IRC client for Emacs 27.1))
22:07:15 × BlackboardN quits (~nathan@user/BlackboardN) (Ping timeout: 260 seconds)
22:09:08 asthasr joins (~asthasr@208.80.78.154)
22:11:40 × zaquest quits (~notzaques@5.130.79.72) (Remote host closed the connection)
22:13:51 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 256 seconds)
22:14:08 × coot quits (~coot@213.134.190.95) (Quit: coot)
22:14:09 zaquest joins (~notzaques@5.130.79.72)
22:16:17 machinedgod joins (~machinedg@24.105.81.50)
22:18:18 × merijn quits (~merijn@c-001-001-001.client.esciencecenter.eduvpn.nl) (Ping timeout: 260 seconds)
22:19:57 kvakil joins (6f76c3db2e@2604:bf00:561:2000::40a)
22:27:00 × mvk quits (~mvk@2607:fea8:5ce3:8500::3800) (Ping timeout: 240 seconds)
22:28:13 × cyphase quits (~cyphase@user/cyphase) (Ping timeout: 260 seconds)
22:29:58 × liz quits (~liz@cpc84585-newc17-2-0-cust60.16-2.cable.virginm.net) (Ping timeout: 260 seconds)
22:30:05 × stevenxl quits (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net) (Ping timeout: 246 seconds)
22:32:54 yauhsien joins (~yauhsien@61-231-37-33.dynamic-ip.hinet.net)
22:33:38 cyphase joins (~cyphase@user/cyphase)
22:37:39 × yauhsien quits (~yauhsien@61-231-37-33.dynamic-ip.hinet.net) (Ping timeout: 256 seconds)
22:39:32 × Feuermagier quits (~Feuermagi@user/feuermagier) (Read error: Connection reset by peer)
22:39:44 Feuermagier joins (~Feuermagi@user/feuermagier)
22:43:18 × acidjnk quits (~acidjnk@p200300d0c7049f70498c262e6d47c9a7.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
22:44:15 × notzmv quits (~zmv@user/notzmv) (Ping timeout: 250 seconds)
22:58:26 MajorBiscuit joins (~MajorBisc@2a02:a461:129d:1:6d4c:38a4:18b7:4b48)
22:59:52 × azimut quits (~azimut@gateway/tor-sasl/azimut) (Remote host closed the connection)
23:00:14 azimut joins (~azimut@gateway/tor-sasl/azimut)
23:07:14 alp joins (~alp@user/alp)
23:07:17 × Feuermagier quits (~Feuermagi@user/feuermagier) (Remote host closed the connection)
23:14:53 × zyklotomic quits (~ethan@res388d-128-61-92-112.res.gatech.edu) (Ping timeout: 246 seconds)
23:15:35 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 240 seconds)
23:16:55 zyklotomic joins (~ethan@res380d-128-61-87-190.res.gatech.edu)
23:17:13 × MajorBiscuit quits (~MajorBisc@2a02:a461:129d:1:6d4c:38a4:18b7:4b48) (Ping timeout: 260 seconds)
23:25:14 <geekosaur> frostbyte_, https://gitlab.haskell.org/ghc/ghc/-/issues/21336
23:26:29 Psybur joins (~Psybur@2601:5c9:4201:3220:19c2:a1cd:6600:38ba)
23:30:26 × joo-_ quits (~joo-_@fsf/member/joo--) (Ping timeout: 260 seconds)
23:32:04 joo-_ joins (~joo-_@80-62-116-70-mobile.dk.customer.tdc.net)
23:32:04 × joo-_ quits (~joo-_@80-62-116-70-mobile.dk.customer.tdc.net) (Changing host)
23:32:04 joo-_ joins (~joo-_@fsf/member/joo--)
23:32:55 × hololeap quits (~hololeap@user/hololeap) (Ping timeout: 240 seconds)
23:33:35 hololeap joins (~hololeap@user/hololeap)
23:37:01 × cyphase quits (~cyphase@user/cyphase) (Ping timeout: 240 seconds)
23:42:25 cyphase joins (~cyphase@user/cyphase)
23:46:06 × zeenk quits (~zeenk@2a02:2f04:a313:d600:8d26:ec9f:3ff6:fc94) (Quit: Konversation terminated!)
23:46:35 × hololeap quits (~hololeap@user/hololeap) (Ping timeout: 240 seconds)
23:47:20 stevenxl joins (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net)
23:47:33 × sammelweis quits (~quassel@2601:401:8200:2d4c:bd9:d04c:7f69:eb10) (Ping timeout: 260 seconds)
23:47:56 vicfred joins (~vicfred@user/vicfred)
23:50:19 hololeap joins (~hololeap@user/hololeap)
23:51:42 chenqisu1 joins (~chenqisu1@183.217.200.168)
23:53:12 × stevenxl quits (~stevenxl@c-73-72-2-81.hsd1.il.comcast.net) (Quit: leaving)
23:53:44 × jgeerds quits (~jgeerds@d5364b87.access.ecotel.net) (Ping timeout: 272 seconds)
23:54:50 <geekosaur> btw, about your earlier question about `filterM`: iirc IO's >>= is strict so `filterM` is also strict. I may be misremembering the exact place where strictness sneaks in, though
23:55:03 <geekosaur> @src filterM
23:55:03 <lambdabot> Source not found. Are you on drugs?
23:55:09 <geekosaur> bleargh
23:56:19 <geekosaur> filterM p = foldr (\ x -> liftA2 (\ flg -> if flg then (x:) else id) (p x)) (pure [])
23:56:28 <geekosaur> it's Applicative not Monad these days, whoops
23:57:01 <geekosaur> anyway yes, I am pretty sure that's strict
23:57:07 <geekosaur> at least in IO
23:59:13 × Pickchea quits (~private@user/pickchea) (Quit: Leaving)
23:59:28 sammelweis joins (~quassel@2601:401:8200:2d4c:bd9:d04c:7f69:eb10)

All times are in UTC on 2022-04-02.