2025/03/04

Newest at the top

2025-03-04 09:28:40 +0100vanishingideal(~vanishing@user/vanishingideal) (Ping timeout: 272 seconds)
2025-03-04 09:24:48 +0100michalz(~michalz@185.246.207.203) (Ping timeout: 252 seconds)
2025-03-04 09:22:49 +0100michalz_(~michalz@185.246.207.221)
2025-03-04 09:19:05 +0100ft(~ft@p3e9bc68d.dip0.t-ipconnect.de) (Quit: leaving)
2025-03-04 09:17:14 +0100j1n37(~j1n37@user/j1n37) (Ping timeout: 260 seconds)
2025-03-04 09:09:19 +0100econo_(uid147250@id-147250.tinside.irccloud.com) (Quit: Connection closed for inactivity)
2025-03-04 09:01:30 +0100tcard(~tcard@2400:4051:5801:7500:cf17:befc:ff82:5303)
2025-03-04 09:00:55 +0100caconym(~caconym@user/caconym) caconym
2025-03-04 09:00:00 +0100caconym(~caconym@user/caconym) (Quit: bye)
2025-03-04 08:59:36 +0100alfiee(~alfiee@user/alfiee) (Ping timeout: 252 seconds)
2025-03-04 08:55:13 +0100alfiee(~alfiee@user/alfiee) alfiee
2025-03-04 08:53:47 +0100peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) peterbecich
2025-03-04 08:48:51 +0100tv(~tv@user/tv) (Read error: Connection reset by peer)
2025-03-04 08:44:58 +0100zungi(~tory@user/andrewchawk) andrewchawk
2025-03-04 08:38:00 +0100zungi(~tory@user/andrewchawk) (Ping timeout: 264 seconds)
2025-03-04 08:37:20 +0100CiaoSen(~Jura@ip-037-201-240-075.um10.pools.vodafone-ip.de) CiaoSen
2025-03-04 08:34:09 +0100CiaoSen(~Jura@2a02:8071:64e1:7180:4e50:ddff:fe9b:8922) (Ping timeout: 248 seconds)
2025-03-04 08:31:17 +0100vanishingideal(~vanishing@user/vanishingideal) vanishingideal
2025-03-04 08:29:58 +0100vanishingideal(~vanishing@user/vanishingideal) (Remote host closed the connection)
2025-03-04 08:26:15 +0100mceresa(~mceresa@user/mceresa) mceresa
2025-03-04 08:24:23 +0100mceresa(~mceresa@user/mceresa) (Remote host closed the connection)
2025-03-04 08:23:38 +0100j1n37(~j1n37@user/j1n37) j1n37
2025-03-04 08:22:10 +0100sord937(~sord937@gateway/tor-sasl/sord937) sord937
2025-03-04 08:19:56 +0100 <[exa]> ah yes, the dreaded explicit forall. :D
2025-03-04 08:19:30 +0100j1n37(~j1n37@user/j1n37) (Read error: Connection reset by peer)
2025-03-04 08:14:14 +0100 <Square2> Thanks for your input, I can now move on.
2025-03-04 08:14:11 +0100 <jackdk> not magic: https://downloads.haskell.org/ghc/latest/docs/users_guide/exts/scoped_type_variables.html#extensio…
2025-03-04 08:13:41 +0100 <Square2> wo. I just added a "forall a." in the outermost and it magically works
2025-03-04 08:13:39 +0100 <lambdabot> 42
2025-03-04 08:13:38 +0100 <mauke> > let { outer :: forall a. (Read a) => String -> a; outer s = let { inner :: String -> a; inner = read } in inner s } in outer "42" :: Int
2025-03-04 08:13:32 +0100 <Leary> Err, STV*
2025-03-04 08:12:08 +0100 <Square2> [exa], Ok, not sure I understand the latter part ... but that is a me problem probably. =D
2025-03-04 08:12:02 +0100Lord_of_Life_Lord_of_Life
2025-03-04 08:11:53 +0100 <Leary> There's nothing unintuitive about SCT, it just has bad syntax: you need to introduce the scoped tyvars in the outermost explicit forall.
2025-03-04 08:11:17 +0100Lord_of_Life(~Lord@user/lord-of-life/x-2819915) (Ping timeout: 248 seconds)
2025-03-04 08:11:02 +0100 <[exa]> Square2: most likely one of the inner signatures there is too generic in some of the variables (did you capture _all_ variables that need to get "through" so that the types check?)
2025-03-04 08:10:41 +0100Lord_of_Life_(~Lord@user/lord-of-life/x-2819915) Lord_of_Life
2025-03-04 08:09:45 +0100alfiee(~alfiee@user/alfiee) (Ping timeout: 276 seconds)
2025-03-04 08:09:45 +0100 <Square2> [exa], I will try.
2025-03-04 08:09:16 +0100 <[exa]> Square2: can you post mwe?
2025-03-04 08:09:11 +0100 <[exa]> Square2: it's often quite surprising in what it actually does, much initial intuition has also failed for me
2025-03-04 08:08:41 +0100 <Square2> Seems it doesn't do what I want. It complains like: "Could not deduce `a0 ~ a'"
2025-03-04 08:06:28 +0100 <jackdk> ScopedTypeVariables?
2025-03-04 08:05:58 +0100madcabbage(~cabbage@207.148.176.79) (Ping timeout: 252 seconds)
2025-03-04 08:05:51 +0100 <Square2> There is no way you can have local functions use a type argument (in its signature) of the enclosing function?
2025-03-04 08:04:47 +0100alfiee(~alfiee@user/alfiee) alfiee
2025-03-04 08:02:00 +0100igemnace_igemnace
2025-03-04 08:00:41 +0100CiaoSen(~Jura@2a02:8071:64e1:7180:4e50:ddff:fe9b:8922) CiaoSen
2025-03-04 07:55:24 +0100MyNetAz(~MyNetAz@user/MyNetAz) MyNetAz
2025-03-04 07:53:03 +0100pavonia(~user@user/siracusa) siracusa