Home liberachat/#haskell: Logs Calendar

Logs on 2023-09-17 (liberachat/#haskell)

00:00:31 × Unicorn_Princess quits (~Unicorn_P@user/Unicorn-Princess/x-3540542) (Remote host closed the connection)
00:04:35 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
00:06:31 <Inst> okay, i think i'll try to debug this here, now
00:07:17 <institor> jacking in...
00:07:59 <Inst> basement is blocking haddock from building documentation, i'm getting really annoyed at vincent hanquez, tbh
00:08:07 × notzmv quits (~zmv@user/notzmv) (Ping timeout: 264 seconds)
00:08:27 <Inst> i've heard from others of his antics: i.e, blocking haskell-foundation namespace on github, the long time it took for the crypton fork
00:09:48 <Inst> on cabal 10
00:09:53 <Inst> 3.10, rather
00:10:33 <Inst> hmmm, okay, this works on cabal 3.6
00:11:38 <Inst> and 3.8.1
00:11:45 <Inst> maybe i should take this to haskell tooling channels?
00:11:59 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
00:12:08 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
00:13:25 <Inst> wow, the documentatino i wrote sucks :(
00:13:29 <Inst> need to learn how to use haddock better
00:16:17 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3) (Remote host closed the connection)
00:18:35 × caryhartline quits (~caryhartl@168.182.58.169) (Quit: caryhartline)
00:26:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
00:27:11 aaronv joins (~aaronv@user/aaronv)
00:29:00 libertyprime joins (~libertypr@203.96.203.44)
00:30:25 × Me-me quits (~me-me@2602:ff16:3:0:1:dc:beef:d00d) (Changing host)
00:30:25 Me-me joins (~me-me@user/me-me)
00:33:51 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
00:46:26 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 244 seconds)
00:46:42 × accord quits (uid568320@id-568320.hampstead.irccloud.com) (Quit: Connection closed for inactivity)
00:47:15 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3)
00:47:28 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
00:52:07 × hpc quits (~juzz@ip98-169-35-163.dc.dc.cox.net) (Ping timeout: 244 seconds)
00:54:10 hpc joins (~juzz@ip98-169-35-163.dc.dc.cox.net)
00:55:39 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
00:59:06 × myme quits (~myme@2a01:799:d60:e400:523a:264f:abbd:410) (Ping timeout: 246 seconds)
01:00:10 myme joins (~myme@2a01:799:d60:e400:e336:7d0f:f75f:76b1)
01:05:03 × aaronv quits (~aaronv@user/aaronv) (Ping timeout: 240 seconds)
01:09:19 nate2 joins (~nate@c-98-45-169-16.hsd1.ca.comcast.net)
01:10:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
01:11:22 caryhartline joins (~caryhartl@168.182.58.169)
01:11:36 aaronv joins (~aaronv@user/aaronv)
01:14:18 × nate2 quits (~nate@c-98-45-169-16.hsd1.ca.comcast.net) (Ping timeout: 252 seconds)
01:17:51 × aaronv quits (~aaronv@user/aaronv) (Ping timeout: 240 seconds)
01:18:22 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
01:28:21 × smoothdev quits (~smoothdev@91-169-231-236.subs.proxad.net) (Read error: Connection reset by peer)
01:32:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
01:34:20 lisbeths joins (uid135845@id-135845.lymington.irccloud.com)
01:34:33 aaronv joins (~aaronv@user/aaronv)
01:39:06 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
01:42:15 bilegeek joins (~bilegeek@2600:1008:b020:99af:906e:c146:fc6d:5e8c)
01:42:45 × otto_s quits (~user@p5b0445ec.dip0.t-ipconnect.de) (Ping timeout: 244 seconds)
01:44:30 otto_s joins (~user@p5de2f957.dip0.t-ipconnect.de)
01:51:02 × zmt01 quits (~zmt00@user/zmt00) (Quit: Leaving)
01:52:27 whatsupdoc joins (uid509081@id-509081.hampstead.irccloud.com)
01:53:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
01:55:25 zmt00 joins (~zmt00@user/zmt00)
02:01:36 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
02:02:29 × caryhartline quits (~caryhartl@168.182.58.169) (Quit: caryhartline)
02:04:00 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
02:04:19 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
02:06:10 L29Ah joins (~L29Ah@wikipedia/L29Ah)
02:07:10 caryhartline joins (~caryhartl@168.182.58.169)
02:13:27 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 240 seconds)
02:15:03 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
02:22:49 notzmv joins (~zmv@user/notzmv)
02:23:29 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
02:30:03 × sphynx quits (~xnyhps@2a02:2770:3:0:216:3eff:fe67:3288) (Server closed connection)
02:30:16 sphynx joins (~xnyhps@2a02:2770:3:0:216:3eff:fe67:3288)
02:30:36 × mokrates` quits (~user@2a04:4540:710a:3500:7929:eb1e:dadd:7209) (Read error: Connection reset by peer)
02:31:06 × FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Ping timeout: 246 seconds)
02:33:19 FinnElija joins (~finn_elij@user/finn-elija/x-0085643)
02:37:31 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 264 seconds)
02:37:31 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 244 seconds)
02:39:19 xmachina joins (~xmachina@modemcable048.127-56-74.mc.videotron.ca)
02:42:15 × td_ quits (~td@i5387092D.versanet.de) (Ping timeout: 240 seconds)
02:44:22 td_ joins (~td@i5387092E.versanet.de)
02:45:21 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
02:49:25 wroathe joins (~wroathe@207-153-38-140.fttp.usinternet.com)
02:49:25 × wroathe quits (~wroathe@207-153-38-140.fttp.usinternet.com) (Changing host)
02:49:25 wroathe joins (~wroathe@user/wroathe)
02:59:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
03:01:17 × Square quits (~Square@user/square) (Ping timeout: 244 seconds)
03:04:31 × AssCrackBandit quits (~user@cust-west-par-46-193-2-167.cust.wifirst.net) (Ping timeout: 264 seconds)
03:04:33 aforemny joins (~aforemny@2001:9e8:6cce:ff00:a81e:c675:2712:6bbb)
03:04:59 × renpose quits (~renpose@user/renpose) (Quit: Ping timeout (120 seconds))
03:05:03 × aforemny_ quits (~aforemny@i59F516D6.versanet.de) (Ping timeout: 240 seconds)
03:06:11 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
03:07:27 × Flow quits (~none@gentoo/developer/flow) (Ping timeout: 240 seconds)
03:11:17 privacy joins (~privacy@47.219.84.6)
03:19:27 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
03:26:03 × caryhartline quits (~caryhartl@168.182.58.169) (Quit: caryhartline)
03:27:29 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
03:33:27 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 240 seconds)
03:36:36 × [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Remote host closed the connection)
03:38:43 × robobub quits (uid248673@id-248673.uxbridge.irccloud.com) (Quit: Connection closed for inactivity)
03:38:44 bontaq joins (~user@ool-45707d2c.dyn.optonline.net)
03:40:35 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
03:45:04 smoothdev joins (~smoothdev@91-169-231-236.subs.proxad.net)
03:46:26 caryhartline joins (~caryhartl@168.182.58.169)
03:46:32 sm joins (~sm@plaintextaccounting/sm)
03:48:16 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
03:54:19 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
03:55:19 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
03:59:43 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 264 seconds)
04:01:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
04:06:15 × aaronv quits (~aaronv@user/aaronv) (Remote host closed the connection)
04:06:34 aaronv joins (~aaronv@user/aaronv)
04:09:24 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
04:18:42 <Inst> also, ummm, can I ask something about Template Haskell?
04:18:49 <Inst> I have a rough design that's based around traverse
04:19:19 <Inst> that is to say, I have a sum-of product type, and I need to implement a way to convert the fields of the product type into a new data type
04:19:41 <Inst> btw thanks c_wraith for clarifications
04:20:26 <Inst> I can do this adequately well using a printer that converts the product type into a file for copy pasting, but with template haskell, this is not viable?
04:22:15 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
04:24:36 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
04:25:27 <c_wraith> Inst: you can do quite a lot from TH, but I really have no idea what you're asking for. Like - what data do you have, what are you doing with it, why are you doing it at compile time, etc
04:27:57 <Inst> c_wraith: I'm trying to work on extending file-embed into an asset file management library, possibly with reimplementation
04:28:38 <c_wraith> so... you want to parse some sort of manifest and embed everything it lists as an appropriate structure?
04:28:49 <Inst> https://paste.tomsmeding.com/BsZRGiY0
04:29:07 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 244 seconds)
04:29:18 <Inst> yeah, I'd rather build a list literal
04:29:27 × aaronv quits (~aaronv@user/aaronv) (Ping timeout: 240 seconds)
04:29:40 <Inst> then it can be fed to the IOActions part of the library which'll traverse a function into it returning a list of results, which the end user presumably can employ
04:30:17 <c_wraith> I'm not sure this is really the route to take. It'll destroy compile performance.
04:30:19 <Inst> i somehow get the feeling that it might be better
04:30:33 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
04:30:34 <c_wraith> compilation time is super-linear in the module size
04:30:48 <Inst> there's an alternative module that produces literals without TH
04:31:01 <c_wraith> if you embed megabytes of data into a module, that's going to be a real performance hit
04:31:42 <Inst> since we know that reify is limited, is this an unsurpassable Haskell limitation?
04:32:28 <Inst> the overall design is build manifest, process manifest in program, but the manifest design is intended to be open
04:32:40 <Inst> one idea i've had is to add a zip / tar format and use that instead
04:37:06 <Inst> thank you for the useful input :)
04:37:38 <EvanR> concat a binary blob on the end of the EXE and then FFI load/parse it at runtime!
04:38:13 <EvanR> (might not need FFI)
04:38:48 <EvanR> concat the Show output blob on the end of the EXE and read it at runtime!
04:41:55 machinedgod joins (~machinedg@d198-53-218-113.abhsia.telus.net)
04:42:22 Simikando joins (~Simikando@bband-dyn237.95-103-149.t-com.sk)
04:43:27 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
04:45:03 × krjt quits (~krjst@2604:a880:800:c1::16b:8001) (Server closed connection)
04:46:19 krjt joins (~krjst@2604:a880:800:c1::16b:8001)
04:47:48 × caryhartline quits (~caryhartl@168.182.58.169) (Quit: caryhartline)
04:50:38 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
04:51:47 hyiltiz joins (~hyiltiz@2620:149:13d1:100::c)
04:53:26 × Inst quits (~Inst@120.244.192.250) (Read error: Connection reset by peer)
04:54:51 × machinedgod quits (~machinedg@d198-53-218-113.abhsia.telus.net) (Ping timeout: 252 seconds)
04:56:05 Inst joins (~Inst@120.244.192.250)
04:56:24 <Inst> the problem is that I have a polymorphically typed item, hmmm, what to do with it, ugh
04:56:25 × hyiltiz quits (~hyiltiz@2620:149:13d1:100::c) (Quit: WeeChat 4.0.4)
04:57:01 <Inst> maybe just reify it then extract the name from the literal and hope it works? TH being weakly typed is a pain
05:00:07 × Simikando quits (~Simikando@bband-dyn237.95-103-149.t-com.sk) (Ping timeout: 244 seconds)
05:01:23 <EvanR> TH is strongly typed
05:03:44 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
05:04:17 <EvanR> but the pain part is probably real
05:06:09 <Inst> okay, and reify gives me a stage error, gah
05:06:43 <Inst> it's like, I can identify useful libs missing in ecosystem, but it's always a good reason it hasn't been done
05:06:59 <c_wraith> stage errors are easy enough to work around.. you just need more files.
05:07:38 <Inst> i'm trying to pattern match against a data structure
05:07:55 <Inst> and then change the data structure to a new data structure with a TH literal added
05:08:25 <c_wraith> you can't *change* a data type with template haskell.
05:09:02 <Inst> I mean, say, you have (3,4), you can transform it into (3,3,4,4) as a literal in TH
05:10:12 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
05:10:35 <Inst> here, I'm trying to do ``` DataConstructor assetID filePathOfEmbed ``` and convert it to ``` DataConstructor2 assetId byteStringLiteralOfFile```
05:10:54 nate2 joins (~nate@c-98-45-169-16.hsd1.ca.comcast.net)
05:15:32 aaronv joins (~aaronv@user/aaronv)
05:15:37 × nate2 quits (~nate@c-98-45-169-16.hsd1.ca.comcast.net) (Ping timeout: 244 seconds)
05:16:18 hyiltiz joins (~hyiltiz@2620:149:13d1:100::c)
05:16:29 <Inst> i think the code goes to hell because it's polymorphic, ugh
05:16:57 <Inst> Could not deduce (Language.Haskell.TH.Syntax.Lift assetId)
05:17:00 <Inst> should i add this as a constraint?
05:17:15 <Inst> but what does it mean to the end user? Can you derive an instance of Lift and have it be ergonomic?
05:18:03 <glguy> They can often be hand made and there is template haskell solutions
05:18:37 <glguy> But most types won't have an instance without intervention
05:19:54 × bilegeek quits (~bilegeek@2600:1008:b020:99af:906e:c146:fc6d:5e8c) (Quit: Leaving)
05:20:11 <Inst> so staging overload is the best option?
05:21:25 <glguy> I don't know what that is
05:23:22 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
05:27:51 × chomwitt quits (~chomwitt@ppp-94-68-188-69.home.otenet.gr) (Ping timeout: 240 seconds)
05:30:03 × DigitalKiwi quits (~kiwi@2604:a880:400:d0::1ca0:e001) (Server closed connection)
05:30:36 DigitalKiwi joins (~kiwi@2604:a880:400:d0::1ca0:e001)
05:31:12 × leeb quits (~leeb@tk2-243-31079.vs.sakura.ne.jp) (Quit: ZNC 1.7.2+deb3 - https://znc.in)
05:31:40 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
05:32:03 leeb joins (~leeb@tk2-243-31079.vs.sakura.ne.jp)
05:34:28 xtabentun joins (uid491929@id-491929.tinside.irccloud.com)
05:35:38 <Inst> well, i can't get staging to work either, like, the error is:
05:35:50 <Inst> extractName a = 'a
05:35:51 coot joins (~coot@89-69-206-216.dynamic.chello.pl)
05:36:14 <Inst> "Stage error: the non-top-level quoted name 'a must be used at the same level it's bound"
05:36:38 <Inst> that's pretty much screwed, isn't it?
05:37:11 hyiltiz2 joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
05:39:24 × hyiltiz quits (~hyiltiz@2620:149:13d1:100::c) (Ping timeout: 240 seconds)
05:43:51 <EvanR> check your staging --scott manley
05:44:11 <EvanR> TH is rocket science
05:44:33 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
05:46:32 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
05:51:02 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
05:56:44 × smoothdev quits (~smoothdev@91-169-231-236.subs.proxad.net) (Quit: smoothdev)
06:00:14 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
06:03:15 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Client Quit)
06:03:58 × lisbeths quits (uid135845@id-135845.lymington.irccloud.com) (Quit: Connection closed for inactivity)
06:05:07 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 264 seconds)
06:07:25 <Inst> pun appreciated :)
06:11:07 <phma> I just edited the README and ran "stack run" and got this:
06:11:37 <phma> WringTwistree-0.1.0.0: unregistering (local file changes: README.md)
06:11:42 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
06:12:21 <phma> followed by some rebuilding lines. Why, since README.md is not a source file?
06:17:54 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
06:20:07 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 264 seconds)
06:20:15 arahael joins (~arahael@119-18-1-27.771201.syd.nbn.aussiebb.net)
06:24:39 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
06:32:05 <glguy> phma: maybe it wasn't in the correct section of the cabal file
06:33:13 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
06:34:36 mmhat joins (~mmh@p200300f1c7178aa3ee086bfffe095315.dip0.t-ipconnect.de)
06:34:41 jackneill__ joins (~Jackneill@20014C4E1E062E001D5A577F9869F8BE.dsl.pool.telekom.hu)
06:35:08 × mmhat quits (~mmh@p200300f1c7178aa3ee086bfffe095315.dip0.t-ipconnect.de) (Client Quit)
06:35:27 × aaronv quits (~aaronv@user/aaronv) (Ping timeout: 240 seconds)
06:37:43 <Inst> okay, this is a really stupid override, but [p|myterm|] seems to work
06:39:52 chomwitt joins (~chomwitt@ppp-2-85-137-223.home.otenet.gr)
06:41:08 aaronv joins (~aaronv@user/aaronv)
06:43:00 billchenchina joins (~billchenc@103.152.35.21)
06:46:02 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
06:46:56 acidjnk joins (~acidjnk@p200300d6e7072f64a1f46512fe78b272.dip0.t-ipconnect.de)
06:52:44 <phma> glguy: it's in extra-source-files in both package.yaml and WringTwistree.cabal
06:53:32 <glguy> Then it needs to move to extra-doc-files:
06:54:35 × shapr quits (~user@2600:1700:c640:3100:a03a:3eb3:ec74:8ab2) (Ping timeout: 240 seconds)
06:54:39 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
06:59:00 <phma> that fixed it
07:07:24 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 252 seconds)
07:15:13 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
07:19:04 codaraxis___ joins (~codaraxis@user/codaraxis)
07:23:07 × codaraxis__ quits (~codaraxis@user/codaraxis) (Ping timeout: 264 seconds)
07:29:07 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 264 seconds)
07:29:46 sm joins (~sm@plaintextaccounting/sm)
07:30:51 Simikando joins (~Simikando@bband-dyn237.95-103-149.t-com.sk)
07:36:29 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
07:37:15 fendor joins (~fendor@2a02:8388:1640:be00:aab:1226:f274:5021)
07:37:45 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
07:37:55 gmg joins (~user@user/gehmehgeh)
07:39:14 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
07:41:52 × tzh quits (~tzh@c-24-21-73-154.hsd1.or.comcast.net) (Quit: zzz)
07:43:56 <Inst> okay, rigged it up to work with a Lift constraint, but let's look at the absolute basic case
07:44:06 <Inst> [p|myterm|] doesn't work
07:44:09 <Inst> because it's name shadowing
07:44:33 <Inst> myMkName :: a -> Q Name
07:44:39 <Inst> myMkName a = pure 'a
07:44:57 <Inst> obviously this causes a staging error
07:46:38 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
07:48:19 × jle` quits (~jle`@cpe-23-240-75-236.socal.res.rr.com) (Ping timeout: 264 seconds)
07:49:47 jle` joins (~jle`@cpe-23-240-75-236.socal.res.rr.com)
07:50:38 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
07:57:03 mechap joins (~mechap@user/mechap)
07:58:04 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
07:59:43 × zaquest quits (~notzaques@5.130.79.72) (Remote host closed the connection)
08:02:12 <[exa]> Inst: why don't you go the usual way and just link the binary blob to your executable?
08:02:36 × hugo quits (znc@verdigris.lysator.liu.se) (Ping timeout: 246 seconds)
08:03:11 <[exa]> like, dragging the binary data through the whole compilation pipeline is a valiant effort but from the software engineering pov it should be more of an exceptional necessity than a good practice
08:04:31 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3) (Remote host closed the connection)
08:05:23 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
08:06:13 <Inst> does cabal have an option for this?
08:07:51 <[exa]> Inst: no idea but I can't see why it wouldn't work. Manually you run: `ld -r -b binary -o yourblob.o yourblob`, and `nm yourblob.o` gives you symbols _binary_yourbob_start, _binary_yourblob_end and _binary_yourblob_size which you can FFI pretty much normally
08:08:05 × mechap quits (~mechap@user/mechap) (Ping timeout: 240 seconds)
08:08:30 <arahael> Inst: I've gotten rather intrigued - My haskell is far too simplistic to help, (and besides, exa's looking like they're doing a good job as it is), but mind giving me a bit of that backstory as I missed the start of the convo.
08:08:33 <Inst> i mean what i'm doing right now is to attempt to build a user-friendly library for file management in Haskell
08:08:34 <[exa]> and it is pretty fast and moreless configurable by packaging maintainers, as opposed to whatever supersmart system hidden deep in TH
08:09:06 <[exa]> Inst: user-friendliness is a myth. Make it computer friendly, users shall follow
08:09:21 <Inst> it was originally supposed to support web downloads as an alternative to keeping the file with your assets
08:09:50 <[exa]> would it start a web download from TH?
08:10:38 mechap joins (~mechap@user/mechap)
08:10:46 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 244 seconds)
08:11:12 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 252 seconds)
08:11:32 <Inst> nope, the TH is supposed to be in quarantine, and only an option
08:11:45 <Inst> the other interface is based off ummm, directly generating literals to a file
08:11:52 <Inst> for hot copy paste action
08:11:53 Inst facepalms
08:13:06 <Inst> i stuffed the web side of this once i discovered that i had to deal with 2394829342 different exceptions, and going with http-conduit meant that I had to learn a ton of other http exceptions
08:13:14 <Inst> any work in IO etc implies having to learn an exception system ;_;
08:14:18 hugo joins (znc@verdigris.lysator.liu.se)
08:15:38 <[exa]> Inst: that's also available somewhere in binutils tbh, you can literally ask binutils to translate your binary blob into a C header
08:15:47 <[exa]> for haskell you just change the header/footer of that
08:18:33 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
08:20:40 <Inst> yeah, i'll have to consider that in the future, but rather, more like a TH way to automate the packaging
08:20:41 <Inst> ugh
08:20:43 × mechap quits (~mechap@user/mechap) (Ping timeout: 264 seconds)
08:20:59 <Inst> actually, this is a bad idea
08:21:11 <Inst> TH runs first, then the compiler, and I'd need TH to link the stuff together
08:22:00 <Inst> anyways, this entire project has left a horrible taste in my mouth, i'll go beggar anyone who offers to provide a solution for the mkNmae a = pure 'a problem, but I guess I'd rather figure out how to flatparse a cabal file now
08:27:47 × hiyori quits (~hiyori@user/hiyori) (Quit: Client closed)
08:28:39 <Inst> at least, end of the day, I realized that IO is a pain in the ass if you're being honest about it no matter what
08:28:42 <Inst> Haskell is just liable to hide it
08:28:48 <Inst> *less liable
08:29:11 wootehfoot joins (~wootehfoo@user/wootehfoot)
08:32:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
08:33:03 machinedgod joins (~machinedg@d198-53-218-113.abhsia.telus.net)
08:36:26 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3)
08:39:03 × Hooloovoo quits (~Hooloovoo@hax0rbana.org) (Server closed connection)
08:39:11 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
08:39:26 Hooloovoo joins (~Hooloovoo@hax0rbana.org)
08:40:00 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
08:40:05 × Simikando quits (~Simikando@bband-dyn237.95-103-149.t-com.sk) (Ping timeout: 240 seconds)
08:40:35 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3) (Ping timeout: 240 seconds)
08:42:24 Unicorn_Princess joins (~Unicorn_P@user/Unicorn-Princess/x-3540542)
08:43:42 × vglfr quits (~vglfr@cli-188-239-201-89.bbn.slav.dn.ua) (Read error: Connection reset by peer)
08:43:50 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 244 seconds)
08:44:03 waleee joins (~waleee@2001:9b0:21c:4000:5bf9:6515:c030:57b7)
08:45:00 [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470)
08:45:32 sm joins (~sm@plaintextaccounting/sm)
08:46:33 topoipat joins (~user@157.97.134.228)
08:49:08 × sm quits (~sm@plaintextaccounting/sm) (Remote host closed the connection)
08:49:22 Tuplanolla joins (~Tuplanoll@91-159-68-236.elisa-laajakaista.fi)
08:49:46 sm joins (~sm@plaintextaccounting/sm)
08:52:34 mechap joins (~mechap@user/mechap)
08:52:57 vglfr joins (~vglfr@cli-188-239-201-89.bbn.slav.dn.ua)
08:53:08 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
08:56:46 _0xa joins (~user@user/0xa/x-3134607)
09:00:24 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
09:01:19 × econo_ quits (uid147250@id-147250.tinside.irccloud.com) (Quit: Connection closed for inactivity)
09:09:18 _ht joins (~Thunderbi@28-52-174-82.ftth.glasoperator.nl)
09:13:11 nate2 joins (~nate@c-98-45-169-16.hsd1.ca.comcast.net)
09:13:51 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
09:16:13 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
09:18:00 × _0xa quits (~user@user/0xa/x-3134607) (Remote host closed the connection)
09:18:35 × nate2 quits (~nate@c-98-45-169-16.hsd1.ca.comcast.net) (Ping timeout: 240 seconds)
09:19:24 Pickchea joins (~private@user/pickchea)
09:21:18 <probie> Most IO actions can fail for a huge number of reasons. No language can change that, at best they can make it more tolerable.
09:21:53 <int-e> . o O ( rocks fall, everyone dies )
09:22:21 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
09:22:30 <int-e> . o O ( E_ROCKFAL in C. )
09:22:35 × machinedgod quits (~machinedg@d198-53-218-113.abhsia.telus.net) (Ping timeout: 240 seconds)
09:22:58 <int-e> err, no underscore :-/
09:25:30 Guest25 joins (~Guest99@host-2-102-81-159.as13285.net)
09:26:09 Flow joins (~none@gentoo/developer/flow)
09:26:15 × waleee quits (~waleee@2001:9b0:21c:4000:5bf9:6515:c030:57b7) (Ping timeout: 240 seconds)
09:35:43 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 264 seconds)
09:40:00 Guest|84 joins (~Guest|84@adsl-178-38-222-58.adslplus.ch)
09:40:00 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3)
09:42:59 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
09:53:28 × xtabentun quits (uid491929@id-491929.tinside.irccloud.com) (Quit: Connection closed for inactivity)
09:56:35 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
09:56:44 × remexre quits (~remexre@user/remexre) (Read error: Connection reset by peer)
09:56:56 remexre joins (~remexre@user/remexre)
10:00:35 × sm quits (~sm@plaintextaccounting/sm) (Ping timeout: 240 seconds)
10:02:23 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
10:03:01 sm joins (~sm@plaintextaccounting/sm)
10:03:13 mc47 joins (~mc47@xmonad/TheMC47)
10:06:27 topoipat` joins (~user@185.216.231.226)
10:08:21 × topoipat quits (~user@157.97.134.228) (Ping timeout: 252 seconds)
10:09:27 × chomwitt quits (~chomwitt@ppp-2-85-137-223.home.otenet.gr) (Ping timeout: 240 seconds)
10:16:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
10:16:56 hiyori joins (~hiyori@user/hiyori)
10:19:35 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 240 seconds)
10:22:27 × Sgeo quits (~Sgeo@user/sgeo) (Read error: Connection reset by peer)
10:23:01 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
10:26:37 chomwitt joins (~chomwitt@ppp-94-67-236-45.home.otenet.gr)
10:36:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
10:37:27 × mechap quits (~mechap@user/mechap) (Ping timeout: 240 seconds)
10:43:15 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
10:47:07 × notzmv quits (~zmv@user/notzmv) (Ping timeout: 264 seconds)
10:53:01 Simikando joins (~Simikando@bband-dyn237.95-103-149.t-com.sk)
10:56:15 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
10:56:47 × kmein quits (~weechat@user/kmein) (Quit: ciao kakao)
10:57:34 xtabentun joins (uid491929@id-491929.tinside.irccloud.com)
10:58:04 × Inst quits (~Inst@120.244.192.250) (Read error: Connection reset by peer)
10:58:37 Inst joins (~Inst@120.244.192.250)
10:59:05 kmein joins (~weechat@user/kmein)
11:01:28 × Pickchea quits (~private@user/pickchea) (Quit: Leaving)
11:04:19 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
11:13:00 × leah2 quits (~leah@vuxu.org) (Ping timeout: 240 seconds)
11:17:17 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
11:17:45 smoothdev joins (~smoothdev@91-169-231-236.subs.proxad.net)
11:22:05 × vglfr quits (~vglfr@cli-188-239-201-89.bbn.slav.dn.ua) (Ping timeout: 240 seconds)
11:22:25 vglfr joins (~vglfr@88.154.35.73)
11:24:21 × pavonia quits (~user@user/siracusa) (Quit: Bye!)
11:24:50 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
11:26:26 leah2 joins (~leah@vuxu.org)
11:26:35 × Guest|84 quits (~Guest|84@adsl-178-38-222-58.adslplus.ch) (Ping timeout: 240 seconds)
11:27:36 AssCrackBandit joins (~user@cust-west-par-46-193-2-167.cust.wifirst.net)
11:28:37 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
11:31:04 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
11:34:19 sm joins (~sm@plaintextaccounting/sm)
11:35:04 × pounce quits (~pounce@user/cute/pounce) (Ping timeout: 245 seconds)
11:36:11 pounce joins (~pounce@user/cute/pounce)
11:36:39 × hyiltiz2 quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
11:37:27 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
11:38:35 × Simikando quits (~Simikando@bband-dyn237.95-103-149.t-com.sk) (Ping timeout: 240 seconds)
11:38:53 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
11:40:27 <ph88> does someone know a function that combines `all` and `catMaybes` [Maybe a] -> [a] only when all of them are Just ?
11:40:30 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
11:40:49 × vglfr quits (~vglfr@88.154.35.73) (Read error: Connection reset by peer)
11:41:41 <Rembane> ph88: `all isJust`?
11:42:49 <ph88> Rembane, doesn't that return a Bool ?
11:43:13 <ph88> i got the type signature wrong by the way [Maybe a] -> Maybe [a]
11:43:28 <tomsmeding> :t sequence
11:43:29 <lambdabot> (Traversable t, Monad m) => t (m a) -> m (t a)
11:43:58 × libertyprime quits (~libertypr@203.96.203.44) (Remote host closed the connection)
11:44:09 <tomsmeding> :t sequence @[] @Maybe
11:44:10 <lambdabot> error:
11:44:11 <lambdabot> Pattern syntax in expression context: sequence@[]
11:44:11 <lambdabot> Did you mean to enable TypeApplications?
11:44:16 <tomsmeding> % :t sequence @[] @Maybe
11:44:16 <yahb2> sequence @[] @Maybe :: Monad Maybe => [Maybe a] -> Maybe [a]
11:44:26 <tomsmeding> dat 'Monad Maybe' constraint lol?
11:44:39 × Inst quits (~Inst@120.244.192.250) (Ping timeout: 245 seconds)
11:44:48 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
11:45:01 <hpc> you never know :P
11:45:01 <tomsmeding> wonder why that doesn't get eliminated
11:45:06 <Rembane> ph88: It does, I got confused by the types. Sorry.
11:45:09 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
11:45:56 <tomsmeding> sequence, also known as 'traverse id'
11:46:02 <tomsmeding> ph88: it was traverse all along
11:46:06 <ph88> thanks guys :))
11:48:35 __monty__ joins (~toonn@user/toonn)
11:48:45 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
11:49:57 <Rembane> Sidenote, Hoogle is very useful in this case: https://hoogle.haskell.org/?hoogle=%5BMaybe%20a%5D%20-%3E%20Maybe%20%5Ba%5D
11:56:28 sm joins (~sm@plaintextaccounting/sm)
11:58:31 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 264 seconds)
12:00:22 Feuermagier joins (~Feuermagi@user/feuermagier)
12:00:29 × hughjfch1 quits (~hughjfche@vmi556545.contaboserver.net) (Ping timeout: 245 seconds)
12:03:59 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
12:05:30 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 252 seconds)
12:12:03 × Angelz quits (Angelz@Angelz.oddprotocol.org) (Server closed connection)
12:12:11 fweht joins (uid404746@id-404746.lymington.irccloud.com)
12:14:07 × jmdaemon quits (~jmdaemon@user/jmdaemon) (Ping timeout: 244 seconds)
12:14:37 × aaronv quits (~aaronv@user/aaronv) (Quit: Leaving)
12:16:58 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
12:17:24 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 246 seconds)
12:18:10 XuMEPA joins (~XuMEPA@185.235.133.138)
12:19:18 × Guest25 quits (~Guest99@host-2-102-81-159.as13285.net) (Ping timeout: 245 seconds)
12:19:37 <XuMEPA> Hello. I have a question. How to correct install haskell on debian 12 bookworm?
12:20:34 <XuMEPA> No instaruction for debian 12 on this (https://downloads.haskell.org/debian/) page
12:20:48 <Rembane> XuMEPA: ghcup is one of the better methods: https://www.haskell.org/ghcup/
12:21:04 <XuMEPA> Thx I will try
12:21:44 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 245 seconds)
12:21:44 <Rembane> XuMEPA: Good luck!
12:24:07 Angelz joins (Angelz@angelz.oddprotocol.org)
12:24:37 vglfr joins (~vglfr@cli-188-239-201-89.bbn.slav.dn.ua)
12:24:46 <juri_> apt install ghc cabal-install?
12:24:56 <juri_> it's what i use. works for me.
12:25:56 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
12:31:15 <[exa]> XuMEPA: if you don't care much about version, the method of juri_ works best
12:31:33 <[exa]> XuMEPA: if you need new ones (you likely don't), go for ghcup
12:32:12 <[exa]> XuMEPA: and a viable alternative is to simply download the binary builds and link them into your ~/.local/bin, works for me reliably since ever
12:36:19 × vglfr quits (~vglfr@cli-188-239-201-89.bbn.slav.dn.ua) (Ping timeout: 264 seconds)
12:36:32 vglfr joins (~vglfr@37.73.24.173)
12:36:56 hughjfchen joins (~hughjfche@vmi556545.contaboserver.net)
12:40:59 <XuMEPA> I already install ghcup and for now it works fine for me. Thx guys for help. I even don't try from start to install from apt-get because i always want to use repos from developers/communitys. And there is no repo for bookworm.
12:42:05 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
12:42:48 × topoipat` quits (~user@185.216.231.226) (Remote host closed the connection)
12:44:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
12:45:24 waleee joins (~waleee@h-176-10-137-138.NA.cust.bahnhof.se)
12:45:34 oo_miguel joins (~Thunderbi@78-11-179-96.static.ip.netia.com.pl)
12:48:46 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
12:49:38 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
12:52:26 sm joins (~sm@plaintextaccounting/sm)
12:52:30 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
12:56:16 Guest99 joins (~Guest99@host-2-102-81-159.as13285.net)
12:56:18 notzmv joins (~zmv@user/notzmv)
12:57:14 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 255 seconds)
12:58:40 <tomsmeding> XuMEPA: the haskell community has mostly decided to maintain ghcup instead of a particular apt repository
12:59:36 <tomsmeding> I mean, there is no topic on which _everyone_ agrees, and this is one of them, but ghcup is definitely quite popular these days
13:00:31 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
13:05:05 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
13:05:14 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 258 seconds)
13:05:28 × xtabentun quits (uid491929@id-491929.tinside.irccloud.com) (Quit: Connection closed for inactivity)
13:05:35 × vglfr quits (~vglfr@37.73.24.173) (Ping timeout: 240 seconds)
13:07:55 × waleee quits (~waleee@h-176-10-137-138.NA.cust.bahnhof.se) (Ping timeout: 258 seconds)
13:09:55 vglfr joins (~vglfr@cli-188-239-201-89.bbn.slav.dn.ua)
13:11:21 × Guest99 quits (~Guest99@host-2-102-81-159.as13285.net) (Quit: Client closed)
13:11:26 L29Ah parts (~L29Ah@wikipedia/L29Ah) ()
13:14:50 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
13:14:55 nate2 joins (~nate@c-98-45-169-16.hsd1.ca.comcast.net)
13:16:28 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
13:18:34 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
13:19:35 × nate2 quits (~nate@c-98-45-169-16.hsd1.ca.comcast.net) (Ping timeout: 240 seconds)
13:21:59 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 255 seconds)
13:22:08 `2jt joins (~jtomas@90.162.208.36)
13:23:11 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
13:23:51 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
13:25:14 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
13:29:14 × acidjnk quits (~acidjnk@p200300d6e7072f64a1f46512fe78b272.dip0.t-ipconnect.de) (Ping timeout: 245 seconds)
13:33:34 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
13:34:12 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
13:37:27 sm joins (~sm@plaintextaccounting/sm)
13:38:05 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
13:42:25 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
13:43:36 L29Ah joins (~L29Ah@wikipedia/L29Ah)
13:53:54 son0p joins (~ff@186.114.32.184)
13:56:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
13:57:00 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 240 seconds)
14:00:22 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
14:02:48 Inst joins (~Inst@120.244.192.250)
14:02:49 wroathe joins (~wroathe@207-153-38-140.fttp.usinternet.com)
14:02:49 × wroathe quits (~wroathe@207-153-38-140.fttp.usinternet.com) (Changing host)
14:02:49 wroathe joins (~wroathe@user/wroathe)
14:02:55 <Inst> can I ask about the story regarding strict tuples?
14:04:06 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 246 seconds)
14:04:16 <Inst> as in, why don't we have them?
14:04:26 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
14:05:35 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
14:06:43 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
14:14:15 × AssCrackBandit quits (~user@cust-west-par-46-193-2-167.cust.wifirst.net) (Ping timeout: 240 seconds)
14:16:32 <fendor> I was playing around with Codensity and the free monad. I've read a couple of times, that it should be faster, asymptotically speaking, to use Codensity (Free f) over Free f, but in some trivial examples, this was not observable.
14:16:53 acidjnk joins (~acidjnk@p200300d6e7072f64a1f46512fe78b272.dip0.t-ipconnect.de)
14:16:57 <fendor> In what situations should it be faster to use Codensity (Free f) over Free f?
14:18:36 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
14:18:55 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 264 seconds)
14:18:57 × son0p quits (~ff@186.114.32.184) (Quit: Bye)
14:23:09 <ncf> in the same kind of situation where dlists are faster than lists
14:23:51 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
14:24:56 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
14:31:50 <[Leary]> fendor: See the docs and implementation of: https://hackage.haskell.org/package/free-5.2/docs/Control-Monad-Free-Church.html (which is a refinement of the Codensity approach).
14:33:07 <fendor> hm, ok thanks!
14:36:50 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
14:37:46 son0p joins (~ff@186.114.32.184)
14:38:43 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 264 seconds)
14:39:31 Lycurgus joins (~juan@user/Lycurgus)
14:41:12 × privacy quits (~privacy@47.219.84.6) (Remote host closed the connection)
14:41:15 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 246 seconds)
14:43:34 privacy joins (~privacy@47.219.84.6)
14:46:07 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
14:47:24 heath3 is now known as heath
14:48:26 × heath quits (~heath@user/heath) (Quit: WeeChat 1.7)
14:48:28 × Lycurgus quits (~juan@user/Lycurgus) (Quit: Tschüss)
14:49:18 <tomsmeding> Inst: I mean, you can always define them yourself, right?
14:52:45 lex_ joins (~alex@188.26.233.194)
14:53:29 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
14:56:52 × lex_ quits (~alex@188.26.233.194) (Ping timeout: 244 seconds)
14:57:59 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 245 seconds)
14:59:35 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
15:01:41 shapr joins (~user@2600:1700:c640:3100:92d4:865c:539c:4357)
15:02:07 × jrm quits (~jrm@user/jrm) (Ping timeout: 264 seconds)
15:03:16 <sm> Inst I'd bet they're on hackage somewhere
15:05:26 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
15:05:55 <Inst> defining them yourself: unergonomic, hackage version, unsure as to whether it's maintained or the level of quality
15:06:06 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
15:06:33 <Inst> also tuples are pretty fundamental, the syntax matters
15:06:34 <Inst> https://hackage.haskell.org/package/strict-0.5/docs/Data-Strict-Tuple.html
15:09:53 mechap joins (~mechap@user/mechap)
15:11:15 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
15:12:18 jrm joins (~jrm@user/jrm)
15:12:32 <[exa]> Inst: y tho
15:12:58 <Inst> control laziness?
15:14:00 <[exa]> no, use tuples for anything that bears semantics
15:14:44 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
15:14:50 dhil joins (~dhil@78.45.150.83.ewm.ftth.as8758.net)
15:16:12 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
15:19:05 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 240 seconds)
15:19:10 <fendor> [Leary], interestingly, the church encoding is even a tad slower than codensity in some handwavy benchmark
15:20:04 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 245 seconds)
15:22:55 <fendor> perhaps I am not measuring the construction time and the evaluation overhead introduced by the indirection is the main difference
15:23:19 <fendor> benchmarking is hard :(
15:24:46 × dolio quits (~dolio@130.44.134.54) (Quit: ZNC 1.8.2 - https://znc.in)
15:27:05 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
15:27:53 <[Leary]> The refinement is of the type itself, not the performance of its operations. Both Codensity and C.M.F.Church.F are asymptotic improvements over naive Free, but that says nothing about the constants involved. It's a complete tossup what's faster at small n, and even for large n it's still a tossup what's faster between the linear options.
15:28:27 dolio joins (~dolio@130.44.134.54)
15:28:57 RSCASTILHO joins (~RSCASTILH@187.40.124.54)
15:29:15 <[Leary]> And it depends how you use the values you construct too.
15:29:26 <fendor> Oh, I thought both should be faster when you do a lot of >>= operations because a naive Free implementation of >>= needs to traverse the whole structure
15:30:23 <[Leary]> They should, that's what I mean by large n.
15:30:55 <fendor> laziness might work in Free's >>= favour, right?
15:31:29 nate2 joins (~nate@c-98-45-169-16.hsd1.ca.comcast.net)
15:31:34 × dolio quits (~dolio@130.44.134.54) (Client Quit)
15:32:30 <fendor> I can imagine it might also depend a lot on how big the term is on the left hand side of >>=
15:33:00 danza joins (~francesco@rm-19-8-93.service.infuturo.it)
15:33:17 dolio joins (~dolio@130.44.134.54)
15:35:09 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
15:36:15 × nate2 quits (~nate@c-98-45-169-16.hsd1.ca.comcast.net) (Ping timeout: 240 seconds)
15:40:47 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
15:42:30 sm joins (~sm@plaintextaccounting/sm)
15:43:45 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
15:47:37 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
15:48:14 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
15:48:27 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
15:49:34 sm joins (~sm@plaintextaccounting/sm)
15:52:22 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 258 seconds)
15:57:36 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 252 seconds)
16:01:29 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
16:02:00 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 252 seconds)
16:03:20 × billchenchina quits (~billchenc@103.152.35.21) (Remote host closed the connection)
16:03:40 billchenchina joins (~billchenc@2a0c:b641:7a2:320:ee3e:47ca:6070:d71a)
16:08:29 × XuMEPA quits (~XuMEPA@185.235.133.138) (Remote host closed the connection)
16:09:05 × dhil quits (~dhil@78.45.150.83.ewm.ftth.as8758.net) (Ping timeout: 240 seconds)
16:09:12 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
16:09:55 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 264 seconds)
16:13:21 econo_ joins (uid147250@id-147250.tinside.irccloud.com)
16:13:44 × jinsun quits (~jinsun@user/jinsun) (Ping timeout: 246 seconds)
16:15:39 Simikando joins (~Simikando@bband-dyn153.95-103-186.t-com.sk)
16:19:51 × Simikando quits (~Simikando@bband-dyn153.95-103-186.t-com.sk) (Ping timeout: 240 seconds)
16:19:55 × billchenchina quits (~billchenc@2a0c:b641:7a2:320:ee3e:47ca:6070:d71a) (Remote host closed the connection)
16:21:40 justsomeguy joins (~justsomeg@user/justsomeguy)
16:22:20 <justsomeguy> I'm trying to set up a project that uses amazonka, but I'm cofused about how to add the library to my stack.yaml file. Where do I put extra-deps?
16:22:23 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
16:22:27 Simikando joins (~Simikando@bband-dyn153.95-103-186.t-com.sk)
16:22:36 billchenchina joins (~billchenc@2a0c:b641:7a2:320:ee3e:47ca:6070:d71a)
16:22:38 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
16:26:16 <justsomeguy> (Also, I'm just a little shocked at how much of a leap it is from writing Haskell for homework to using it for real -- looking at this example program there are so many new things! Four language extensions, lens, conduit, monad transformers...)
16:26:57 <danza> maybe you want to edit package.yml (or yaml) rather than stack.yaml?
16:28:54 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
16:29:14 × billchenchina quits (~billchenc@2a0c:b641:7a2:320:ee3e:47ca:6070:d71a) (Remote host closed the connection)
16:29:23 <danza> about extensions, lens, conduit and transformers: maybe the example you are copying from is a bit too advanced. Experienced haskellers can get an advantage by all those tools, but as a starter one could get lost by the complex types and behavior that come with them
16:29:44 × privacy quits (~privacy@47.219.84.6) (Remote host closed the connection)
16:31:38 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
16:31:47 <justsomeguy> Right, I agree, but there aren't any simple examples in that repo.
16:32:39 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
16:32:49 <justsomeguy> At some point I hope to make a few and send a PR. I have a bunch of aws-cli bash scripts / boto3 script / terraform that I can translate to Haskell once I figure out how to install the library.
16:33:10 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3) (Remote host closed the connection)
16:33:25 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3)
16:33:41 <justsomeguy> Taking a coffee break, back in a few...
16:34:18 × Simikando quits (~Simikando@bband-dyn153.95-103-186.t-com.sk) (Ping timeout: 246 seconds)
16:35:42 Simikando joins (~Simikando@bband-dyn153.95-103-186.t-com.sk)
16:40:43 × Simikando quits (~Simikando@bband-dyn153.95-103-186.t-com.sk) (Ping timeout: 244 seconds)
16:42:47 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
16:43:27 × justsomeguy quits (~justsomeg@user/justsomeguy) (Ping timeout: 240 seconds)
16:45:03 × danza quits (~francesco@rm-19-8-93.service.infuturo.it) (Ping timeout: 240 seconds)
16:46:08 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
16:46:58 × sm quits (~sm@plaintextaccounting/sm) (Quit: sm)
16:47:24 wootehfoot joins (~wootehfoo@user/wootehfoot)
16:48:41 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
16:49:30 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
16:50:07 × arahael quits (~arahael@119-18-1-27.771201.syd.nbn.aussiebb.net) (Ping timeout: 264 seconds)
16:50:43 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 264 seconds)
17:01:09 machinedgod joins (~machinedg@d198-53-218-113.abhsia.telus.net)
17:01:12 Simikando joins (~Simikando@bband-dyn153.95-103-186.t-com.sk)
17:02:05 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
17:03:28 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
17:03:59 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
17:09:27 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
17:10:31 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
17:12:55 × mysl quits (~mysl@user/mysl) (Ping timeout: 264 seconds)
17:13:49 mysl joins (~mysl@user/mysl)
17:15:19 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 264 seconds)
17:18:03 × raoul quits (~raoul@95.179.203.88) (Server closed connection)
17:18:23 raoul joins (~raoul@95.179.203.88)
17:20:07 × mysl quits (~mysl@user/mysl) (Ping timeout: 264 seconds)
17:20:42 justsomeguy joins (~justsomeg@user/justsomeguy)
17:23:07 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 255 seconds)
17:30:05 × Simikando quits (~Simikando@bband-dyn153.95-103-186.t-com.sk) (Ping timeout: 240 seconds)
17:30:42 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
17:31:07 tzh joins (~tzh@c-24-21-73-154.hsd1.wa.comcast.net)
17:36:36 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 255 seconds)
17:42:59 × fendor quits (~fendor@2a02:8388:1640:be00:aab:1226:f274:5021) (Ping timeout: 245 seconds)
17:44:15 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
17:44:16 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
17:44:17 dhil joins (~dhil@78.45.150.83.ewm.ftth.as8758.net)
17:44:45 waleee joins (~waleee@2001:9b0:21c:4000:5bf9:6515:c030:57b7)
17:48:50 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 255 seconds)
17:51:16 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
17:59:22 × p3n quits (~p3n@217.198.124.246) (Quit: ZNC 1.8.2 - https://znc.in)
18:01:15 p3n joins (~p3n@2a00:19a0:3:7c:0:d9c6:7cf6:1)
18:05:02 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 255 seconds)
18:05:36 mysl joins (~mysl@user/mysl)
18:07:05 × waleee quits (~waleee@2001:9b0:21c:4000:5bf9:6515:c030:57b7) (Ping timeout: 240 seconds)
18:09:05 × chomwitt quits (~chomwitt@ppp-94-67-236-45.home.otenet.gr) (Ping timeout: 240 seconds)
18:12:00 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
18:13:14 xtabentun joins (uid491929@id-491929.tinside.irccloud.com)
18:15:12 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
18:16:49 danza joins (~francesco@rm-19-8-93.service.infuturo.it)
18:17:44 privacy joins (~privacy@47.219.84.6)
18:19:35 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
18:20:35 × justsomeguy quits (~justsomeg@user/justsomeguy) (Quit: WeeChat 3.6)
18:22:03 × zer0bitz quits (~zer0bitz@user/zer0bitz) (Read error: Connection reset by peer)
18:22:50 AssCrackBandit joins (~user@cust-west-par-46-193-2-167.cust.wifirst.net)
18:24:34 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
18:25:51 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 240 seconds)
18:29:09 × Inst quits (~Inst@120.244.192.250) (Read error: Connection reset by peer)
18:30:36 × machinedgod quits (~machinedg@d198-53-218-113.abhsia.telus.net) (Ping timeout: 255 seconds)
18:32:16 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
18:33:35 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
18:37:09 zer0bitz joins (~zer0bitz@user/zer0bitz)
18:37:32 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 248 seconds)
18:38:12 alanz joins (sid110616@id-110616.uxbridge.irccloud.com)
18:40:35 × danza quits (~francesco@rm-19-8-93.service.infuturo.it) (Ping timeout: 240 seconds)
18:45:42 machinedgod joins (~machinedg@d198-53-218-113.abhsia.telus.net)
18:47:18 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 244 seconds)
18:48:39 chomwitt joins (~chomwitt@athedsl-25022.home.otenet.gr)
18:54:09 × jle` quits (~jle`@cpe-23-240-75-236.socal.res.rr.com) (Ping timeout: 252 seconds)
18:54:48 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
18:55:59 jle` joins (~jle`@cpe-23-240-75-236.socal.res.rr.com)
18:57:08 wootehfoot joins (~wootehfoo@user/wootehfoot)
18:57:12 × __monty__ quits (~toonn@user/toonn) (Quit: leaving)
19:00:15 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
19:01:22 × qqq quits (~qqq@92.43.167.61) (Quit: leaving)
19:05:59 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
19:08:24 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (Ping timeout: 245 seconds)
19:09:03 billchenchina joins (~billchenc@2a0c:b641:7a2:320:ee3e:47ca:6070:d71a)
19:12:37 × `2jt quits (~jtomas@90.162.208.36) (Quit: Leaving)
19:14:35 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Ping timeout: 240 seconds)
19:15:32 Carbon-lang joins (~Carbonlan@ip121.ip-149-56-160.net)
19:16:03 danza joins (~francesco@rm-19-8-93.service.infuturo.it)
19:19:07 hyiltiz joins (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com)
19:20:35 × danza quits (~francesco@rm-19-8-93.service.infuturo.it) (Ping timeout: 240 seconds)
19:21:05 × AssCrackBandit quits (~user@cust-west-par-46-193-2-167.cust.wifirst.net) (Ping timeout: 240 seconds)
19:26:07 × mechap quits (~mechap@user/mechap) (Ping timeout: 264 seconds)
19:27:04 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
19:27:19 AssCrackBandit joins (~user@cust-west-par-46-193-2-167.cust.wifirst.net)
19:27:45 wootehfoot joins (~wootehfoo@user/wootehfoot)
19:27:59 × Carbon-lang quits (~Carbonlan@ip121.ip-149-56-160.net) (K-Lined)
19:28:42 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
19:29:42 waleee joins (~waleee@2001:9b0:21c:4000:5bf9:6515:c030:57b7)
19:33:13 nate2 joins (~nate@c-98-45-169-16.hsd1.ca.comcast.net)
19:37:14 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
19:38:07 × nate2 quits (~nate@c-98-45-169-16.hsd1.ca.comcast.net) (Ping timeout: 264 seconds)
19:51:04 <ph88> anyone know a best approach to implement the second function? https://bpa.st/ETVA i was thinking about foldl, but i think that iterates too many times needlessly. Perhaps an auxilary function with recursion would be better
19:53:26 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
19:53:34 <monochrom> :type mapM
19:53:41 <monochrom> @type mapM
19:53:42 <lambdabot> (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)
19:53:59 <monochrom> Let m = Either e :)
19:56:39 × jackneill__ quits (~Jackneill@20014C4E1E062E001D5A577F9869F8BE.dsl.pool.telekom.hu) (Ping timeout: 240 seconds)
19:57:03 × user2 quits (~user@162.255.84.96) (Server closed connection)
19:57:26 user2 joins (~user@162.255.84.96)
20:00:53 <[Leary]> "the answer is always traverse"
20:02:44 Pickchea joins (~private@user/pickchea)
20:08:43 × waleee quits (~waleee@2001:9b0:21c:4000:5bf9:6515:c030:57b7) (Ping timeout: 264 seconds)
20:09:50 × _ht quits (~Thunderbi@28-52-174-82.ftth.glasoperator.nl) (Quit: _ht)
20:11:08 <ph88> thank you :)
20:11:12 Guest|82 joins (~Guest|82@vpn-fn-225.net.ed.ac.uk)
20:12:41 caryhartline joins (~caryhartl@168.182.58.169)
20:14:25 × xmachina quits (~xmachina@modemcable048.127-56-74.mc.videotron.ca) (Quit: WeeChat 4.0.4)
20:14:35 × Guest|82 quits (~Guest|82@vpn-fn-225.net.ed.ac.uk) (Client Quit)
20:27:59 × [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Ping timeout: 245 seconds)
20:31:00 wootehfoot joins (~wootehfoo@user/wootehfoot)
20:33:18 [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470)
20:34:08 fendor joins (~fendor@2a02:8388:1640:be00:aab:1226:f274:5021)
20:34:25 wroathe joins (~wroathe@207-153-38-140.fttp.usinternet.com)
20:34:25 × wroathe quits (~wroathe@207-153-38-140.fttp.usinternet.com) (Changing host)
20:34:25 wroathe joins (~wroathe@user/wroathe)
20:35:05 × hugo quits (znc@verdigris.lysator.liu.se) (Ping timeout: 240 seconds)
20:41:01 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
20:41:45 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
20:41:46 × RSCASTILHO quits (~RSCASTILH@187.40.124.54) ()
20:43:50 Friendship joins (~Friendshi@181.230.235.244)
20:46:44 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 245 seconds)
20:47:40 hugo joins (znc@verdigris.lysator.liu.se)
20:49:40 jmdaemon joins (~jmdaemon@user/jmdaemon)
20:50:47 × bontaq quits (~user@ool-45707d2c.dyn.optonline.net) (Ping timeout: 244 seconds)
20:51:29 × caryhartline quits (~caryhartl@168.182.58.169) (Quit: caryhartline)
20:53:07 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3) (Remote host closed the connection)
20:57:16 <jackdk> @tell justsomeguy what are you trying to do with amazonka? perhaps there's a simpler way.
20:57:17 <lambdabot> Consider it noted.
20:57:23 × smoothdev quits (~smoothdev@91-169-231-236.subs.proxad.net) (Quit: smoothdev)
20:59:03 × acidjnk quits (~acidjnk@p200300d6e7072f64a1f46512fe78b272.dip0.t-ipconnect.de) (Ping timeout: 240 seconds)
21:01:23 × Pickchea quits (~private@user/pickchea) (Quit: Leaving)
21:02:47 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 255 seconds)
21:06:44 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
21:14:12 × dhil quits (~dhil@78.45.150.83.ewm.ftth.as8758.net) (Ping timeout: 240 seconds)
21:19:18 pavonia joins (~user@user/siracusa)
21:22:25 wroathe joins (~wroathe@user/wroathe)
21:24:45 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3)
21:28:07 × fendor quits (~fendor@2a02:8388:1640:be00:aab:1226:f274:5021) (Remote host closed the connection)
21:35:54 Sgeo joins (~Sgeo@user/sgeo)
21:36:21 × Tuplanolla quits (~Tuplanoll@91-159-68-236.elisa-laajakaista.fi) (Quit: Leaving.)
21:43:59 × hyiltiz quits (~hyiltiz@2603-8080-1f00-082f-c970-1295-69c1-54c4.res6.spectrum.com) (Quit: WeeChat 4.0.4)
21:44:14 hyiltiz joins (~hyiltiz@2620:149:13d1:100::b)
21:49:43 sm joins (~sm@plaintextaccounting/sm)
21:50:33 × sm quits (~sm@plaintextaccounting/sm) (Client Quit)
21:50:45 × hyiltiz quits (~hyiltiz@2620:149:13d1:100::b) (Quit: WeeChat 4.0.4)
21:50:59 hyiltiz joins (~hyiltiz@2620:149:13d1:100::b)
21:51:30 × infinity0 quits (~infinity0@pwned.gg) (Remote host closed the connection)
21:51:54 sm joins (~sm@plaintextaccounting/sm)
21:53:39 infinity0 joins (~infinity0@pwned.gg)
21:53:49 xmachina joins (xmachina@gateway/vpn/protonvpn/xmachina)
21:56:19 × sm quits (~sm@plaintextaccounting/sm) (Client Quit)
22:03:03 × mira quits (~aranea@wireguard/contributorcat/mira) (Server closed connection)
22:03:27 mira joins (~aranea@wireguard/contributorcat/mira)
22:03:56 <ph88> is it possible to make this function ? Foldable f => Foldable1 g => f a -> Maybe (g a)
22:04:30 <mauke> => =>? that's illegal
22:05:09 <ph88> he? i thought that was just another notation for (Foldable f, Foldable1 g) => f a -> Maybe (g a)
22:07:15 <geekosaur> it at least used to be, dunno if they changed it
22:07:21 sabino joins (~sabino@user/sabino)
22:07:27 <geekosaur> (it wasn';t supposed to work, it was a side effect of something else)
22:09:00 × gmg quits (~user@user/gehmehgeh) (Quit: Leaving)
22:10:11 <geekosaur> so you should not rely on it as it is not guaranteed to always work
22:11:47 <ph88> like this function https://hackage.haskell.org/package/base-4.18.0.0/docs/Data-List-NonEmpty.html#v:nonEmpty could it be implemented for Foldable/Foldable1 ?
22:14:59 × xtabentun quits (uid491929@id-491929.tinside.irccloud.com) (Quit: Connection closed for inactivity)
22:15:55 sm joins (~sm@plaintextaccounting/sm)
22:18:50 <ncf> no
22:18:58 <ncf> Foldable is a mapping-out property, not mapping-into
22:19:00 <probie> ph88: Is it possible to make that function? Not a chance. What is possible is `(Foldable f, Applicative g, Semigroup (g a)) => f a -> Maybe (g a)` or `Foldable f => f a -> (forall g . Foldable1 g => Maybe (g a))`
22:20:05 × sm quits (~sm@plaintextaccounting/sm) (Ping timeout: 240 seconds)
22:20:26 <ncf> the latter is the same type as the question
22:20:37 <ncf> so also not possible
22:21:21 <probie> yeah, I think I meant something like `Foldable f => f a -> (forall g . Foldable1 g => Maybe (g a) -> r) -> r`
22:22:11 _xor0 joins (~xor@ip-50-5-233-250.dynamic.fuse.net)
22:22:19 <probie> haven't had my morning coffee yet
22:22:47 × coot quits (~coot@89-69-206-216.dynamic.chello.pl) (Quit: coot)
22:22:56 <ph88> Could the function be made with some unsafe functions underneath ?
22:23:25 <ncf> it's an interface issue, not a safety issue
22:23:47 × _xor quits (~xor@ip-50-5-233-250.dynamic.fuse.net) (Ping timeout: 244 seconds)
22:23:48 _xor0 is now known as _xor
22:23:50 <ncf> you can't make up a function [a] -> t a knowing nothing about t other than it's Foldable
22:24:00 <ph88> what about some coerce thing that tells GHC ... don't type check this .. it's okay ?
22:24:33 <c_wraith> ph88: but it needs to know what type t is in order to build a t. You can't coerce into that
22:25:05 × AssCrackBandit quits (~user@cust-west-par-46-193-2-167.cust.wifirst.net) (Quit: leaving)
22:25:16 <monochrom> At this point perhaps you should specify what you want it to do rather than hiding behind a type and unsafe functions that accomplishes God-knows-what.
22:25:18 <ph88> it should be like f ~ g
22:26:06 <c_wraith> so.. id?
22:26:06 <probie> If `f ~ g`, then it's easy to implement and your function is `Just`
22:26:35 <ph88> monochrom, mainly to deepen my understanding at this point of what is allowable. But the use case would be to have this function polymorphic https://hackage.haskell.org/package/base-4.18.0.0/docs/Data-List-NonEmpty.html#v:nonEmpty
22:27:06 <ph88> c_wraith, ups obviously that was not right :P
22:27:40 <monochrom> "generalize" is meaningless until you can give at least 3 examples.
22:27:49 <probie> You can do `Foldable f => f a -> Maybe (NonEmpty a)`
22:28:05 <glguy> demo :: Foldable f => f a -> (forall g . Foldable g => Maybe (g a) -> r) -> r
22:28:05 <glguy> demo fa k = k (Just fa)
22:28:07 <monochrom> And perhaps in the process you also realize what Foldable cannot do on its own.
22:28:22 <glguy> Ah, foldable1
22:28:30 <glguy> back to the editor *nod*
22:30:34 <probie> glguy: `demo fa k = k (nonEmpty (toList fa))` (since `k` has to work for any `Foldable1`, which includes `NonEmpty`)
22:30:48 <glguy> aw, you didn't let me paste it
22:30:55 merijn joins (~merijn@088-129-128-083.dynamic.caiway.nl)
22:31:15 <probie> sorry
22:32:12 <ncf> so, demo :: (exists f. Foldable f *> f a) -> Maybe (exists g. Foldable1 g *> g a) ?
22:32:26 <ncf> doesn't seem terribly useful :p
22:33:03 × ringo___ quits (~ringo@157.230.117.128) (Server closed connection)
22:33:05 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 244 seconds)
22:33:18 <ph88> i didn't ran this code, but what about this way? https://bpa.st/VT4Q
22:33:22 ringo___ joins (~ringo@157.230.117.128)
22:33:24 × dcoutts__ quits (~duncan@82-69-94-207.dsl.in-addr.zen.co.uk) (Ping timeout: 246 seconds)
22:33:50 smoothdev joins (~smoothdev@91-169-231-236.subs.proxad.net)
22:34:10 <glguy> I can't imagine ever needing that
22:34:32 <glguy> I should read the scrollback to see what we're doing here
22:35:19 <c_wraith> that does seem pretty useless. the point of a class isn't to share names, it's to share code.
22:36:29 <glguy> c_wraith: teach that to Default <_<
22:36:48 <c_wraith> Yeah, I don't use Default for a reason. :P
22:40:07 × ChaiTRex quits (~ChaiTRex@user/chaitrex) (Remote host closed the connection)
22:41:28 ChaiTRex joins (~ChaiTRex@user/chaitrex)
22:41:54 libertyprime joins (~libertypr@203.96.203.44)
22:45:16 <ph88> seems Foldable1 is only recently in base as well .. interesting
22:55:31 × _xor quits (~xor@ip-50-5-233-250.dynamic.fuse.net) (Ping timeout: 264 seconds)
23:00:15 × cayley5 quits (~phileasfo@user/phileasfogg) (Quit: "It's the only way, then they can all forget me. I got too big, Dorium, too noisy. Time to step back into the shadows.")
23:04:05 × merijn quits (~merijn@088-129-128-083.dynamic.caiway.nl) (Ping timeout: 244 seconds)
23:06:36 rumraisin joins (~42cayley@user/phileasfogg)
23:07:39 _xor joins (~xor@ip-50-5-233-250.dynamic.fuse.net)
23:15:27 wroathe joins (~wroathe@207-153-38-140.fttp.usinternet.com)
23:15:27 × wroathe quits (~wroathe@207-153-38-140.fttp.usinternet.com) (Changing host)
23:15:27 wroathe joins (~wroathe@user/wroathe)
23:16:15 × ystael quits (~ystael@user/ystael) (Ping timeout: 240 seconds)
23:16:25 sm joins (~sm@plaintextaccounting/sm)
23:23:07 × sm quits (~sm@plaintextaccounting/sm) (Ping timeout: 264 seconds)
23:23:21 ystael joins (~ystael@user/ystael)
23:25:05 × chomwitt quits (~chomwitt@athedsl-25022.home.otenet.gr) (Ping timeout: 240 seconds)
23:30:36 waleee joins (~waleee@2001:9b0:21c:4000:5bf9:6515:c030:57b7)
23:30:51 caryhartline joins (~caryhartl@168.182.58.169)
23:34:45 nate2 joins (~nate@c-98-45-169-16.hsd1.ca.comcast.net)
23:37:59 × tolt quits (~weechat-h@li219-154.members.linode.com) (Ping timeout: 246 seconds)
23:38:27 tolt joins (~weechat-h@li219-154.members.linode.com)
23:38:41 × shailangsa quits (~shailangs@host86-186-196-224.range86-186.btcentralplus.com) (Ping timeout: 246 seconds)
23:40:12 × ystael quits (~ystael@user/ystael) (Ping timeout: 240 seconds)
23:40:31 × nate2 quits (~nate@c-98-45-169-16.hsd1.ca.comcast.net) (Ping timeout: 264 seconds)
23:40:50 <jackdk> I've always been partial to https://hackage.haskell.org/package/acme-default
23:41:18 <jackdk> which I use exactly as often as `data-default`, because it is exactly as principled.
23:42:47 codaraxis__ joins (~codaraxis@user/codaraxis)
23:43:08 × caryhartline quits (~caryhartl@168.182.58.169) (Quit: caryhartline)
23:44:28 <EvanR> ertes! damn
23:46:27 × codaraxis___ quits (~codaraxis@user/codaraxis) (Ping timeout: 244 seconds)
23:49:39 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:cc1e:e117:6bc5:9aa3) (Remote host closed the connection)
23:51:55 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 264 seconds)
23:52:16 sm joins (~sm@plaintextaccounting/sm)
23:54:03 caryhartline joins (~caryhartl@168.182.58.169)
23:56:35 × sm quits (~sm@plaintextaccounting/sm) (Ping timeout: 240 seconds)
23:59:05 × Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 240 seconds)

All times are in UTC on 2023-09-17.