Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-05-17 02:18:58 × ixlun quits (~user@109.249.184.235) (Read error: Connection reset by peer)
2021-05-17 02:22:25 × ddellacosta quits (~ddellacos@83.143.246.105) (Ping timeout: 268 seconds)
2021-05-17 02:22:31 <Axman6> searching for rate limit on hackage is likely to find some good results
2021-05-17 02:23:33 finn_elija is now known as Guest86616
2021-05-17 02:23:33 finn_elija joins (~finn_elij@gateway/tor-sasl/finnelija/x-67402716)
2021-05-17 02:24:34 × conal quits (~conal@64.71.133.70) (Ping timeout: 245 seconds)
2021-05-17 02:25:39 <Axman6> such as the rate-limit package: https://hackage.haskell.org/package/rate-limit-1.4.2/docs/Control-RateLimit.html
2021-05-17 02:25:49 × sheepduck quits (~sheepduck@2607:fea8:2a60:b700::cafd) (Ping timeout: 245 seconds)
2021-05-17 02:26:21 × Guest86616 quits (~finn_elij@gateway/tor-sasl/finnelija/x-67402716) (Ping timeout: 240 seconds)
2021-05-17 02:26:26 ixlun joins (~user@109.249.184.235)
2021-05-17 02:30:24 conal joins (~conal@64.71.133.70)
2021-05-17 02:31:59 wei2912 joins (~wei2912@unaffiliated/wei2912)
2021-05-17 02:31:59 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-05-17 02:33:25 <cdsmith> Wondering if there's an answer I'm missing here: http://hackage.haskell.org/package/doctest works, but hpc doesn't show the resulting test coverage. The alternative of testing everything twice isn't very appealing either. Anyone know a way to extract the doctests at build time instead of at runtime?
2021-05-17 02:37:11 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds)
2021-05-17 02:39:38 <Axman6> does adding -fhpc do the testsuite's compiler flags do anything?
2021-05-17 02:40:01 <Axman6> "Alternatively you can pass any GHC options to Doctest, e.g.:
2021-05-17 02:40:01 <Axman6> doctest -XCPP Foo.hs"
2021-05-17 02:40:17 <geekosaur> @hackage cabal-doctest ?
2021-05-17 02:40:17 <lambdabot> https://hackage.haskell.org/package/cabal-doctest ?
2021-05-17 02:41:51 <cdsmith> Hmm, I didn't try that. I will.
2021-05-17 02:42:14 <Axman6> looks like hpc .tix files can be combined too
2021-05-17 02:43:31 ddellaco_ joins (~ddellacos@ool-44c73afa.dyn.optonline.net)
2021-05-17 02:45:24 × machinedgod quits (~machinedg@24.105.81.50) (Ping timeout: 245 seconds)
2021-05-17 02:45:27 <Axman6> while searching I came across a page listing the compilers available on a Queensland university's HPC environment, and was surprised to see GHC at the top of the list (though, the description of "GHC is a state-of-the-art, open source, compiler" and "Available versions: 7.6.2" made me chuckle a bit). I wonder who got that installed on there
2021-05-17 02:45:33 <cdsmith> Just adding -fhpc didn't fix it. That's not too surprising, since I think cabal does a bunch of work to decide where to write the tix files and then generate an HTML report with the right ones.
2021-05-17 02:45:49 × theDon quits (~td@94.134.91.128) (Ping timeout: 245 seconds)
2021-05-17 02:46:47 justsomeguy joins (~justsomeg@unaffiliated/--/x-3805311)
2021-05-17 02:47:56 theDon joins (~td@94.134.91.15)
2021-05-17 02:48:19 × conal quits (~conal@64.71.133.70) (Ping timeout: 245 seconds)
2021-05-17 02:48:58 × ddellaco_ quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Ping timeout: 265 seconds)
2021-05-17 02:49:13 × plutoniix quits (~q@node-ufy.pool-125-24.dynamic.totinternet.net) (Quit: Leaving)
2021-05-17 02:49:59 × aVikingTrex quits (~aVikingTr@2001:8003:340d:d00:b2de:b98:7a93:b0ea) (Ping timeout: 250 seconds)
2021-05-17 02:50:24 conal joins (~conal@64.71.133.70)
2021-05-17 02:51:13 ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta)
2021-05-17 02:51:44 × conal quits (~conal@64.71.133.70) (Read error: Connection reset by peer)
2021-05-17 02:52:55 mayleesia joins (~mayleesia@dynamic-077-013-233-125.77.13.pool.telefonica.de)
2021-05-17 02:53:48 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 265 seconds)
2021-05-17 02:55:46 × ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 252 seconds)
2021-05-17 02:56:06 × maylee quits (~mayleesia@x4dbf5c18.dyn.telefonica.de) (Ping timeout: 252 seconds)
2021-05-17 03:01:54 conal joins (~conal@64.71.133.70)
2021-05-17 03:01:55 tromp joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-17 03:05:36 × conal quits (~conal@64.71.133.70) (Read error: Connection reset by peer)
2021-05-17 03:06:13 × tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Ping timeout: 252 seconds)
2021-05-17 03:06:21 × letmein quits (~ircclient@2601:1c1:4200:938f:cd8d:4e48:d5b9:4929) (Quit: letmein)
2021-05-17 03:06:41 letmein joins (~ircclient@2601:1c1:4200:938f:cd8d:4e48:d5b9:4929)
2021-05-17 03:07:19 × letmein quits (~ircclient@2601:1c1:4200:938f:cd8d:4e48:d5b9:4929) (Client Quit)
2021-05-17 03:09:26 conal joins (~conal@64.71.133.70)
2021-05-17 03:09:39 patlv joins (~patlv@unaffiliated/patlv)
2021-05-17 03:09:48 tromp joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-17 03:10:21 × tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Remote host closed the connection)
2021-05-17 03:10:23 × conal quits (~conal@64.71.133.70) (Read error: Connection reset by peer)
2021-05-17 03:10:24 × electricityZZZZ quits (~electrici@157-131-250-97.fiber.dynamic.sonic.net) (Ping timeout: 252 seconds)
2021-05-17 03:11:44 × xkapastel quits (uid17782@gateway/web/irccloud.com/x-vnzmonwkhmlwwzsx) (Quit: Connection closed for inactivity)
2021-05-17 03:12:38 tromp joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-17 03:13:03 nicholasbulka joins (~nicholasb@2601:900:4301:da0:b0b3:4831:47cc:ab06)
2021-05-17 03:14:38 tromp_ joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-17 03:15:38 justsomeguy parts (~justsomeg@unaffiliated/--/x-3805311) ("WeeChat 3.0.1")
2021-05-17 03:16:07 × gzj quits (~gzj@unaffiliated/gzj) (Remote host closed the connection)
2021-05-17 03:16:27 gzj joins (~gzj@unaffiliated/gzj)
2021-05-17 03:16:28 × wei2912 quits (~wei2912@unaffiliated/wei2912) (Remote host closed the connection)
2021-05-17 03:16:41 × tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Ping timeout: 240 seconds)
2021-05-17 03:16:43 × tromp_ quits (~tromp@dhcp-077-249-230-040.chello.nl) (Read error: Connection reset by peer)
2021-05-17 03:17:08 wei2912 joins (~wei2912@unaffiliated/wei2912)
2021-05-17 03:17:13 tromp joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-17 03:17:29 × nicholasbulka quits (~nicholasb@2601:900:4301:da0:b0b3:4831:47cc:ab06) (Ping timeout: 245 seconds)
2021-05-17 03:17:33 conal joins (~conal@64.71.133.70)
2021-05-17 03:18:17 × nbloomf quits (~nbloomf@2600:1700:ad14:3020:5d48:8adb:4f7a:141b) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2021-05-17 03:20:13 tromp_ joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-17 03:20:14 × tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Read error: Connection reset by peer)
2021-05-17 03:21:11 × olligobber quits (olligobber@gateway/vpn/privateinternetaccess/olligobber) (Ping timeout: 240 seconds)
2021-05-17 03:23:42 olligobber joins (olligobber@gateway/vpn/privateinternetaccess/olligobber)
2021-05-17 03:24:41 × tromp_ quits (~tromp@dhcp-077-249-230-040.chello.nl) (Ping timeout: 240 seconds)
2021-05-17 03:26:58 tromp joins (~tromp@dhcp-077-249-230-040.chello.nl)
2021-05-17 03:28:47 guest517 joins (~user@49.5.6.87)
2021-05-17 03:30:22 <guest517> how to quickly check if a string contain several strings by order? like "I want to eat chicken for lunch" contain ["eat", "chicken", "lunch"]
2021-05-17 03:31:04 <guest517> I could use splitOn or splitAt to check and match, but that's ugly
2021-05-17 03:31:11 × tromp quits (~tromp@dhcp-077-249-230-040.chello.nl) (Ping timeout: 240 seconds)
2021-05-17 03:31:15 <monochrom> Not sure "quickly" means "code up quickly" or "runs quickly"
2021-05-17 03:31:17 <guest517> I wonder is there an elegent way
2021-05-17 03:31:41 ddellacosta joins (~ddellacos@86.106.143.178)
2021-05-17 03:31:52 <guest517> monochrom: runs quickly
2021-05-17 03:31:59 <Axman6> @hoogle [a] -> [a] -> ([a],[a])
2021-05-17 03:32:00 <lambdabot> Data.List.Match splitAt :: [b] -> [a] -> ([a], [a])
2021-05-17 03:32:00 <lambdabot> Util splitAtList :: [b] -> [a] -> ([a], [a])
2021-05-17 03:32:00 <lambdabot> Util zipAndUnzip :: [a] -> [b] -> ([a], [b])
2021-05-17 03:32:04 × conal quits (~conal@64.71.133.70) (Ping timeout: 245 seconds)
2021-05-17 03:32:11 <monochrom> I don't know of the most efficient algorithm.
2021-05-17 03:32:42 <Axman6> looks like splitAt and a recursive call over the list of wanted words would work - I doubt there's amore efficient way without using Text
2021-05-17 03:33:18 <monochrom> Or rather, I suspect that efficient algorithms are ugly.
2021-05-17 03:33:59 <Axman6> compile a regex =)
2021-05-17 03:34:24 <Axman6> "eat.+chicken.+lunch"
2021-05-17 03:34:27 <monochrom> This is worse than most people's idea of regex, since this is "and" rather than "or".
2021-05-17 03:34:50 <guest517> check if the string contain all the elements, then check if the index elements in the string sequenced by order
2021-05-17 03:35:08 <monochrom> Also I don't think the intention is as easy as "verify that eat, check, lunch occur in that order"
2021-05-17 03:35:50 <monochrom> Anyway, since this is "and", you are looking at constructing a product automaton.
2021-05-17 03:35:58 <monochrom> Ugly as f**k.
2021-05-17 03:36:24 <Axman6> I mean, as much as I hate to suggest it, a regex would let you get that information out directly. "(eat|are).+(chicken|beef|tofu).+(lunch|dinner|breakfast)" would give you the information that it matched, and the ability to inspect each match
2021-05-17 03:36:26 × ddellacosta quits (~ddellacos@86.106.143.178) (Ping timeout: 252 seconds)
2021-05-17 03:36:52 <Axman6> s/are/ate

All times are in UTC.