Logs: freenode/#haskell
| 2020-09-26 04:14:27 | hackage | hspec-wai 0.11.0 - Experimental Hspec support for testing WAI applications https://hackage.haskell.org/package/hspec-wai-0.11.0 (SimonHengel) |
| 2020-09-26 04:17:48 | × | sand_dull quits (~theuser@62.182.99.37) (Ping timeout: 260 seconds) |
| 2020-09-26 04:18:43 | → | cole-h joins (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) |
| 2020-09-26 04:19:28 | → | sand_dull joins (~theuser@185.217.69.182) |
| 2020-09-26 04:19:40 | × | perdent quits (~blah@101.175.167.92) (Ping timeout: 272 seconds) |
| 2020-09-26 04:20:18 | → | perdent joins (~blah@101.175.129.224) |
| 2020-09-26 04:21:35 | → | fraktor joins (~walt@129.93.191.18) |
| 2020-09-26 04:22:14 | ← | pankajgodbole parts (~user@122.179.155.150) ("ERC (IRC client for Emacs 26.3)") |
| 2020-09-26 04:22:24 | → | fxg joins (~fxg@unaffiliated/fxg) |
| 2020-09-26 04:23:04 | <fraktor> | Is there an equivalent in `base` to the Map datatype? I need it for a project that will run in an environment I don't control. |
| 2020-09-26 04:23:33 | × | nbloomf quits (~nbloomf@2600:1700:83e0:1f40:cc55:612b:5adc:f6f1) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2020-09-26 04:24:51 | <dsal> | Equivalent in what way? List is there. |
| 2020-09-26 04:25:14 | <dsal> | But if you want something that behaves like Data.Map.Strict, then you'll want Data.Map.Strict. It shouldn't be very hard to argue that as a dependency. :) |
| 2020-09-26 04:25:39 | <fraktor> | True. I am running into an issue where I would like to "update" a map from coordinates to values, and doing that with associative lists is a little tricky. |
| 2020-09-26 04:25:46 | → | eager_lambda joins (~gdrvnl@cpe-76-94-36-134.socal.res.rr.com) |
| 2020-09-26 04:27:05 | <dsal> | That's basically map. |
| 2020-09-26 04:27:42 | <fraktor> | Admission time: this is for homework that will run on a remote system. |
| 2020-09-26 04:27:59 | <dsal> | You could make it average more efficient with a custom update function that wouldn't be that hard. |
| 2020-09-26 04:29:50 | <fraktor> | Yeah, I just wrote one actually. I'm going to assume I can't use Map and then worry about it later. |
| 2020-09-26 04:31:12 | × | justanotheruser quits (~justanoth@unaffiliated/justanotheruser) (Ping timeout: 260 seconds) |
| 2020-09-26 04:31:39 | → | _vaibhavingale_ joins (~Adium@203.188.228.27) |
| 2020-09-26 04:35:57 | → | wei2912 joins (~wei2912@unaffiliated/wei2912) |
| 2020-09-26 04:41:12 | × | eager_lambda quits (~gdrvnl@cpe-76-94-36-134.socal.res.rr.com) (Quit: Leaving) |
| 2020-09-26 04:41:26 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 246 seconds) |
| 2020-09-26 04:41:39 | → | eager_lambda joins (~gdrvnl@cpe-76-94-36-134.socal.res.rr.com) |
| 2020-09-26 04:42:42 | → | W3BV1P3R_ joins (~W3BV1P3R@c-73-5-91-226.hsd1.tn.comcast.net) |
| 2020-09-26 04:42:59 | × | ericsagnes quits (~ericsagne@2405:6580:0:5100:3c:e5e5:4614:3169) (Ping timeout: 272 seconds) |
| 2020-09-26 04:45:53 | <dolio> | It doesn't make a lot of sense to not be allowed to use Data.Map, because it's part of the core libraries. It was just split out of base long ago so that it could be updated independently. |
| 2020-09-26 04:45:57 | × | Rudd0 quits (~Rudd0@185.189.115.108) (Remote host closed the connection) |
| 2020-09-26 04:46:26 | → | totallynotnate joins (~nate@125.161.70.37) |
| 2020-09-26 04:48:14 | × | W3BV1P3R_ quits (~W3BV1P3R@c-73-5-91-226.hsd1.tn.comcast.net) (Quit: Igloo IRC: https://iglooirc.com) |
| 2020-09-26 04:48:40 | → | shafox joins (~shafox@106.51.234.111) |
| 2020-09-26 04:50:05 | → | Rudd0 joins (~Rudd0@185.189.115.103) |
| 2020-09-26 04:50:32 | <fraktor> | dolio: Wait, is it part of the regular GHC distribution? |
| 2020-09-26 04:50:43 | <fraktor> | It's not that I'm not allowed to use it, but rather that I cannot install packages at all. |
| 2020-09-26 04:51:10 | <dolio> | It normally ships with GHC, yeah. |
| 2020-09-26 04:51:37 | → | Faker joins (bad2e02e@186.210.224.46) |
| 2020-09-26 04:52:24 | <dolio> | Although it's entirely possible that someone could choose not to install all the things GHC ships with in e.g. a Linux package manager. |
| 2020-09-26 04:52:46 | <dolio> | It wouldn't be very nice of your professor, th ough. |
| 2020-09-26 04:53:44 | <Faker> | How to turn a lowercase string to uppercase ? |
| 2020-09-26 04:54:37 | <fraktor> | dolio: I think that it's running on Debian? With GHC installed from a package manager. |
| 2020-09-26 04:55:04 | → | ericsagnes joins (~ericsagne@2405:6580:0:5100:4882:fcf:4dee:3726) |
| 2020-09-26 04:55:16 | <c_wraith> | wow. debian's package manager breaks ghc in lots of fun ways! |
| 2020-09-26 04:55:28 | <c_wraith> | hope you never need to profile anything! |
| 2020-09-26 04:55:58 | <dolio> | Well, hopefully they at least install the core libraries. |
| 2020-09-26 05:00:00 | <c_wraith> | yep, looks like it does. |
| 2020-09-26 05:00:02 | → | Saukk joins (~Saukk@2001:998:dc:4a67:1c59:9bb5:b94c:4) |
| 2020-09-26 05:00:43 | → | alexm_ joins (~alexm_@161.8.233.138) |
| 2020-09-26 05:04:57 | → | mmohammadi9812 joins (~mmohammad@2.178.197.45) |
| 2020-09-26 05:04:59 | × | alexm_ quits (~alexm_@161.8.233.138) (Ping timeout: 240 seconds) |
| 2020-09-26 05:07:21 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Quit: leaving) |
| 2020-09-26 05:07:33 | <fraktor> | Even though it's a homework problem, is it okay if I post my code here to get some help with readability? I find it hard to understand but don't really know how to improve that. |
| 2020-09-26 05:08:24 | × | totallynotnate quits (~nate@125.161.70.37) (Quit: WeeChat 2.9) |
| 2020-09-26 05:08:27 | → | snakemasterflex joins (~snakemast@213.100.206.23) |
| 2020-09-26 05:10:11 | <dsal> | Faker: map all the chars to a function that upper cases each char |
| 2020-09-26 05:10:42 | × | urodna quits (~urodna@unaffiliated/urodna) (Quit: urodna) |
| 2020-09-26 05:11:18 | <dsal> | fraktor: "worry about it later" is a great skill |
| 2020-09-26 05:11:36 | <c_wraith> | @where paste |
| 2020-09-26 05:11:37 | <lambdabot> | Help us help you: please paste full code, input and/or output at eg https://paste.tomsmeding.com |
| 2020-09-26 05:12:27 | <perdent> | Anyone here good with ECC/ECDLP crypto? |
| 2020-09-26 05:12:29 | <c_wraith> | fraktor: if you want style advice, put the code there and then give us the link and ask for the kind of advice you'd like |
| 2020-09-26 05:13:04 | <fraktor> | https://paste.tomsmeding.com/7AifjNEN |
| 2020-09-26 05:13:11 | <fraktor> | Mostly it's style advice. |
| 2020-09-26 05:13:18 | × | snakemasterflex quits (~snakemast@213.100.206.23) (Ping timeout: 256 seconds) |
| 2020-09-26 05:13:37 | <c_wraith> | on a first glance, the overall appearance is fine. |
| 2020-09-26 05:13:49 | <c_wraith> | that's roughly what Haskell code should look like |
| 2020-09-26 05:13:50 | <dsal> | You named (Int, Int), use the name :) |
| 2020-09-26 05:14:29 | <fraktor> | Whoops |
| 2020-09-26 05:15:04 | <c_wraith> | oh. I'd rework encodeBoard. that second lambda is too much. |
| 2020-09-26 05:15:06 | <dsal> | `EQ == compare y1 y2` is `y1 == y2` |
| 2020-09-26 05:15:08 | → | josh_ joins (~josh@c-67-164-104-206.hsd1.ca.comcast.net) |
| 2020-09-26 05:15:42 | <dsal> | groupOn would be nice |
| 2020-09-26 05:15:45 | <fraktor> | dsal: Hmm. Interesting |
| 2020-09-26 05:15:45 | <c_wraith> | (and the first lambda happens to be identical to a function you probably already know) |
| 2020-09-26 05:15:52 | <dsal> | @src groupOn |
| 2020-09-26 05:15:53 | <lambdabot> | Source not found. |
| 2020-09-26 05:16:05 | → | alexm_ joins (~alexm_@161.8.233.138) |
| 2020-09-26 05:16:09 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-09-26 05:16:39 | <dsal> | :t groupOn |
| 2020-09-26 05:16:41 | <lambdabot> | error: |
| 2020-09-26 05:16:41 | <lambdabot> | • Variable not in scope: groupOn |
| 2020-09-26 05:16:41 | <lambdabot> | • Perhaps you meant one of these: |
| 2020-09-26 05:16:44 | <dsal> | boo |
| 2020-09-26 05:17:07 | × | berberman quits (~berberman@2408:8207:2565:18d0::a44) (Ping timeout: 240 seconds) |
| 2020-09-26 05:17:16 | <dsal> | :t groupBy |
| 2020-09-26 05:17:18 | <lambdabot> | (a -> a -> Bool) -> [a] -> [[a]] |
| 2020-09-26 05:17:27 | × | SAnnaBot quits (~SAnnaBot@185.204.1.185) (Remote host closed the connection) |
| 2020-09-26 05:17:56 | → | berberman joins (~berberman@2408:8207:256c:1c00:584e:a9ff:fe9b:d3fe) |
| 2020-09-26 05:18:25 | <fraktor> | :t comparing |
| 2020-09-26 05:18:25 | → | mpereira joins (~mpereira@2a02:810d:f40:d96:5151:9344:10a3:da64) |
| 2020-09-26 05:18:26 | <lambdabot> | Ord a => (b -> a) -> b -> b -> Ordering |
| 2020-09-26 05:18:37 | <fraktor> | Kind of? But not really. |
| 2020-09-26 05:18:54 | <dsal> | groupOn kind of rhymes with that |
| 2020-09-26 05:19:39 | <dsal> | It's easy to write with groupBy and it makes that really readable. |
| 2020-09-26 05:20:09 | <fraktor> | :t groupWith |
| 2020-09-26 05:20:10 | <lambdabot> | error: |
| 2020-09-26 05:20:10 | <lambdabot> | • Variable not in scope: groupWith |
| 2020-09-26 05:20:10 | <lambdabot> | • Perhaps you meant one of these: |
| 2020-09-26 05:21:04 | <fraktor> | Interesting. Hackage shows that existing. |
| 2020-09-26 05:21:05 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds) |
All times are in UTC.