Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→
Page 1 .. 600 601 602 603 604 605 606 607 608 609 610 .. 18010
1,800,903 events total
2021-06-23 10:56:26 × MorrowM quits (~MorrowM_@147.161.9.12) (Ping timeout: 268 seconds)
2021-06-23 10:56:31 raoul joins (~raoul@nomnomnomnom.co.uk)
2021-06-23 10:57:38 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 258 seconds)
2021-06-23 10:57:50 hseg joins (~gesh@195.192.229.14)
2021-06-23 10:57:56 <chisui> Hey, has someone any clue why ghc produces this error? https://gist.github.com/chisui/7b558c2d63e3a7fcffc67ae714b69714
2021-06-23 10:57:59 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-06-23 10:58:56 <chisui> The QuantifiedConstraint shouldn't imply that the instance of Typeable is user defined or am I missing something? This looks like a bug to me.
2021-06-23 10:59:55 mekeor joins (~user@2001:a61:3430:c01:f86:cca7:c1fe:e2b4)
2021-06-23 11:02:04 × mpt quits (~tom@2a02:908:1862:49e0::3) (Ping timeout: 268 seconds)
2021-06-23 11:03:06 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 252 seconds)
2021-06-23 11:03:21 × juhp quits (~juhp@128.106.188.66) (Remote host closed the connection)
2021-06-23 11:03:49 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-06-23 11:03:50 × pbrisbin quits (~patrick@pool-173-49-147-28.phlapa.fios.verizon.net) (Ping timeout: 252 seconds)
2021-06-23 11:05:50 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
2021-06-23 11:05:54 <boxscape> chisui: that does look weird, from a quick look at the GHC source code I can only find that error message used in relation to checking instance heads
2021-06-23 11:06:42 <int-e> chisui: https://paste.debian.net/1202126/ may be a viable workaround
2021-06-23 11:07:06 MorrowM joins (~MorrowM_@bzq-110-168-31-106.red.bezeqint.net)
2021-06-23 11:07:25 <int-e> but yeah, it does look like a bug
2021-06-23 11:07:53 <chisui> Thanks.
2021-06-23 11:08:04 × mekeor quits (~user@2001:a61:3430:c01:f86:cca7:c1fe:e2b4) (Remote host closed the connection)
2021-06-23 11:10:25 fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net)
2021-06-23 11:13:28 <boxscape> chisui: FWIW unless there really is a reason to not allow this it looks like `not quantified_constraint` is missing in this guard https://gitlab.haskell.org/ghc/ghc/-/blob/master/compiler/GHC/Tc/Validity.hs#L1539-1542
2021-06-23 11:14:47 <chisui> boxscape: I'll mention that in the issue.
2021-06-23 11:15:05 <boxscape> 👍️
2021-06-23 11:15:18 × fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 265 seconds)
2021-06-23 11:16:59 <merijn> Achievement unlocked: GHC bug ;)
2021-06-23 11:18:58 hmmmas joins (~chenqisu1@183.217.200.246)
2021-06-23 11:21:35 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 265 seconds)
2021-06-23 11:25:07 warnz joins (~warnz@104-55-100-55.lightspeed.lsvlky.sbcglobal.net)
2021-06-23 11:27:23 × hseg quits (~gesh@195.192.229.14) (Ping timeout: 265 seconds)
2021-06-23 11:27:52 machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca)
2021-06-23 11:29:27 × warnz quits (~warnz@104-55-100-55.lightspeed.lsvlky.sbcglobal.net) (Ping timeout: 258 seconds)
2021-06-23 11:30:00 <chisui> If someones interested: https://gitlab.haskell.org/ghc/ghc/-/issues/20033
2021-06-23 11:31:54 × hmmmas quits (~chenqisu1@183.217.200.246) (Quit: Leaving.)
2021-06-23 11:31:54 Franciman joins (~francesco@openglass.it)
2021-06-23 11:32:06 <Franciman> maerwald: you available?
2021-06-23 11:32:33 <maerwald> barely
2021-06-23 11:32:49 <Franciman> ok np I wanted to talk to you about ghcup satisfy
2021-06-23 11:32:56 <Franciman> it can wait
2021-06-23 11:33:43 × danso quits (~danso@23-233-111-52.cpe.pppoe.ca) (Quit: WeeChat 3.2)
2021-06-23 11:33:59 fef joins (~thedawn@user/thedawn)
2021-06-23 11:34:19 × wei2912 quits (~wei2912@112.199.250.21) (Quit: Lost terminal)
2021-06-23 11:34:40 <maerwald> there is #haskell-ghcup
2021-06-23 11:35:01 <Franciman> great
2021-06-23 11:36:43 danso joins (~danso@23-233-111-52.cpe.pppoe.ca)
2021-06-23 11:36:49 × f0c1s_ quits (~f0c1s@106.197.230.212) (Quit: Leaving)
2021-06-23 11:37:47 f0c1s joins (~f0c1s@136.185.130.32)
2021-06-23 11:37:51 f0c1s_ joins (~f0c1s@136.185.130.32)
2021-06-23 11:37:55 × f0c1s_ quits (~f0c1s@136.185.130.32) (Remote host closed the connection)
2021-06-23 11:38:29 × finsternis quits (~X@23.226.237.192) (Remote host closed the connection)
2021-06-23 11:41:22 × Axman6 quits (~Axman6@user/axman6) (Remote host closed the connection)
2021-06-23 11:42:00 Axman6 joins (~Axman6@user/axman6)
2021-06-23 11:43:16 jakzale joins (uid499518@id-499518.charlton.irccloud.com)
2021-06-23 11:46:17 × Axman6 quits (~Axman6@user/axman6) (Ping timeout: 256 seconds)
2021-06-23 11:46:22 × BosonCollider quits (~olofs@90-227-86-119-no542.tbcn.telia.com) (Ping timeout: 252 seconds)
2021-06-23 11:46:28 xff0x_ joins (~xff0x@2001:1a81:5270:f300:fe1c:5171:b5b6:4cc4)
2021-06-23 11:48:37 × xff0x quits (~xff0x@port-92-193-228-27.dynamic.as20676.net) (Ping timeout: 258 seconds)
2021-06-23 11:51:23 jmcarthur joins (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net)
2021-06-23 11:51:31 × lavaman quits (~lavaman@98.38.249.169) (Remote host closed the connection)
2021-06-23 11:52:41 BosonCollider joins (~olofs@90-227-86-119-no542.tbcn.telia.com)
2021-06-23 11:59:57 eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:e846:fcb5:a54b:afb8)
2021-06-23 12:00:30 × ChaiTRex quits (~ChaiTRex@user/chaitrex) (Remote host closed the connection)
2021-06-23 12:00:54 ChaiTRex joins (~ChaiTRex@user/chaitrex)
2021-06-23 12:01:46 × jmcarthur quits (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net) (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
2021-06-23 12:03:58 <shane> I'm looking for a thing, but I don't know what it's called. I guess I'm looking for a "category", that's kind of like (->), except the output is always solely a "subproduct" of the input?
2021-06-23 12:04:31 × eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:e846:fcb5:a54b:afb8) (Ping timeout: 244 seconds)
2021-06-23 12:05:42 × ubert quits (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) (Ping timeout: 264 seconds)
2021-06-23 12:07:52 <shane> So like, if we were to call this thing ~>, the only two valid implementations of `(a, a) -> a` would be `fst` and `snd`
2021-06-23 12:08:35 <shane> I suppose that's true by parametricity if `a` is polymorphic
2021-06-23 12:08:46 <dminuoso> shane: Mmm, Lens definitely fits that description.
2021-06-23 12:08:47 Morrow joins (~Morrow@bzq-110-168-31-106.red.bezeqint.net)
2021-06-23 12:08:54 Axman6 joins (~Axman6@user/axman6)
2021-06-23 12:09:18 <dminuoso> i.e. `Lens' S T` gives you T as a sub-part of S
2021-06-23 12:09:35 <shane> I suppose, if it's a law abiding lens
2021-06-23 12:09:54 <shane> Actually it doesn't even have to be law breaking
2021-06-23 12:10:16 <dminuoso> Well I guess its not entirely true
2021-06-23 12:10:30 <dminuoso> Try and find a precise way of saying what "subproduct" exactly means
2021-06-23 12:10:36 <shane> Yes, I'm trying :)
2021-06-23 12:10:40 <dminuoso> Because one could argue that:
2021-06-23 12:10:44 <dminuoso> split :: a -> (a, a)
2021-06-23 12:10:48 <chisui> shane: do you mean a cartesian category?
2021-06-23 12:10:53 <dminuoso> gives you a subproduct
2021-06-23 12:11:03 <dminuoso> this gets a bit more interesting with impredicativity in the mix
2021-06-23 12:11:12 <shane> chisui: Maybe, that sounds promising
2021-06-23 12:12:01 <dminuoso> Mmm, come to think of it I think chisui is right. This is just a cartesian category
2021-06-23 12:12:22 <shane> Let's forget about the `(a, a) ~> a` example, because that's true by parametricity. If you specialise it to `(Int, Int) ~> Int`, I want it to be such that the output `Int` has to be one of the two given ones. It can never just be `1` or `2` etc. Or even `negate a` or `a + 1`
2021-06-23 12:12:37 × fef quits (~thedawn@user/thedawn) (Remote host closed the connection)
2021-06-23 12:12:42 <shane> Okay, I will look up cartesian category
2021-06-23 12:12:50 <shane> Are there any Haskell libraries that implement something like that?
2021-06-23 12:12:55 <dminuoso> Or actually a precartesian category
2021-06-23 12:12:57 <dminuoso> Yes
2021-06-23 12:12:59 <dminuoso> https://hackage.haskell.org/package/category-extras-0.52.0/docs/Control-Category-Cartesian.html#t:PreCartesian
2021-06-23 12:13:05 fef joins (~thedawn@user/thedawn)
2021-06-23 12:13:36 <shane> Okay, thanks!
2021-06-23 12:16:00 hseg joins (~gesh@195.192.229.14)
2021-06-23 12:16:24 wallymathieu joins (~wallymath@81-234-151-21-no94.tbcn.telia.com)
2021-06-23 12:16:31 jmcarthur joins (~jmcarthur@c-73-29-224-10.hsd1.nj.comcast.net)
2021-06-23 12:16:50 lavaman joins (~lavaman@98.38.249.169)
2021-06-23 12:17:13 <chisui> shane: what do you mean by "can never just be `1` or `2` etc. Or even `negate a` or `a + 1`"? wouldn't `fst (1, 2)` give you `1` in your example?
2021-06-23 12:17:41 dunkeln_1 joins (~dunkeln@94.129.65.28)

All times are in UTC.