Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-05-12 11:21:18 <siers> back to work 😅
2021-05-12 11:21:28 <tomsmeding> (I _think_ it works this way)
2021-05-12 11:21:51 × rprije quits (~rprije@110-174-108-199.static.tpgi.com.au) (Quit: Leaving)
2021-05-12 11:22:06 → heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-05-12 11:26:53 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 265 seconds)
2021-05-12 11:26:57 → ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta)
2021-05-12 11:27:33 × frozenErebus quits (~frozenEre@37.231.244.249) (Ping timeout: 240 seconds)
2021-05-12 11:30:38 → tromp joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-12 11:31:24 × ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 252 seconds)
2021-05-12 11:31:53 → darjeeling_ joins (~darjeelin@122.245.120.162)
2021-05-12 11:32:01 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds)
2021-05-12 11:32:35 → merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-05-12 11:34:21 × rayyyy quits (~nanoz@gateway/tor-sasl/nanoz) (Quit: Leaving)
2021-05-12 11:35:28 × tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Ping timeout: 252 seconds)
2021-05-12 11:40:11 → nut joins (~gtk@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr)
2021-05-12 11:46:45 <Cajun> how can i go about installing all dependencies of a project as libraries? ive tried using `cabal install --only-dependencies` but GHC wont use those during compilation and still complains they dont exist. when i install them individually with --lib, it works fine. ive had issues using `cabal install --only-dependencies --lib` and am curious if
2021-05-12 11:46:45 <Cajun> there is an alternative. here is the command output https://paste.tomsmeding.com/vt6MCFSR
2021-05-12 11:47:50 <siers> tomsmeding, I should be able to parallelly compute sparks from [IO a], with parList . sequence?
2021-05-12 11:49:18 <tomsmeding> siers: IO is strict, so sequence evaluates the returned values of the monad computations in the list to WHNF
2021-05-12 11:49:35 <tomsmeding> meaning that 'sequence' will already compute the values sequentially, so parList won't have anything to do anymore
2021-05-12 11:49:47 <tomsmeding> % import Debug.Trace
2021-05-12 11:49:48 <yahb> tomsmeding:
2021-05-12 11:49:57 <tomsmeding> % sequence [trace "hi" (return ()), trace "by" (return ())] >> putStrLn "ok"
2021-05-12 11:49:58 <yahb> tomsmeding: hi; by; ok
2021-05-12 11:50:46 <tomsmeding> hm that might not be a great test
2021-05-12 11:50:59 <siers> you're probably right though
2021-05-12 11:51:01 × olligobber quits (olligobber@gateway/vpn/privateinternetaccess/olligobber) (Remote host closed the connection)
2021-05-12 11:51:19 → Guest87676 joins (~laudiacay@45.162.228.190)
2021-05-12 11:52:31 × patjameson quits (~patjameso@139.28.218.148) (Remote host closed the connection)
2021-05-12 11:53:14 → urodna joins (~urodna@unaffiliated/urodna)
2021-05-12 11:55:04 → heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-05-12 11:55:09 → frozenErebus joins (~frozenEre@37.231.244.249)
2021-05-12 11:56:20 × Guest87676 quits (~laudiacay@45.162.228.190) (Ping timeout: 268 seconds)
2021-05-12 11:56:34 <maerwald> Cajun: try `cabal v1-install`, which has that legacy behavior... however, generally you don't want that but use environments
2021-05-12 11:57:32 <maerwald> --lib in v2 isn't that much used, so I wouldn't be surprised if there are bugs
2021-05-12 11:57:36 → rodriga joins (~quassel@134.204.25.66)
2021-05-12 11:57:53 <ski> % let sequenceInterleaveIO :: [IO a] -> IO [a]; sequenceInterleaveIO acts0 = unsafeInterleaveIO case acts0 of [] -> pure []; act:acts -> liftA2 (:) act (sequenceInterleaveIO acts)
2021-05-12 11:57:53 <yahb> ski:
2021-05-12 11:57:57 <ski> % do us0 <- sequenceInterleaveIO [trace "foo" (pure ()),trace "bar" (pure ())]; trace "baz" case us0 of _:us1 -> trace "quux" case us1 of _:us2 -> trace "frob" case us2 of [] -> pure ()
2021-05-12 11:57:57 <yahb> ski: baz; foo; quux; bar; frob
2021-05-12 11:58:12 <Cajun> maerwald: so is using `cabal run <PRGM NAME>` and compiling it with flags via the .cabal file a safer option? im new to using any hs package manager
2021-05-12 11:58:55 <maerwald> you can also put flags in cabal.project or cabal.project.local
2021-05-12 11:59:15 <ski> siers : although, i guess you wanted them to be independent, so `fmap parList . mapM unsafeInterleaveIO' would be better
2021-05-12 11:59:20 <maerwald> Cajun: https://cabal.readthedocs.io/en/3.4/cabal-project.html
2021-05-12 11:59:26 <ski> (fsvo "better")
2021-05-12 11:59:45 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 265 seconds)
2021-05-12 12:02:17 → geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
2021-05-12 12:06:28 × rond_ quits (531cde7e@bmc126.neoplus.adsl.tpnet.pl) (Quit: Connection closed)
2021-05-12 12:06:48 → ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta)
2021-05-12 12:11:46 × ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 252 seconds)
2021-05-12 12:15:33 → heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-05-12 12:17:43 × berberman quits (~berberman@unaffiliated/berberman) (Ping timeout: 260 seconds)
2021-05-12 12:18:12 → berberman joins (~berberman@unaffiliated/berberman)
2021-05-12 12:19:09 × stree quits (~stree@68.36.8.116) (Ping timeout: 268 seconds)
2021-05-12 12:19:28 × star_cloud quits (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com) (Ping timeout: 252 seconds)
2021-05-12 12:19:46 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds)
2021-05-12 12:20:29 → cr3 joins (~cr3@192-222-143-195.qc.cable.ebox.net)
2021-05-12 12:21:33 → Tuplanolla joins (~Tuplanoll@91-159-68-239.elisa-laajakaista.fi)
2021-05-12 12:21:55 <nut> will cabal build search recursively all .cabal file inside a folder?
2021-05-12 12:22:20 <nut> and run every .cabal file?
2021-05-12 12:26:01 → mrchampion joins (~mrchampio@38.18.109.23)
2021-05-12 12:26:19 → star_cloud joins (~star_clou@ec2-34-220-44-120.us-west-2.compute.amazonaws.com)
2021-05-12 12:26:42 → MMM23 joins (~MMM23@197.253.207.68)
2021-05-12 12:27:10 × frozenErebus quits (~frozenEre@37.231.244.249) (Ping timeout: 252 seconds)
2021-05-12 12:27:30 <statusfailed> Has anyone seen big-O notation with commas before?
2021-05-12 12:27:36 <statusfailed> e.g., O(m, n)
2021-05-12 12:28:57 <[exa]> there are some proofs that use it as a function this way but I find it ugly
2021-05-12 12:29:09 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 240 seconds)
2021-05-12 12:29:19 <[exa]> (usually graph-theoretic ones)
2021-05-12 12:29:38 <hpc> is that supposed to be m+n or m*n?
2021-05-12 12:29:44 <statusfailed> ^ yea that's my question :D
2021-05-12 12:29:46 <hpc> or are these algorithms in a universe with two time dimensions? :P
2021-05-12 12:29:47 × MMM23 quits (~MMM23@197.253.207.68) (Remote host closed the connection)
2021-05-12 12:30:04 <statusfailed> [exa]: I thought it might be max(m, n) too, but not sure
2021-05-12 12:32:04 → stree joins (~stree@68.36.8.116)
2021-05-12 12:32:18 → bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
2021-05-12 12:32:28 → ddellaco_ joins (~ddellacos@ool-44c73afa.dyn.optonline.net)
2021-05-12 12:33:55 × gxt quits (~gxt@gateway/tor-sasl/gxt) (Remote host closed the connection)
2021-05-12 12:34:28 → gxt joins (~gxt@gateway/tor-sasl/gxt)
2021-05-12 12:34:52 <mupf> Because it might be relevant to some people in here: https://twitter.com/mupfelofen/status/1392363905423486979?s=19
2021-05-12 12:36:15 → xcmw joins (~textual@cpe-69-133-55-43.cinci.res.rr.com)
2021-05-12 12:38:21 × ddellaco_ quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Ping timeout: 260 seconds)
2021-05-12 12:38:43 → LKoen_ joins (~LKoen@5.166.9.109.rev.sfr.net)
2021-05-12 12:39:45 → tromp joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-12 12:40:51 → ddellacosta joins (~ddellacos@86.106.143.85)
2021-05-12 12:40:55 × LKoen quits (~LKoen@5.166.9.109.rev.sfr.net) (Ping timeout: 252 seconds)
2021-05-12 12:40:58 → xkapastel joins (uid17782@gateway/web/irccloud.com/x-tetrcihgsohjyxmd)
2021-05-12 12:43:29 × nut quits (~gtk@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 246 seconds)
2021-05-12 12:43:52 × tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Ping timeout: 240 seconds)
2021-05-12 12:45:19 × ddellacosta quits (~ddellacos@86.106.143.85) (Ping timeout: 252 seconds)
2021-05-12 12:45:21 → Lord_of_Life_ joins (~Lord@unaffiliated/lord-of-life/x-0885362)
2021-05-12 12:46:31 × Lord_of_Life quits (~Lord@unaffiliated/lord-of-life/x-0885362) (Ping timeout: 260 seconds)
2021-05-12 12:46:33 → carlomagno joins (~cararell@148.87.23.8)
2021-05-12 12:46:48 Lord_of_Life_ is now known as Lord_of_Life
2021-05-12 12:47:03 <[exa]> statusfailed: mind linking the source?
2021-05-12 12:47:41 <merijn> it's been 3 years already?
2021-05-12 12:48:28 → hyperisco joins (~hyperisco@d192-186-117-226.static.comm.cgocable.net)
2021-05-12 12:50:46 × cr3 quits (~cr3@192-222-143-195.qc.cable.ebox.net) (Ping timeout: 240 seconds)
2021-05-12 12:51:05 gawen_ is now known as gawen
2021-05-12 12:51:15 <statusfailed> [exa]: original is here: https://dl.acm.org/doi/pdf/10.1145/355791.355796

All times are in UTC.