Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,804,088 events total
2021-08-16 13:38:00 × pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Quit: WeeChat 3.2)
2021-08-16 13:39:13 pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655)
2021-08-16 13:41:33 jlamothe joins (~jlamothe@104.158.48.100)
2021-08-16 13:44:43 mr-red joins (~drd@2001:b07:a70:9f1f:1562:34de:f50f:77d4)
2021-08-16 13:45:32 × drd quits (~drd@93-39-151-19.ip76.fastwebnet.it) (Ping timeout: 258 seconds)
2021-08-16 13:46:32 × andre quits (~andre@41.76.35.141) (Read error: No route to host)
2021-08-16 13:48:14 × Codaraxis_ quits (~Codaraxis@user/codaraxis) (Remote host closed the connection)
2021-08-16 13:48:42 Codaraxis_ joins (~Codaraxis@user/codaraxis)
2021-08-16 13:51:42 amahl joins (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi)
2021-08-16 13:52:46 × Obo quits (~roberto@78.77.166.185) (Quit: WeeChat 2.8)
2021-08-16 13:53:02 Pickchea joins (~private@user/pickchea)
2021-08-16 13:53:59 × Codaraxis_ quits (~Codaraxis@user/codaraxis) (Ping timeout: 268 seconds)
2021-08-16 13:55:28 × lortabac quits (~lortabac@2a01:e0a:541:b8f0:fd17:74a9:421f:56d4) (Quit: WeeChat 2.8)
2021-08-16 13:56:56 Codaraxis_ joins (~Codaraxis@user/codaraxis)
2021-08-16 14:01:59 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-08-16 14:03:47 × ubert quits (~Thunderbi@77.119.161.84.wireless.dyn.drei.com) (Ping timeout: 245 seconds)
2021-08-16 14:06:17 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 245 seconds)
2021-08-16 14:10:28 × zaquest quits (~notzaques@5.128.210.178) (Quit: Leaving)
2021-08-16 14:12:07 × dschrempf quits (~dominik@92-249-159-252.pool.digikabel.hu) (Ping timeout: 245 seconds)
2021-08-16 14:13:29 zaquest joins (~notzaques@5.128.210.178)
2021-08-16 14:14:12 × mr-red quits (~drd@2001:b07:a70:9f1f:1562:34de:f50f:77d4) (Ping timeout: 245 seconds)
2021-08-16 14:14:51 × Pickchea quits (~private@user/pickchea) (Quit: Leaving)
2021-08-16 14:18:11 × mjs2600 quits (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) (Ping timeout: 252 seconds)
2021-08-16 14:19:41 drd joins (~drd@93-39-151-19.ip76.fastwebnet.it)
2021-08-16 14:23:50 Sgeo joins (~Sgeo@user/sgeo)
2021-08-16 14:25:52 × zgrep quits (~zgrep@user/zgrep) (Quit: It's a quitter's world.)
2021-08-16 14:27:20 zgrep joins (~zgrep@user/zgrep)
2021-08-16 14:28:56 Tuplanolla joins (~Tuplanoll@91-159-69-50.elisa-laajakaista.fi)
2021-08-16 14:29:07 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-08-16 14:31:07 geekosaur joins (~geekosaur@xmonad/geekosaur)
2021-08-16 14:33:27 × jgeerds quits (~jgeerds@55d45555.access.ecotel.net) (Ping timeout: 245 seconds)
2021-08-16 14:37:57 AndrewYu is now known as \\\
2021-08-16 14:38:03 \\\ is now known as AndrewYu
2021-08-16 14:38:42 tolarz joins (bfa39a78db@ircbox.informatik.uni-erlangen.de)
2021-08-16 14:38:51 <tolarz> (crosspost from ##math)
2021-08-16 14:38:53 <tolarz> I read that monads have a "flatten" operation that turns, e.g., `List[List[A]]` into `List[A]`.
2021-08-16 14:38:59 <tolarz> But the haskell def. doesn't feature it: https://wiki.haskell.org/All_About_Monads#The_Monad_class
2021-08-16 14:39:01 <tolarz> Why?
2021-08-16 14:39:33 <tolarz> Are there multiple alternative definitions for monads in the literature?
2021-08-16 14:39:55 <Rembane_> :t join
2021-08-16 14:39:56 <lambdabot> Monad m => m (m a) -> m a
2021-08-16 14:39:59 <Rembane_> There it is. :)
2021-08-16 14:40:06 <gehmehgeh> hmmm, I can't seem to find suffiscient info as to how to use cabal with profiling. Whenever I turn it on, it says it can't find any of the dependencies
2021-08-16 14:40:09 <gehmehgeh> is this a known problem?
2021-08-16 14:40:17 <gehmehgeh> I've googled and found nothing
2021-08-16 14:40:21 <tolarz> Rembane_: but why isn't it mentioned in the link?
2021-08-16 14:40:52 × amk quits (~amk@176.61.106.150) (Ping timeout: 268 seconds)
2021-08-16 14:41:01 <Rembane_> tolarz: Because as it is as you say, there are multiple different definitions of a monad, and the one chosen in Haskell doesn't contain join.
2021-08-16 14:41:11 <gehmehgeh> (I've tried "cabal build --enable-profiling", settings ghc-toptions as well as setting "profiling: True"
2021-08-16 14:41:28 <tolarz> Rembane_: is there a list of all alternative defsß
2021-08-16 14:41:30 <tolarz> ?
2021-08-16 14:41:35 <tolarz> i tried searching for one on google
2021-08-16 14:41:37 <Rembane_> tolarz: You can define monad using fmap and join, or by using (>=>) and return or by using (>>=) and return.
2021-08-16 14:41:49 <c_wraith> gehmehgeh: you need profiling versions of all the dependencies installed. cabal normally takes care of that, but it can't handle wired-in libraries like base
2021-08-16 14:41:54 amk joins (~amk@176.61.106.150)
2021-08-16 14:42:10 <c_wraith> gehmehgeh: did you install a broken version of ghc like the one from a package manager?
2021-08-16 14:42:15 <Rembane_> tolarz: There are probably more, but I can't think of any right now. But this is a topic I know many in this channel are passionate about so they will probably chime in. :)
2021-08-16 14:42:37 <gehmehgeh> ah! "cabal build --enable-library-profiling --enable-profiling" did it
2021-08-16 14:42:37 dschrempf joins (~dominik@92-249-159-252.pool.digikabel.hu)
2021-08-16 14:42:38 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-08-16 14:42:39 <gehmehgeh> :D
2021-08-16 14:43:08 <gehmehgeh> c_wraith: apparently I had to both set "--enable-library-profiling" AND the reguler --enable-profiling
2021-08-16 14:43:11 × nisstyre quits (~wes@li798-187.members.linode.com) (Changing host)
2021-08-16 14:43:11 nisstyre joins (~wes@user/nisstyre)
2021-08-16 14:43:20 slack1256 joins (~slack1256@191.126.188.171)
2021-08-16 14:43:33 sleblanc joins (~sleblanc@user/sleblanc)
2021-08-16 14:43:46 <c_wraith> tolarz: please note that Haskell is *not* an especially mathematical language. It does things based on practicality instead of conceptual purity all over the place.
2021-08-16 14:43:53 <tolarz> I see.
2021-08-16 14:43:59 <tolarz> I am here for conceptual purity though :D
2021-08-16 14:44:01 <monochrom> I imagine that our Monad class was defined at a time when redundancy was unwanted. Since >>= is more relevant to programmers, and join derivable, the class included >>= only, leaving join as an outside utility.
2021-08-16 14:44:13 <tolarz> What is fmap?
2021-08-16 14:44:20 <c_wraith> tolarz: there was an effort to get join into the monad class a few years back, but it failed due to breaking GND.
2021-08-16 14:44:23 <tolarz> ah googled
2021-08-16 14:44:34 <monochrom> But today you can see that newer classes embrace redundancy, for example Applicative includes both liftA2 and <*>.
2021-08-16 14:45:11 <c_wraith> tolarz: and GeneralizedNewtypeDeriving of Monad is used too much to just break for conceptual purity
2021-08-16 14:46:30 <c_wraith> (I still think GND should be totally reimplemented to copy implementations instead of share dictionaries, so it can typecheck them separately and not need to be limited by special cases.... but that's a long-running debate)
2021-08-16 14:46:34 archpc parts (~archpc@user/archpc) (vibe check)
2021-08-16 14:47:02 × amk quits (~amk@176.61.106.150) (Ping timeout: 268 seconds)
2021-08-16 14:47:39 amk joins (~amk@176.61.106.150)
2021-08-16 14:50:13 ubert joins (~Thunderbi@77.119.161.84.wireless.dyn.drei.com)
2021-08-16 14:54:22 jneira joins (~jneira@28.red-80-28-169.staticip.rima-tde.net)
2021-08-16 14:56:08 hnOsmium0001 joins (uid453710@id-453710.stonehaven.irccloud.com)
2021-08-16 14:58:53 doyougnu joins (~user@c-73-25-202-122.hsd1.or.comcast.net)
2021-08-16 15:03:44 × bgamari_ quits (~bgamari@72.65.101.13) (Ping timeout: 258 seconds)
2021-08-16 15:04:12 bgamari joins (~bgamari@72.65.101.163)
2021-08-16 15:06:40 × dschrempf quits (~dominik@92-249-159-252.pool.digikabel.hu) (Ping timeout: 240 seconds)
2021-08-16 15:16:40 × burnsidesLlama quits (~burnsides@client-8-67.eduroam.oxuni.org.uk) (Remote host closed the connection)
2021-08-16 15:18:51 × dsrt^ quits (~cuolin@12.202.131.133) (Remote host closed the connection)
2021-08-16 15:18:51 × machinedgod quits (~machinedg@135-23-192-217.cpe.pppoe.ca) (Read error: Connection reset by peer)
2021-08-16 15:22:17 machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca)
2021-08-16 15:25:43 pfurla_ joins (~pfurla@ool-182ed2e2.dyn.optonline.net)
2021-08-16 15:26:06 derelict joins (~derelict@user/derelict)
2021-08-16 15:28:39 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-08-16 15:29:10 × pfurla quits (~pfurla@ool-3f8fcb0f.dyn.optonline.net) (Ping timeout: 240 seconds)
2021-08-16 15:33:06 arjun_ joins (~Srain@user/arjun)
2021-08-16 15:36:32 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2021-08-16 15:38:23 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-08-16 15:38:42 × betelgeuse quits (~john2gb@94-225-47-8.access.telenet.be) (Changing host)
2021-08-16 15:38:42 betelgeuse joins (~john2gb@user/john2gb)
2021-08-16 15:43:08 adam1 joins (~adam@220-136-92-161.dynamic-ip.hinet.net)

All times are in UTC.