Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-03-03 13:05:10 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 3.0.1)
2021-03-03 13:05:31 ubert2 joins (~Thunderbi@p548c9a44.dip0.t-ipconnect.de)
2021-03-03 13:05:46 geekosaur joins (82650c7a@130.101.12.122)
2021-03-03 13:05:57 larryba joins (~bc8134e3@217.29.117.252)
2021-03-03 13:06:28 <larryba> hi
2021-03-03 13:06:34 <boxscape> hey
2021-03-03 13:06:39 <larryba> why does fastnub work with infinite lists, but fastnub2 doesn't? https://paste.tomsmeding.com/NKhLSTgc
2021-03-03 13:06:56 × ubert quits (~Thunderbi@p200300ecdf25d90ee6b318fffe838f33.dip0.t-ipconnect.de) (Ping timeout: 240 seconds)
2021-03-03 13:06:56 ubert2 is now known as ubert
2021-03-03 13:08:05 cfricke joins (~cfricke@unaffiliated/cfricke)
2021-03-03 13:08:29 × royal_screwup218 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Ping timeout: 260 seconds)
2021-03-03 13:09:04 bahamas joins (~lucian@188.27.48.99)
2021-03-03 13:09:04 × bahamas quits (~lucian@188.27.48.99) (Changing host)
2021-03-03 13:09:05 bahamas joins (~lucian@unaffiliated/bahamas)
2021-03-03 13:10:28 Alleria joins (~textual@mskresolve-a.mskcc.org)
2021-03-03 13:10:35 ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta)
2021-03-03 13:10:52 Alleria is now known as Guest42328
2021-03-03 13:11:14 rayyyy joins (~nanoz@gateway/tor-sasl/nanoz)
2021-03-03 13:11:14 × knupfer quits (~Thunderbi@dynamic-046-114-148-091.46.114.pool.telefonica.de) (Read error: Connection reset by peer)
2021-03-03 13:12:00 <larryba> I added ghci output. https://paste.tomsmeding.com/5FPIT809
2021-03-03 13:12:30 <cheater> :t fastnub2
2021-03-03 13:12:31 <lambdabot> error: Variable not in scope: fastnub2
2021-03-03 13:12:48 <larryba> it is defined in paste
2021-03-03 13:12:48 × emmanuel_erc quits (~user@2603-7000-9600-01c9-0000-0000-0000-0874.res6.spectrum.com) (Read error: Connection reset by peer)
2021-03-03 13:13:21 emmanuel_erc joins (~user@2603-7000-9600-01c9-0000-0000-0000-0874.res6.spectrum.com)
2021-03-03 13:13:38 <cheater> i think it's because it's foldr
2021-03-03 13:13:56 <maerwald[m]> larryba: https://wiki.haskell.org/Foldr_Foldl_Foldl%27
2021-03-03 13:14:15 × bahamas quits (~lucian@unaffiliated/bahamas) (Ping timeout: 265 seconds)
2021-03-03 13:14:24 <larryba> foldr works with infinite lists, for example map can be defined with it
2021-03-03 13:14:45 <maerwald[m]> larryba: doit isn't lazy in it's second arg
2021-03-03 13:15:08 alx741 joins (~alx741@186.178.108.117)
2021-03-03 13:15:30 <maerwald[m]> It needs both args evaluated to do any work
2021-03-03 13:15:33 × ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 256 seconds)
2021-03-03 13:15:33 tinhatcat joins (~tsranso@2600:1700:ae40:21c8:7809:8a12:3c22:c849)
2021-03-03 13:15:42 <larryba> fst part of tuple is, though?
2021-03-03 13:15:52 heatsink joins (~heatsink@2600:1700:bef1:5e10:b5:5f2:242:2b9e)
2021-03-03 13:15:53 liyang joins (~liyang@90.253.54.54)
2021-03-03 13:16:00 <maerwald[m]> That's irrelevant
2021-03-03 13:16:29 <larryba> can this be written with foldr to handle infinite lists?
2021-03-03 13:16:32 <cheater> larryba: foldr will start from the right, which will try to define the first element of the list by looking at every further element
2021-03-03 13:16:39 <cheater> no, but maybe with foldl' ?
2021-03-03 13:16:44 <maerwald[m]> Check the link i gave you
2021-03-03 13:16:50 × matryoshka quits (~matryoshk@2606:6080:1002:8:3285:30e:de43:8809) (Read error: Connection reset by peer)
2021-03-03 13:17:00 bahamas joins (~lucian@188.27.48.99)
2021-03-03 13:17:01 × bahamas quits (~lucian@188.27.48.99) (Changing host)
2021-03-03 13:17:01 bahamas joins (~lucian@unaffiliated/bahamas)
2021-03-03 13:17:01 <larryba> cheater, I think foldl' never works with infinite lists
2021-03-03 13:17:02 fendor joins (~fendor@91.141.0.81.wireless.dyn.drei.com)
2021-03-03 13:17:18 <cheater> idk, i'm haskell newb
2021-03-03 13:17:49 Tario joins (~Tario@201.192.165.173)
2021-03-03 13:18:42 × son0p quits (~son0p@181.58.39.182) (Quit: Lost terminal)
2021-03-03 13:18:47 <maerwald[m]> You're not streaming the output like in the other function
2021-03-03 13:20:15 × heatsink quits (~heatsink@2600:1700:bef1:5e10:b5:5f2:242:2b9e) (Ping timeout: 240 seconds)
2021-03-03 13:22:37 <Franciman> Hi, I am using servant for a web app, but I noticed that if I use the wrong Content-Type for backends, I just receive a 415 error response
2021-03-03 13:22:41 × seiryn quits (~seiryn@2a01cb0409c990003ccf6635f6976a70.ipv6.abo.wanadoo.fr) (Quit: WeeChat 3.0)
2021-03-03 13:22:48 forgottenone joins (~forgotten@176.88.30.190)
2021-03-03 13:22:48 <Franciman> I would like to put some more info in the body of the response, how can I do it?
2021-03-03 13:24:42 × perrier-jouet quits (~perrier-j@modemcable012.251-130-66.mc.videotron.ca) (Quit: WeeChat 3.0.1)
2021-03-03 13:24:58 zebrag joins (~inkbottle@aaubervilliers-654-1-83-46.w86-212.abo.wanadoo.fr)
2021-03-03 13:25:53 perrier-jouet joins (~perrier-j@modemcable012.251-130-66.mc.videotron.ca)
2021-03-03 13:26:13 × tinhatcat quits (~tsranso@2600:1700:ae40:21c8:7809:8a12:3c22:c849) (Quit: Leaving)
2021-03-03 13:29:02 chisui joins (59f77c97@i59F77C97.versanet.de)
2021-03-03 13:29:45 × Tario quits (~Tario@201.192.165.173) (Read error: Connection reset by peer)
2021-03-03 13:30:27 × beng-nl1 quits (~beng-nl@217.146.82.202) (Remote host closed the connection)
2021-03-03 13:30:31 Sheilong joins (uid293653@gateway/web/irccloud.com/x-ywkwdxdlophboxsa)
2021-03-03 13:31:42 nineonine joins (~nineonine@2604:3d08:7785:9600:2076:7626:28f5:58b2)
2021-03-03 13:34:48 bitmapper joins (uid464869@gateway/web/irccloud.com/x-nrzgwioszwcozpng)
2021-03-03 13:34:50 Tario joins (~Tario@201.192.165.173)
2021-03-03 13:35:19 × bahamas quits (~lucian@unaffiliated/bahamas) (Ping timeout: 260 seconds)
2021-03-03 13:35:45 wmacmil joins (~wmacmil@c83-252-138-144.bredband.comhem.se)
2021-03-03 13:35:55 × nineonine quits (~nineonine@2604:3d08:7785:9600:2076:7626:28f5:58b2) (Ping timeout: 240 seconds)
2021-03-03 13:39:31 __minoru__shirae joins (~shiraeesh@109.166.56.89)
2021-03-03 13:39:35 <maerwald[m]> larryba: when can the first Set insert happen?
2021-03-03 13:40:23 <larryba> at the first call of doit
2021-03-03 13:41:06 <maerwald[m]> That's not how the evaluation works
2021-03-03 13:42:05 <Taneb> Franciman: I *think* you can use serveWithContext rather than serve here
2021-03-03 13:42:29 <Franciman> Taneb, you mean I need to pass the ErrorFormatters, right?
2021-03-03 13:42:46 <Franciman> I already do that, but none of the formatters deals with the mismatch of Content-Types
2021-03-03 13:43:30 son0p joins (~son0p@181.136.122.143)
2021-03-03 13:43:41 <maerwald[m]> S.insert and S.member both arent lazy like (:)
2021-03-03 13:43:50 <Franciman> in fact, reading the code of servant-server, it just returns an err415, no matter what
2021-03-03 13:44:03 <Franciman> when it finds a Content-Type it can not deal with
2021-03-03 13:44:13 <maerwald[m]> The second argument to foldr is reached after your input list is exhausted
2021-03-03 13:44:19 <maerwald[m]> That is never
2021-03-03 13:44:27 <maerwald[m]> So you never reach S.empty
2021-03-03 13:44:37 <larryba> hmm
2021-03-03 13:44:44 urodna joins (~urodna@unaffiliated/urodna)
2021-03-03 13:45:30 <larryba> so it can't be written with foldr?
2021-03-03 13:45:34 <Taneb> Franciman: ugh, that's annoying
2021-03-03 13:46:09 <maerwald[m]> I don't think so when you're dealing with a Set in the second argument
2021-03-03 13:46:09 × __minoru__shirae quits (~shiraeesh@109.166.56.89) (Ping timeout: 264 seconds)
2021-03-03 13:47:03 × Digit quits (~user@fsf/member/digit) (Ping timeout: 272 seconds)
2021-03-03 13:47:04 × AWizzArd quits (~code@unaffiliated/awizzard) (Read error: Connection reset by peer)
2021-03-03 13:47:14 ddellacosta joins (~ddellacos@86.106.143.58)
2021-03-03 13:48:27 <Sheilong> hello
2021-03-03 13:48:57 × jamm_ quits (~jamm@unaffiliated/jamm) (Remote host closed the connection)
2021-03-03 13:49:09 × graf_blutwurst quits (~user@2001:171b:226e:adc0:cc81:8132:7f95:7a39) (Remote host closed the connection)
2021-03-03 13:49:12 <boxscape> hi
2021-03-03 13:49:51 graf_blutwurst joins (~user@2001:171b:226e:adc0:cc81:8132:7f95:7a39)
2021-03-03 13:51:06 <Franciman> Taneb, I am afraid I shall have to freakin fork

All times are in UTC.