Logs: freenode/#haskell
| 2020-11-21 00:10:06 | <texasmynsted> | I can get the tasty options to be honored at compile-time but not at run time. I do not know where the runtime they describe exists. |
| 2020-11-21 00:10:19 | <texasmynsted> | I can only execute the Tasty tests via "cabal test" |
| 2020-11-21 00:10:28 | × | hlisp quits (~hlisp@114.246.35.11) (Ping timeout: 260 seconds) |
| 2020-11-21 00:12:28 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-11-21 00:12:32 | × | cawfee quits (chiya@2406:3003:2077:2341::babe) (Ping timeout: 260 seconds) |
| 2020-11-21 00:14:04 | × | p-core quits (~Thunderbi@2001:718:1e03:5128:2ab7:7f35:48a1:8515) (Ping timeout: 240 seconds) |
| 2020-11-21 00:14:32 | × | gehmehgeh quits (~ircuser1@gateway/tor-sasl/gehmehgeh) (Quit: Leaving) |
| 2020-11-21 00:16:56 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds) |
| 2020-11-21 00:17:09 | × | elfets quits (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de) (Ping timeout: 256 seconds) |
| 2020-11-21 00:17:56 | × | bbro quits (~bbro@c-24-4-176-204.hsd1.ca.comcast.net) (Ping timeout: 240 seconds) |
| 2020-11-21 00:18:26 | → | olligobber joins (olligobber@gateway/vpn/privateinternetaccess/olligobber) |
| 2020-11-21 00:19:26 | → | cosimone joins (~cosimone@5.170.240.6) |
| 2020-11-21 00:19:26 | × | chkno quits (~chkno@75-7-2-127.lightspeed.sntcca.sbcglobal.net) (Read error: Connection reset by peer) |
| 2020-11-21 00:19:27 | × | moet quits (~moet@mobile-166-137-178-165.mycingular.net) (Quit: leaving) |
| 2020-11-21 00:20:04 | → | chkno joins (~chkno@75-7-2-127.lightspeed.sntcca.sbcglobal.net) |
| 2020-11-21 00:20:31 | → | cawfee joins (chiya@2406:3003:2077:2341::babe) |
| 2020-11-21 00:22:09 | × | vsiddharth quits (~user@135-180-144-154.fiber.dynamic.sonic.net) (Ping timeout: 260 seconds) |
| 2020-11-21 00:26:14 | → | Feuermagier joins (~Feuermagi@213.178.26.41) |
| 2020-11-21 00:27:03 | × | Varis quits (~Tadas@unaffiliated/varis) (Remote host closed the connection) |
| 2020-11-21 00:29:36 | <jcd> | How do you loop over a list of IO actions? |
| 2020-11-21 00:30:36 | <monochrom> | the same way I loop over a list. |
| 2020-11-21 00:32:26 | → | christo joins (~chris@81.96.113.213) |
| 2020-11-21 00:33:45 | → | sh9 joins (~sh9@softbank060116136158.bbtec.net) |
| 2020-11-21 00:34:18 | × | julm quits (~julm@revolt129.abo.ilico.org) (Quit: Reconnecting) |
| 2020-11-21 00:34:34 | → | julm joins (~julm@revolt129.abo.ilico.org) |
| 2020-11-21 00:35:25 | → | Varis joins (~Tadas@unaffiliated/varis) |
| 2020-11-21 00:36:24 | <sm[m]> | texasmynsted: have a look at cabal test --help, there is --test-option[s] |
| 2020-11-21 00:36:55 | <sm[m]> | or you can probably run the test executable directly with something like cabal exec -- NAMEOFTESTEXE ... |
| 2020-11-21 00:39:40 | <sm[m]> | incidentally, you can also build your test suite into your main app: https://github.com/simonmichael/hledger/blob/master/hledger/Hledger/Cli/Commands.hs#L270 |
| 2020-11-21 00:40:34 | → | vhs_ joins (~vhs@41.46.228.159) |
| 2020-11-21 00:40:53 | → | nbloomf joins (~nbloomf@2600:1700:ad14:3020:154:88ea:8f88:a5f) |
| 2020-11-21 00:41:46 | × | vhs quits (~vhs@41.239.254.104) (Ping timeout: 246 seconds) |
| 2020-11-21 00:42:20 | → | minimario joins (2fe3e53b@047-227-229-059.res.spectrum.com) |
| 2020-11-21 00:42:36 | <minimario> | tooling question: anyone come across the issue where "quick fix" on vscode loops and never fixes anything |
| 2020-11-21 00:43:13 | → | sh91 joins (~sh9@softbank060116136158.bbtec.net) |
| 2020-11-21 00:43:26 | × | cr3 quits (~cr3@192-222-143-195.qc.cable.ebox.net) (Quit: leaving) |
| 2020-11-21 00:43:34 | × | revprez_anzio quits (~revprez_a@pool-108-49-213-40.bstnma.fios.verizon.net) (Ping timeout: 256 seconds) |
| 2020-11-21 00:44:24 | → | revprez_anzio joins (~revprez_a@pool-108-49-213-40.bstnma.fios.verizon.net) |
| 2020-11-21 00:44:29 | × | sh91 quits (~sh9@softbank060116136158.bbtec.net) (Client Quit) |
| 2020-11-21 00:45:24 | × | sh9 quits (~sh9@softbank060116136158.bbtec.net) (Ping timeout: 265 seconds) |
| 2020-11-21 00:48:28 | × | da39a3ee5e6b4b0d quits (~da39a3ee5@mx-ll-171.5.161-165.dynamic.3bb.co.th) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2020-11-21 00:49:27 | × | MasseR quits (~MasseR@51.15.143.128) (Ping timeout: 256 seconds) |
| 2020-11-21 00:51:48 | → | MasseR joins (~MasseR@51.15.143.128) |
| 2020-11-21 00:52:56 | → | da39a3ee5e6b4b0d joins (~da39a3ee5@2403:6200:8876:6c06:f0fd:283a:1f37:de16) |
| 2020-11-21 00:53:22 | × | siloxid quits (~user@unaffiliated/siloxid) (Ping timeout: 260 seconds) |
| 2020-11-21 00:54:26 | → | siloxid joins (~user@unaffiliated/siloxid) |
| 2020-11-21 00:55:26 | → | xnt14 joins (~xnt14@185.204.1.185) |
| 2020-11-21 00:55:54 | <jcd> | |
| 2020-11-21 00:55:54 | <jcd> | I have an list of IO-contexted values, '[IO a]'. I have a function that removes a context 'B'. According to the documentation, I should be able to use the context-removing function on the list, but I can't. The IO context remains intact. Is there a special function/method/technique that I'm not using? |
| 2020-11-21 00:57:05 | <glguy> | jcd: You can't "remove" IO, you can only sequence IO actions together to make more interesting IO actions |
| 2020-11-21 00:57:23 | <glguy> | I don't know what context 'B' is though |
| 2020-11-21 00:58:40 | <Ariakenom> | " the documentation" "the context-removing function" |
| 2020-11-21 00:58:45 | <Ariakenom> | what are these? |
| 2020-11-21 00:58:51 | <jcd> | https://paste.tomsmeding.com/k8d1Va08 |
| 2020-11-21 00:59:05 | × | bitmapper quits (uid464869@gateway/web/irccloud.com/x-uhdfbowqpmvzztxz) (Quit: Connection closed for inactivity) |
| 2020-11-21 00:59:33 | <jcd> | The library I'm using is Network.HTTP.Client. |
| 2020-11-21 00:59:48 | <glguy> | jcd: let responses = map (get_response manager) search_urls -- becomes -- responses <- mapM (get_response manager) search_urls |
| 2020-11-21 01:00:07 | × | AlterEgo- quits (~ladew@124-198-158-163.dynamic.caiway.nl) (Quit: Leaving) |
| 2020-11-21 01:00:10 | <monochrom> | You should be looking into mapM_ or mapM, instead of map. |
| 2020-11-21 01:00:15 | × | vicfred quits (~vicfred@unaffiliated/vicfred) (Quit: Leaving) |
| 2020-11-21 01:00:47 | × | todda7 quits (~torstein@ppp-2-84-17-53.home.otenet.gr) (Read error: Connection reset by peer) |
| 2020-11-21 01:00:47 | <Ariakenom> | you can use ghci to do things interactively |
| 2020-11-21 01:01:16 | → | todda7 joins (~torstein@ppp-2-84-17-53.home.otenet.gr) |
| 2020-11-21 01:02:06 | <Sose> | is Data.List.intersect really slow on long lists? any alternatives? I have two lists that are both around 150k elements and I'm trying to find the intersections :D |
| 2020-11-21 01:03:08 | <monochrom> | Or even better, write your own recursion, so you understand why map doesn't cut it. |
| 2020-11-21 01:03:30 | <glguy> | Sose: it's checking elements together pairwise, so yes it'll be quite slow for anything more than a handful of elements |
| 2020-11-21 01:03:42 | <glguy> | Sose: to do better you'll need something like Data.Set |
| 2020-11-21 01:03:58 | <monochrom> | intersect is quadratic time |
| 2020-11-21 01:04:10 | → | hlisp joins (~hlisp@114.246.35.11) |
| 2020-11-21 01:04:28 | <glguy> | or to sort the lists and write a function that takes advantage of the fact that the lists are sorted to do it in one pass through the two lists |
| 2020-11-21 01:04:28 | <Sose> | alright, I'll look into Data.Set |
| 2020-11-21 01:04:33 | <monochrom> | My list is below two hundread, it's fast enough for me. |
| 2020-11-21 01:05:30 | <jcd> | I see! mapM is under 'Basic Monad functions'. Ouch haha. Okay thank you! |
| 2020-11-21 01:05:48 | → | bbro joins (~bbro@c-24-4-176-204.hsd1.ca.comcast.net) |
| 2020-11-21 01:06:07 | × | christo quits (~chris@81.96.113.213) (Remote host closed the connection) |
| 2020-11-21 01:08:37 | × | hlisp quits (~hlisp@114.246.35.11) (Ping timeout: 264 seconds) |
| 2020-11-21 01:10:54 | → | christo joins (~chris@81.96.113.213) |
| 2020-11-21 01:13:05 | → | hlisp joins (~hlisp@114.246.35.11) |
| 2020-11-21 01:13:54 | × | bbro quits (~bbro@c-24-4-176-204.hsd1.ca.comcast.net) (Ping timeout: 272 seconds) |
| 2020-11-21 01:15:21 | × | christo quits (~chris@81.96.113.213) (Ping timeout: 260 seconds) |
| 2020-11-21 01:15:21 | × | tabemann quits (~travisb@172-13-49-137.lightspeed.milwwi.sbcglobal.net) (Read error: Connection reset by peer) |
| 2020-11-21 01:17:12 | → | christo joins (~chris@81.96.113.213) |
| 2020-11-21 01:18:21 | × | hlisp quits (~hlisp@114.246.35.11) (Ping timeout: 256 seconds) |
| 2020-11-21 01:18:33 | → | tabemann joins (~tabemann@172-13-49-137.lightspeed.milwwi.sbcglobal.net) |
| 2020-11-21 01:19:22 | <Sose> | okay, just doing a dumb fromList, intersection and toList with Set takes the time required from minutes to seconds.. thanks again |
| 2020-11-21 01:20:35 | → | jonatanb joins (jonatanb@gateway/vpn/protonvpn/jonatanb) |
| 2020-11-21 01:21:25 | × | Tuplanolla quits (~Tuplanoll@91-159-68-239.elisa-laajakaista.fi) (Quit: Leaving.) |
| 2020-11-21 01:23:30 | × | chele quits (~chele@ip5b416ea2.dynamic.kabel-deutschland.de) (Remote host closed the connection) |
| 2020-11-21 01:23:44 | × | justanotheruser quits (~justanoth@unaffiliated/justanotheruser) (Ping timeout: 240 seconds) |
| 2020-11-21 01:24:45 | × | jonatanb quits (jonatanb@gateway/vpn/protonvpn/jonatanb) (Ping timeout: 240 seconds) |
| 2020-11-21 01:26:01 | × | Maxdamantus quits (~Maxdamant@unaffiliated/maxdamantus) (Ping timeout: 264 seconds) |
| 2020-11-21 01:27:12 | × | nbloomf quits (~nbloomf@2600:1700:ad14:3020:154:88ea:8f88:a5f) (Ping timeout: 260 seconds) |
| 2020-11-21 01:27:31 | × | minimario quits (2fe3e53b@047-227-229-059.res.spectrum.com) (Remote host closed the connection) |
| 2020-11-21 01:27:48 | → | fubu joins (2fe3e53b@047-227-229-059.res.spectrum.com) |
| 2020-11-21 01:27:52 | <fubu> | Hello! |
| 2020-11-21 01:28:13 | <fubu> | Why doesn't this function work? |
| 2020-11-21 01:28:14 | <fubu> | fibs2 = 1 : 1 : (head $ zipWith (+) fibs2 (tail fibs2)) |
| 2020-11-21 01:29:07 | → | sh9 joins (~sh9@softbank060116136158.bbtec.net) |
| 2020-11-21 01:29:41 | → | nbloomf joins (~nbloomf@2600:1700:ad14:3020:a4db:c497:ce73:79ee) |
| 2020-11-21 01:29:42 | × | Tario quits (~Tario@201.192.165.173) (Read error: Connection reset by peer) |
All times are in UTC.