Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2020-11-21 23:22:26 × conal quits (~conal@64.71.133.70) (Client Quit)
2020-11-21 23:24:09 elliott__ joins (~elliott@pool-108-51-141-12.washdc.fios.verizon.net)
2020-11-21 23:27:24 × aj2 quits (~aj@193.56.252.12) (Remote host closed the connection)
2020-11-21 23:27:29 × kritzefitz quits (~kritzefit@212.86.56.80) (Remote host closed the connection)
2020-11-21 23:28:45 × Rudd0 quits (~Rudd0@185.189.115.108) (Ping timeout: 240 seconds)
2020-11-21 23:29:09 olligobber joins (olligobber@gateway/vpn/privateinternetaccess/olligobber)
2020-11-21 23:30:25 <ski> class (a ~ FooOf (BarOf a),Bar (BarOf a)) => Foo a where type BarOf a = b | b -> a; toBar :: a -> BarOf a; fromBar :: BarOf a -> a; toBar = fromFoo; fromBar = toFoo
2020-11-21 23:30:28 <ski> class (b ~ BarOf (FooOf b),Foo (FooOf b)) => Bar b where type FooOf b = a | a -> b; toFoo :: b -> FooOf b; fromFoo :: FooOf b -> b; toFoo = fromBar; fromFoo = toBar
2020-11-21 23:30:47 <ski> redmp : i wonder whether something like that could be helpful ?
2020-11-21 23:31:12 × czwartyeon quits (~czwartyeo@77-45-55-99.sta.asta-net.com.pl) (Remote host closed the connection)
2020-11-21 23:32:39 <redmp> https://termbin.com/5l4q
2020-11-21 23:32:41 conal joins (~conal@64.71.133.70)
2020-11-21 23:32:43 xerox_ joins (~xerox@unaffiliated/xerox)
2020-11-21 23:32:59 <redmp> ^ this implements the list approach that i described
2020-11-21 23:33:09 <redmp> taking a look at your class based approach now..
2020-11-21 23:34:24 <redmp> oh wow, ski, those classes convey the whole embedding/extraction thing
2020-11-21 23:38:41 <ski> (i used `TypeFamilies',`TypeFamilyDependencies',`FlexibleContexts',`UndecidableSuperClasses')
2020-11-21 23:39:19 × vicfred quits (~vicfred@unaffiliated/vicfred) (Quit: Leaving)
2020-11-21 23:39:33 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2020-11-21 23:39:35 hekkaidekapus[ joins (~tchouri@gateway/tor-sasl/hekkaidekapus)
2020-11-21 23:40:01 × Fractalis quits (~Fractalis@2601:987:280:8d40:eda9:f9e1:2072:cea7) (Quit: Leaving)
2020-11-21 23:40:45 sfvm joins (~sfvm@37.228.215.148)
2020-11-21 23:41:23 × hekkaidekapus} quits (~tchouri@gateway/tor-sasl/hekkaidekapus) (Ping timeout: 240 seconds)
2020-11-21 23:44:28 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds)
2020-11-21 23:44:50 × yahb quits (xsbot@haskell/bot/yahb) (Ping timeout: 265 seconds)
2020-11-21 23:44:58 × sand_dull quits (~theuser@c-73-149-95-105.hsd1.ct.comcast.net) (Ping timeout: 246 seconds)
2020-11-21 23:45:15 yahb joins (xsbot@haskell/bot/yahb)
2020-11-21 23:47:17 fimp joins (~fimp@217.151.98.168)
2020-11-21 23:49:06 alp joins (~alp@2a01:e0a:58b:4920:1cfa:109c:d72:5dd)
2020-11-21 23:51:23 × et09 quits (~et09@unaffiliated/endolphin) (Remote host closed the connection)
2020-11-21 23:54:25 da39a3ee5e6b4b0d joins (~da39a3ee5@171.5.161.165)
2020-11-21 23:57:11 × gehmehgeh quits (~ircuser1@gateway/tor-sasl/gehmehgeh) (Quit: Leaving)
2020-11-22 00:02:40 × Alleria_ quits (~AllahuAkb@2604:2000:1484:26:b060:c081:3394:137) (Read error: Connection reset by peer)
2020-11-22 00:02:44 _Alleria joins (~AllahuAkb@2604:2000:1484:26:b060:c081:3394:137)
2020-11-22 00:05:37 × justanotheruser quits (~justanoth@unaffiliated/justanotheruser) (Ping timeout: 265 seconds)
2020-11-22 00:05:39 × da39a3ee5e6b4b0d quits (~da39a3ee5@171.5.161.165) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2020-11-22 00:08:17 rprije joins (~rprije@124.148.131.132)
2020-11-22 00:15:11 frdg joins (47b88ff9@pool-71-184-143-249.bstnma.fios.verizon.net)
2020-11-22 00:17:36 × redmp quits (~redmp@mobile-166-137-178-147.mycingular.net) (Ping timeout: 240 seconds)
2020-11-22 00:18:01 feego joins (2fe3e53b@047-227-229-059.res.spectrum.com)
2020-11-22 00:18:05 × dcoutts_ quits (~duncan@33.14.75.194.dyn.plus.net) (Ping timeout: 240 seconds)
2020-11-22 00:18:21 <feego> hi, I'm having a little trouble seeing why (+) <$> [1,2] <*> [3, 4] wouldn't be [4, 6]
2020-11-22 00:18:34 <feego> or why <*> for lists isn't defined that way
2020-11-22 00:20:40 × conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.)
2020-11-22 00:21:36 <frdg> feego: You can use ZipList to get the behavior you are seeking. ZipList comes with an applicative instance that will zip the lists together like you were expecting.
2020-11-22 00:21:56 <feego> yeah, i understand that, but i'm curious why <*> wasn't defined like that
2020-11-22 00:21:56 justanotheruser joins (~justanoth@unaffiliated/justanotheruser)
2020-11-22 00:22:50 <maerwald> would it violate applicative laws?
2020-11-22 00:23:16 × cr3 quits (~cr3@192-222-143-195.qc.cable.ebox.net) (Ping timeout: 240 seconds)
2020-11-22 00:23:40 <kadoban> IIRC then there'd be no Monad instance.
2020-11-22 00:24:07 conal joins (~conal@64.71.133.70)
2020-11-22 00:24:10 × conal quits (~conal@64.71.133.70) (Client Quit)
2020-11-22 00:24:18 <feego> can you elaborate on that?
2020-11-22 00:25:22 <kadoban> Well, I don't think ZipList has a Monad instance that follows the rules. So then there'd be no list monad, or if there were it'd have to be the other one, the nondeterminism one?
2020-11-22 00:25:34 Jeanne-Kamikaze joins (~Jeanne-Ka@66.115.189.224)
2020-11-22 00:26:10 conal joins (~conal@64.71.133.70)
2020-11-22 00:26:15 <dsal> feego: Do you not find the cartesian product to be valid?
2020-11-22 00:26:35 × conal quits (~conal@64.71.133.70) (Client Quit)
2020-11-22 00:27:16 <dsal> > liftA2 (,) [1..5] [1..5] -- I've used stuff like this quite a bit. It doesn't seem like an unreasonable default, especially since it uses all its inputs.
2020-11-22 00:27:17 <lambdabot> [(1,1),(1,2),(1,3),(1,4),(1,5),(2,1),(2,2),(2,3),(2,4),(2,5),(3,1),(3,2),(3,...
2020-11-22 00:27:29 <ski> > return 0 :: ZipList Integer
2020-11-22 00:27:30 <lambdabot> error:
2020-11-22 00:27:30 <lambdabot> • No instance for (Monad ZipList) arising from a use of ‘return’
2020-11-22 00:27:30 <lambdabot> • In the expression: return 0 :: ZipList Integer
2020-11-22 00:27:32 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-11-22 00:28:36 <ski> feego : it's expected that if you have a `Monad' instance, then `(<*>) = ap' (or at least close to that ..) (and `pure = return')
2020-11-22 00:28:44 <kadoban> If you only look at Applicative I think they're both pretty valid. Can only pick one (or zero) to be the default though. Could just require a newtype wrapper to get any. But since Monad came first, it was probably obvious to use the Monad that actually existed. Then once you've picked that an Applicative becomes more of a thing, you have to be consistent with that.
2020-11-22 00:29:24 <feego> hm ok
2020-11-22 00:30:04 <ski> > pure 0 :: ZipList Integer
2020-11-22 00:30:08 <lambdabot> ZipList {getZipList = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0...
2020-11-22 00:30:59 <ski> > let zap = zipWith ($) in repeat (+) `zap` [1,2] `zap` [3,4]
2020-11-22 00:31:01 <lambdabot> [4,6]
2020-11-22 00:31:29 × dftxbs3e quits (~dftxbs3e@unaffiliated/dftxbs3e) (Remote host closed the connection)
2020-11-22 00:33:45 <dsal> zapplicative
2020-11-22 00:34:14 vicfred joins (~vicfred@unaffiliated/vicfred)
2020-11-22 00:37:43 dftxbs3e joins (~dftxbs3e@unaffiliated/dftxbs3e)
2020-11-22 00:38:54 conal joins (~conal@64.71.133.70)
2020-11-22 00:39:22 × feego quits (2fe3e53b@047-227-229-059.res.spectrum.com) (Remote host closed the connection)
2020-11-22 00:41:05 da39a3ee5e6b4b0d joins (~da39a3ee5@2403:6200:8876:6c06:8500:38e7:4522:4d5)
2020-11-22 00:45:06 × Jeanne-Kamikaze quits (~Jeanne-Ka@66.115.189.224) (Quit: Leaving)
2020-11-22 00:46:06 frdg parts (47b88ff9@pool-71-184-143-249.bstnma.fios.verizon.net) ()
2020-11-22 00:54:32 hekkaidekapus[ is now known as hekkaidekapus
2020-11-22 00:55:42 <hekkaidekapus> maerwald: “I wonder how long the haskell survey results take.” The data is tampered with anyway: <https://github.com/haskellweekly/haskellweekly/issues/61>
2020-11-22 00:57:12 sand_dull joins (~theuser@c-73-149-95-105.hsd1.ct.comcast.net)
2020-11-22 00:57:21 <hekkaidekapus> I mean, sh*t happens, but we’re talking about a poll. Tossing 0.8K data points (0.4K) like that is, … I don’t know.
2020-11-22 00:57:39 <hekkaidekapus> *(0.4K at best)
2020-11-22 00:58:02 × elfets quits (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de) (Quit: Leaving)
2020-11-22 00:58:38 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2020-11-22 01:03:49 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 264 seconds)
2020-11-22 01:06:29 × Tario quits (~Tario@201.192.165.173) (Read error: Connection reset by peer)
2020-11-22 01:06:33 × Deide quits (~Deide@217.155.19.23) (Quit: Seeee yaaaa)
2020-11-22 01:08:00 Jeanne-Kamikaze joins (~Jeanne-Ka@66.115.189.234)
2020-11-22 01:08:13 <maerwald> Seems it's not usable then
2020-11-22 01:09:32 acarrico joins (~acarrico@dhcp-68-142-39-249.greenmountainaccess.net)
2020-11-22 01:10:06 × kupi quits (uid212005@gateway/web/irccloud.com/x-zjfftffhhqbtimeu) (Quit: Connection closed for inactivity)
2020-11-22 01:12:11 Tario joins (~Tario@201.192.165.173)
2020-11-22 01:12:32 <hekkaidekapus> If it were something related to Python or Java, it would be possible to statistically correct for the N/A. I am curious to see how the problem—a stark one imo—will be presented in the results announcement.
2020-11-22 01:13:27 × justanotheruser quits (~justanoth@unaffiliated/justanotheruser) (Ping timeout: 260 seconds)
2020-11-22 01:14:02 × enoq quits (~textual@194-208-146-143.lampert.tv) (Quit: Textual IRC Client: www.textualapp.com)
2020-11-22 01:15:22 × conal quits (~conal@64.71.133.70) (Ping timeout: 272 seconds)

All times are in UTC.