Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→
Page 1 .. 241 242 243 244 245 246 247 248 249 250 251 .. 17972
1,797,192 events total
2021-06-02 11:34:55 × Guest6551 quits (~pera@0541db7e.skybroadband.com) (Ping timeout: 245 seconds)
2021-06-02 11:35:27 favonia joins (~favonia@user/favonia)
2021-06-02 11:36:47 <ziman> oh, right, because you'd use the transformer formulation then
2021-06-02 11:37:31 haskman joins (~haskman@223.190.0.187)
2021-06-02 11:37:39 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Client Quit)
2021-06-02 11:37:47 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-06-02 11:38:07 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Client Quit)
2021-06-02 11:38:15 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-06-02 11:39:09 habib joins (~habib@89.38.69.197)
2021-06-02 11:39:24 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Client Quit)
2021-06-02 11:39:33 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-06-02 11:39:48 boxscape10 is now known as boxscape
2021-06-02 11:40:30 <habib> hey, can anyone tell me if `(a <=< b) . c` is equivalent to `a <=< (b . c)`, and/or how to check the equivalence of different bracketed statements in the general case?
2021-06-02 11:40:48 <hpc> :t \a b c -> (a <=< b) . c
2021-06-02 11:40:49 <lambdabot> Monad m => (b -> m c) -> (a1 -> m b) -> (a2 -> a1) -> a2 -> m c
2021-06-02 11:40:55 <hpc> :t \a b c -> a <=< (b . c)
2021-06-02 11:40:56 <lambdabot> Monad m => (b1 -> m c) -> (b2 -> m b1) -> (a -> b2) -> a -> m c
2021-06-02 11:42:04 <hpc> you could do it with equational reasoning
2021-06-02 11:42:14 <merijn> @check \f g h x -> ((f <=< g) . h) x == (f <=< (g . h)) x
2021-06-02 11:42:15 <lambdabot> error:
2021-06-02 11:42:15 <lambdabot> • No instance for (Typeable m0) arising from a use of ‘myquickcheck’ • In th...
2021-06-02 11:42:18 <merijn> aww
2021-06-02 11:42:23 <hpc> expand out the definition of (.) and (<=<), and use the Monad laws to turn them into the same equation
2021-06-02 11:42:40 <hpc> or well, same expression
2021-06-02 11:42:56 <habib> i guess that's my final resort, just manually expanding it
2021-06-02 11:43:36 waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd)
2021-06-02 11:44:03 <habib> what i really care about is doing `a <=< b . c` without brackets and knowing that it's equivalent to the one i want `a <=< (b . c)`, but if the one i want is also equivalent to the other one, it doesn't matter which way the unbracketed expression resolves to
2021-06-02 11:44:30 <habib> in fact, if they're both equivalent, that's happy days, because then it means i don't have to put brackets when i want it the other way as well
2021-06-02 11:45:01 × hmmmas quits (~chenqisu1@183.217.202.217) (Quit: Leaving.)
2021-06-02 11:45:08 × dunkeln quits (~dunkeln@94.129.65.28) (Ping timeout: 268 seconds)
2021-06-02 11:46:36 <habib> thanks hpc, i'll just do the expansion tonight
2021-06-02 11:46:46 <lyxia> @check \fgh x -> let f,g :: Int -> [Int] ; h :: Int -> Int ; (Fn f, Fn g, Fn h) = fgh in ((f <=< g) . h) x === (f <=< (g . h)) x
2021-06-02 11:46:47 <lambdabot> +++ OK, passed 100 tests.
2021-06-02 11:47:55 <hpc> jeez, i need to properly learn quickcheck
2021-06-02 11:48:15 <habib> oh nice
2021-06-02 11:48:15 dunkeln joins (~dunkeln@94.129.65.28)
2021-06-02 11:49:33 <habib> that's confidence enough for me with what i'm doing if i do a manual test and things still work the same
2021-06-02 11:49:39 <habib> thanks lyxia
2021-06-02 11:50:09 <habib> i gotta get back to work now ha; i'll use this tonight
2021-06-02 11:50:21 habib parts (~habib@89.38.69.197) ()
2021-06-02 11:51:27 haltux_ joins (~haltux@a89-154-181-47.cpe.netcabo.pt)
2021-06-02 11:51:37 thiross joins (~user@173.242.113.143.16clouds.com)
2021-06-02 11:51:45 × waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Quit: WeeChat 3.1)
2021-06-02 11:51:54 × haltux quits (~haltux@a89-154-181-47.cpe.netcabo.pt) (Ping timeout: 264 seconds)
2021-06-02 11:52:19 shryke_ joins (~shryke@91.103.43.254)
2021-06-02 11:52:30 pera joins (~pera@0541db7e.skybroadband.com)
2021-06-02 11:52:54 pera is now known as Guest3322
2021-06-02 11:54:18 smitop joins (uid328768@user/smitop)
2021-06-02 11:55:07 × thiross quits (~user@173.242.113.143.16clouds.com) (Remote host closed the connection)
2021-06-02 11:55:29 × exarkun quits (~exarkun@user/exarkun) (Remote host closed the connection)
2021-06-02 11:55:38 eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:5878:fcfd:e07b:ffd9)
2021-06-02 11:55:49 × ubikium quits (~ubikium@113x43x248x70.ap113.ftth.arteria-hikari.net) (Read error: Connection reset by peer)
2021-06-02 11:56:02 exarkun joins (~exarkun@user/exarkun)
2021-06-02 11:56:09 × shryke_ quits (~shryke@91.103.43.254) (Client Quit)
2021-06-02 11:58:57 waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd)
2021-06-02 12:00:22 fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net)
2021-06-02 12:00:33 × eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:5878:fcfd:e07b:ffd9) (Ping timeout: 268 seconds)
2021-06-02 12:02:14 ubikium joins (~ubikium@113x43x248x70.ap113.ftth.arteria-hikari.net)
2021-06-02 12:03:58 × ikex quits (~ash@user/ikex) (Ping timeout: 272 seconds)
2021-06-02 12:04:52 × fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 268 seconds)
2021-06-02 12:08:24 × azeem quits (~azeem@dynamic-adsl-94-34-34-125.clienti.tiscali.it) (Read error: Connection reset by peer)
2021-06-02 12:09:08 zebrag joins (~chris@user/zebrag)
2021-06-02 12:09:11 ikex joins (~ash@user/ikex)
2021-06-02 12:09:46 GuYuChina joins (~GuYuChina@120.244.202.156)
2021-06-02 12:10:05 GuYuChina parts (~GuYuChina@120.244.202.156) ()
2021-06-02 12:13:00 azeem joins (~azeem@dynamic-adsl-94-34-34-125.clienti.tiscali.it)
2021-06-02 12:13:56 × dutchgriffon quits (~laurens@2604:3d08:4383:6200:14a:dacb:8b69:ead6) (Ping timeout: 252 seconds)
2021-06-02 12:15:04 dutchgriffon joins (~laurens@2604:3d08:4383:6200:1c6:2d20:b4b0:b2cf)
2021-06-02 12:18:06 benin8 joins (~benin@106.198.94.140)
2021-06-02 12:18:20 × ptrcmd quits (~ptrcmd@user/ptrcmd) (Quit: Lost terminal)
2021-06-02 12:19:23 jacks2 joins (~bc817c21@217.29.117.252)
2021-06-02 12:19:25 ptrcmd joins (~ptrcmd@user/ptrcmd)
2021-06-02 12:19:55 × benin quits (~benin@183.82.205.186) (Ping timeout: 245 seconds)
2021-06-02 12:21:29 <jacks2> hi. where can I find textual source that is in the gif on this page? http://hackage.haskell.org/package/concurrent-output
2021-06-02 12:21:32 <jacks2> I tried google but no luck
2021-06-02 12:21:43 benin joins (benin@gateway/vpn/protonvpn/benin)
2021-06-02 12:23:21 <Taneb> jacks2: https://git.joeyh.name/index.cgi/concurrent-output.git/tree/demo2.hs
2021-06-02 12:23:41 × benin8 quits (~benin@106.198.94.140) (Ping timeout: 264 seconds)
2021-06-02 12:23:52 <jacks2> thanks!
2021-06-02 12:23:55 <Taneb> I went to the website linked to as the source repo on Hackage, and saw there was a demo2.hs file
2021-06-02 12:25:12 <jacks2> yeah, I missed it
2021-06-02 12:25:17 <jacks2> pretty nifty library.
2021-06-02 12:26:02 <jacks2> demo works flawlessly on linux, would be nice if it worked on other OSes as well. I'll have to test
2021-06-02 12:29:14 leeb joins (~leeb@KD111239154171.au-net.ne.jp)
2021-06-02 12:30:52 Guest5 joins (~Guest5@040-194-158-163.dynamic.caiway.nl)
2021-06-02 12:30:54 × dpl_ quits (~dpl@77-121-78-163.chn.volia.net) (Ping timeout: 264 seconds)
2021-06-02 12:31:00 × cheater quits (~Username@user/cheater) (Remote host closed the connection)
2021-06-02 12:31:05 <Guest5> Hi, I have a strange Haskell problem
2021-06-02 12:31:19 × v01d4lph4 quits (~v01d4lph4@user/v01d4lph4) (Remote host closed the connection)
2021-06-02 12:31:36 <Guest5> I have a list `[c, b, a]`, I then call `reverse` on the list and it gives back `[b, a, c]`
2021-06-02 12:31:51 <Guest5> How is that possible?
2021-06-02 12:31:53 v01d4lph4 joins (~v01d4lph4@user/v01d4lph4)
2021-06-02 12:32:09 <jacks2> > reverse [1, 2, 3]
2021-06-02 12:32:11 <lambdabot> [3,2,1]
2021-06-02 12:32:11 <merijn> > reverse [ 3, 2, 1]
2021-06-02 12:32:13 <lambdabot> [1,2,3]
2021-06-02 12:32:43 int-e can think of dirty runST/unsafeInterleaveST tricks to do that kind of thing
2021-06-02 12:32:44 <merijn> Pretty sure you're calling the wrong reverse function
2021-06-02 12:33:01 dpl_ joins (~dpl@77-121-78-163.chn.volia.net)
2021-06-02 12:33:06 × benin quits (benin@gateway/vpn/protonvpn/benin) (Ping timeout: 272 seconds)

All times are in UTC.