Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-04-16 14:05:20 ddellaco_ joins (~ddellacos@ool-44c73afa.dyn.optonline.net)
2021-04-16 14:06:33 × pavonia quits (~user@unaffiliated/siracusa) (Quit: Bye!)
2021-04-16 14:07:05 Jd007 joins (~Jd007@162.156.11.151)
2021-04-16 14:07:56 __monty__ joins (~toonn@unaffiliated/toonn)
2021-04-16 14:09:25 nut joins (~user@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr)
2021-04-16 14:10:29 × acidjnk_new quits (~acidjnk@p200300d0c72b9573286e28f39b70c9d3.dip0.t-ipconnect.de) (Ping timeout: 250 seconds)
2021-04-16 14:11:40 byorgey joins (~byorgey@155.138.238.211)
2021-04-16 14:13:05 glguy joins (x@freenode/staff/haskell.developer.glguy)
2021-04-16 14:17:15 Ariakenom joins (~Ariakenom@2001:9b1:efb:fc00:7969:a01b:88d1:8650)
2021-04-16 14:17:41 cole-h joins (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net)
2021-04-16 14:18:25 nbloomf joins (~nbloomf@2600:1700:ad14:3020:441:ad95:9496:73d9)
2021-04-16 14:19:14 jumper149 joins (~jumper149@80.240.31.34)
2021-04-16 14:19:17 × kristijonas_ quits (~kristijon@78-56-32-39.static.zebra.lt) (Remote host closed the connection)
2021-04-16 14:19:41 kristijonas_ joins (~kristijon@78-56-32-39.static.zebra.lt)
2021-04-16 14:22:14 Sgeo joins (~Sgeo@ool-18b98aa4.dyn.optonline.net)
2021-04-16 14:22:59 seven_three parts (~user@pool-96-233-64-53.bstnma.fios.verizon.net) ("ERC (IRC client for Emacs 27.2)")
2021-04-16 14:26:14 cr3 joins (~cr3@192-222-143-195.qc.cable.ebox.net)
2021-04-16 14:27:48 qwerty2o joins (~qwerty2o@93-172-139-92.bb.netvision.net.il)
2021-04-16 14:28:21 <qwerty2o> hi. is there a way to write this without explicitly declaring a and b?
2021-04-16 14:28:28 <qwerty2o> pow a b = a ^ b `mod` 10
2021-04-16 14:29:11 <geekosaur> @pl \a b -> a ^ b `mod` 10
2021-04-16 14:29:11 <lambdabot> (. (`mod` 10)) . (^)
2021-04-16 14:29:13 <qwerty2o> i thought something like pow = (^) >>= (`mod` 10) but idk i guess
2021-04-16 14:29:18 <qwerty2o> not
2021-04-16 14:29:34 <geekosaur> there's a pointfree way to write lots of things. whether it's worth it is another question
2021-04-16 14:30:38 <qwerty2o> lambdabot, can you explain?
2021-04-16 14:31:08 <merijn> qwerty2o: Well, no, because its a bot :p
2021-04-16 14:31:25 <qwerty2o> oh oops
2021-04-16 14:31:34 <qwerty2o> seems it doesn't work anyway
2021-04-16 14:32:06 <qwerty2o> geekosaur, lets say it is
2021-04-16 14:32:11 <qwerty2o> u have an idea?
2021-04-16 14:32:22 <qwerty2o> i thought i could compose the two in a way
2021-04-16 14:32:46 carlomagno1 joins (~cararell@148.87.23.6)
2021-04-16 14:32:50 star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com)
2021-04-16 14:33:54 × carlomagno quits (~cararell@148.87.23.11) (Ping timeout: 268 seconds)
2021-04-16 14:34:40 <geekosaur> ah, as I feared @pl doesn't handle operator precedence
2021-04-16 14:34:48 <geekosaur> which makes the result even uglier
2021-04-16 14:35:08 <geekosaur> @pl \a b -> (a ^ b) `mod` 10
2021-04-16 14:35:09 <lambdabot> flip flip 10 . (mod .) . (^)
2021-04-16 14:36:43 <qwerty2o> mmm so no?
2021-04-16 14:37:18 <geekosaur> tbh "if you have to ask, the best answer is no"
2021-04-16 14:37:43 <qwerty2o> saddening
2021-04-16 14:37:52 <geekosaur> one should go for readability over cleverness
2021-04-16 14:37:58 <[exa]> y tho, your code will be readable! ;]
2021-04-16 14:38:06 <geekosaur> @quote kernighan clever
2021-04-16 14:38:06 <lambdabot> No quotes for this person. Take a stress pill and think things over.
2021-04-16 14:38:11 <geekosaur> bah
2021-04-16 14:38:22 <geekosaur> @quote twice.as.clever
2021-04-16 14:38:22 <lambdabot> No quotes match. My brain just exploded
2021-04-16 14:38:36 <geekosaur> thought we had that one. ah well
2021-04-16 14:39:10 <qwerty2o> i actually thought it could be nice since it's pretty straightforward what the two functions recieve and return
2021-04-16 14:39:17 <geekosaur> anyway the bot gave you an answer, it's just an ugly one
2021-04-16 14:39:24 <geekosaur> the "flip flip" thing
2021-04-16 14:39:47 <geekosaur> (which is usually a warning that you shouldn't pointfree that expression)
2021-04-16 14:39:54 <qwerty2o> yeah that's bad
2021-04-16 14:42:03 Guest78317 joins (~laudiacay@67.176.215.84)
2021-04-16 14:43:18 <lambdabot> *cough* do I have the rona?
2021-04-16 14:43:40 ep1ctetus joins (~epictetus@ip72-194-54-201.sb.sd.cox.net)
2021-04-16 14:45:06 × nut quits (~user@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 240 seconds)
2021-04-16 14:46:43 × Guest78317 quits (~laudiacay@67.176.215.84) (Ping timeout: 252 seconds)
2021-04-16 14:48:29 LKoen joins (~LKoen@65.250.88.92.rev.sfr.net)
2021-04-16 14:48:39 frozenErebus joins (~frozenEre@37.231.244.249)
2021-04-16 14:50:34 × LKoen quits (~LKoen@65.250.88.92.rev.sfr.net) (Read error: Connection reset by peer)
2021-04-16 14:53:53 × carlomagno1 quits (~cararell@148.87.23.6) (Ping timeout: 240 seconds)
2021-04-16 14:56:16 carlomagno joins (~cararell@148.87.23.10)
2021-04-16 14:59:12 vicfred joins (~vicfred@unaffiliated/vicfred)
2021-04-16 14:59:19 × ajc_ quits (~ajc@69.231.232.79) (Read error: Connection reset by peer)
2021-04-16 15:00:01 heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-04-16 15:00:50 × Varis quits (~Tadas@unaffiliated/varis) (Read error: Connection reset by peer)
2021-04-16 15:03:27 × adius quits (sid321344@gateway/web/irccloud.com/x-yfsibqzgqazbvhna) ()
2021-04-16 15:04:07 × idhugo quits (~idhugo@87-49-147-45-mobile.dk.customer.tdc.net) (Ping timeout: 268 seconds)
2021-04-16 15:04:12 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds)
2021-04-16 15:06:16 __minoru__shirae joins (~shiraeesh@109.166.58.206)
2021-04-16 15:10:15 heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-04-16 15:10:31 × elliott_ quits (~elliott_@pool-108-18-30-46.washdc.fios.verizon.net) (Ping timeout: 260 seconds)
2021-04-16 15:11:12 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds)
2021-04-16 15:13:03 elliott_ joins (~elliott_@pool-108-18-30-46.washdc.fios.verizon.net)
2021-04-16 15:14:46 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 252 seconds)
2021-04-16 15:16:56 × __minoru__shirae quits (~shiraeesh@109.166.58.206) (Ping timeout: 246 seconds)
2021-04-16 15:17:15 concept21 joins (~concept2@unaffiliated/tubo)
2021-04-16 15:18:35 × ericsagn1 quits (~ericsagne@2405:6580:0:5100:2a0f:6893:58ea:35ea) (Ping timeout: 260 seconds)
2021-04-16 15:18:40 × concept2 quits (~concept2@unaffiliated/tubo) (Read error: Connection reset by peer)
2021-04-16 15:18:40 concept21 is now known as concept2
2021-04-16 15:18:46 × wrunt quits (~ajc@vmx14030.hosting24.com.au) (Ping timeout: 252 seconds)
2021-04-16 15:19:11 wrunt joins (~ajc@vmx14030.hosting24.com.au)
2021-04-16 15:20:19 lambdaman joins (~lambdaman@s66-183-152-156.bc.hsia.telus.net)
2021-04-16 15:20:51 × mapperr quits (~mapperr@vmi389916.contaboserver.net) (Remote host closed the connection)
2021-04-16 15:21:55 mapperr joins (~mapperr@vmi389916.contaboserver.net)
2021-04-16 15:22:52 myShoggoth joins (~myShoggot@97-120-72-12.ptld.qwest.net)
2021-04-16 15:22:53 tstat_ is now known as tstat
2021-04-16 15:24:23 × aVikingTrex quits (~aVikingTr@2001:8003:340d:d00:b2de:b98:7a93:b0ea) (Ping timeout: 258 seconds)
2021-04-16 15:27:59 × fryguybob quits (~fryguybob@cpe-74-65-31-113.rochester.res.rr.com) (Quit: leaving)
2021-04-16 15:29:33 fryguybob joins (~fryguybob@cpe-74-65-31-113.rochester.res.rr.com)
2021-04-16 15:30:10 romesrf joins (~romesrf@44.190.189.46.rev.vodafone.pt)
2021-04-16 15:30:21 × xelxebar_ quits (~xelxebar@gateway/tor-sasl/xelxebar) (Ping timeout: 240 seconds)
2021-04-16 15:31:50 nineonine joins (~nineonine@2604:3d08:7785:9600:8da3:57c2:b9e6:3845)
2021-04-16 15:32:01 ericsagn1 joins (~ericsagne@2405:6580:0:5100:902:be93:ec35:bb2b)
2021-04-16 15:32:22 × nineonine quits (~nineonine@2604:3d08:7785:9600:8da3:57c2:b9e6:3845) (Remote host closed the connection)
2021-04-16 15:32:34 <romesrf> hello! i have an issue with parsec, something i would hope to fix with `try` but haven't been able to. here's a working minimal example that showcases my problem: https://paste.tomsmeding.com/Iaj8UZyY - annotated with the issue
2021-04-16 15:33:34 <romesrf> i'll keep trying to fix it meanwhile but have been at this for some time and some help would be really appreciated :)

All times are in UTC.