Logs: liberachat/#haskell
| 2021-07-21 21:51:49 | <arkanoid> | got it, thanks. So I expect to learn the general way parameters are ordered on the way |
| 2021-07-21 21:52:23 | → | aplainzetakind joins (~johndoe@captainludd.powered.by.lunarbnc.net) |
| 2021-07-21 21:52:36 | × | mikoto-chan quits (~mikoto-ch@ip-213-49-189-31.dsl.scarlet.be) (Ping timeout: 252 seconds) |
| 2021-07-21 21:53:02 | <sm> | arkanoid: usually the "thing to be operated on" is the last argument, so any other parameters come before that |
| 2021-07-21 21:54:05 | → | radw joins (~radw@user/radw) |
| 2021-07-21 21:54:48 | <arkanoid> | I see. So that's exactly the opposite of the world I'm coming from |
| 2021-07-21 21:55:56 | × | takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection) |
| 2021-07-21 21:56:01 | <sm> | really ? what's an example from that world ? |
| 2021-07-21 21:56:22 | × | MQ-17J quits (~MQ-17J@d14-69-206-129.try.wideopenwest.com) (Ping timeout: 245 seconds) |
| 2021-07-21 21:56:32 | <sm> | oh, fooobj.doSomething(a,b) ? |
| 2021-07-21 21:57:38 | <arkanoid> | yeah, classical procedural/OOB, independently from the call syntax the "main" argument is generally the first one |
| 2021-07-21 21:57:41 | → | ph88 joins (~ph88@2a02:8109:9e00:7e5c:c502:f058:b589:c70c) |
| 2021-07-21 21:58:46 | <monochrom> | After you have done quite a bit of "map (logBase 2) [x, y, z]" you will prefer not to have "logBase x 2". |
| 2021-07-21 21:59:09 | <sm> | yes so in haskell you might often see fooDoSomething a b foo, because this plays well with partial application which Logio mentioned. Eg map (fooDoSomething a b) listoffoos works nicely. |
| 2021-07-21 21:59:16 | <arkanoid> | well, I see that exercism uses stack to hide packages, so I cannot "import Data.List.Stack". I'll have to reinvent the wheel! Good |
| 2021-07-21 21:59:35 | × | dunj3 quits (~dunj3@2001:16b8:30c4:6b00:b2db:db95:c4f5:af2c) (Remote host closed the connection) |
| 2021-07-21 21:59:45 | <arkanoid> | thanks for all the hints |
| 2021-07-21 22:00:12 | <janus> | arkanoid: do you know about 'flip' ? |
| 2021-07-21 22:00:35 | <monochrom> | or x.logBase(2) |
| 2021-07-21 22:01:45 | <janus> | or ",".join(array) hehehe |
| 2021-07-21 22:01:50 | <sm> | this probably works, but wouldn't be idiomatic: foo&fooDoSomething a b |
| 2021-07-21 22:01:51 | <monochrom> | haha |
| 2021-07-21 22:02:10 | <janus> | i think that ordering has probably caused the most bikeshedding, measured in hours. if you consider how popular python is |
| 2021-07-21 22:03:59 | → | Null_A joins (~null_a@2601:645:8700:2290:5d44:532d:1cae:2f91) |
| 2021-07-21 22:04:25 | → | MQ-17J joins (~MQ-17J@d14-69-206-129.try.wideopenwest.com) |
| 2021-07-21 22:05:09 | × | Guest68 quits (~Guest68@ppp046176105030.access.hol.gr) (Quit: Client closed) |
| 2021-07-21 22:06:22 | → | Cajun joins (~Cajun@ip98-163-211-112.no.no.cox.net) |
| 2021-07-21 22:06:34 | → | h98 joins (~h98@187.83.249.216.dyn.smithville.net) |
| 2021-07-21 22:08:14 | × | Bayes quits (~Bayes@user/bayes) (Quit: Connection closed) |
| 2021-07-21 22:11:27 | → | pesada joins (~agua@191.177.175.57) |
| 2021-07-21 22:12:04 | × | agua quits (~agua@2804:18:4e:2dda:1:0:4058:6b7c) (Read error: Connection reset by peer) |
| 2021-07-21 22:12:08 | → | Core2909 joins (~agua@2804:18:4e:2dda:1:0:4058:6b7c) |
| 2021-07-21 22:13:57 | × | Null_A quits (~null_a@2601:645:8700:2290:5d44:532d:1cae:2f91) (Remote host closed the connection) |
| 2021-07-21 22:14:00 | × | __monty__ quits (~toonn@user/toonn) (Quit: leaving) |
| 2021-07-21 22:15:29 | × | favonia quits (~favonia@user/favonia) (Ping timeout: 255 seconds) |
| 2021-07-21 22:15:45 | × | pesada quits (~agua@191.177.175.57) (Ping timeout: 255 seconds) |
| 2021-07-21 22:19:01 | × | kayprish quits (~kayprish@cable-188-2-229-172.dynamic.sbb.rs) (Remote host closed the connection) |
| 2021-07-21 22:19:21 | → | favonia joins (~favonia@user/favonia) |
| 2021-07-21 22:19:44 | × | MQ-17J quits (~MQ-17J@d14-69-206-129.try.wideopenwest.com) (Ping timeout: 252 seconds) |
| 2021-07-21 22:19:53 | → | Null_A joins (~null_a@2601:645:8700:2290:c911:1c05:b98d:d069) |
| 2021-07-21 22:20:18 | <dsal> | arkanoid: You can add packages, but I don't know what Data.List.Stack is, so it may not be actively hiding it from you. |
| 2021-07-21 22:20:45 | <geekosaur> | are you sure that's not Data.List.Split? |
| 2021-07-21 22:22:04 | × | zfnmxt quits (~zfnmxtzfn@2001:470:69fc:105::2b32) (Quit: Reconnecting) |
| 2021-07-21 22:22:21 | → | zfnmxt joins (~zfnmxtzfn@2001:470:69fc:105::2b32) |
| 2021-07-21 22:22:34 | <arkanoid> | sorry, I mistyped, I just mean Data.List.Split |
| 2021-07-21 22:23:21 | × | zfnmxt quits (~zfnmxtzfn@2001:470:69fc:105::2b32) (Client Quit) |
| 2021-07-21 22:23:28 | → | MQ-17J joins (~MQ-17J@d14-69-206-129.try.wideopenwest.com) |
| 2021-07-21 22:23:35 | × | tomboy64 quits (~tomboy64@user/tomboy64) (Ping timeout: 255 seconds) |
| 2021-07-21 22:23:37 | → | zfnmxt joins (~zfnmxtzfn@2001:470:69fc:105::2b32) |
| 2021-07-21 22:23:57 | <geekosaur> | install the "split" package |
| 2021-07-21 22:23:58 | × | zfnmxt quits (~zfnmxtzfn@2001:470:69fc:105::2b32) (Changing host) |
| 2021-07-21 22:23:58 | → | zfnmxt joins (~zfnmxtzfn@user/zfnmxt) |
| 2021-07-21 22:24:23 | × | zangi quits (~zangi@103.154.230.230) (Ping timeout: 265 seconds) |
| 2021-07-21 22:25:10 | → | zangi joins (~zangi@103.154.230.230) |
| 2021-07-21 22:25:53 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 252 seconds) |
| 2021-07-21 22:26:22 | × | dextaa quits (~DV@37.201.214.197) (Ping timeout: 246 seconds) |
| 2021-07-21 22:27:45 | <arkanoid> | and also edit the .cabal file. I might be cheating, but that's ok |
| 2021-07-21 22:27:48 | → | waleee joins (~waleee@h-98-128-228-119.na.cust.bahnhof.se) |
| 2021-07-21 22:27:56 | <zangi> | can I use monad to repeat f in this `(f . f . f . f) x`? |
| 2021-07-21 22:28:06 | → | dextaa joins (~DV@aftr-37-201-214-197.unity-media.net) |
| 2021-07-21 22:28:52 | → | ph88^ joins (~ph88@ip5f5af6fd.dynamic.kabel-deutschland.de) |
| 2021-07-21 22:30:22 | <sm> | it doesn't apparently require a monad |
| 2021-07-21 22:30:30 | <sm> | https://hoogle.haskell.org/?hoogle=Int+-%3E+%28a+-%3E+a%29+-%3E+a+-%3E+a&scope=set%3Astackage shows some implementations |
| 2021-07-21 22:30:40 | × | MQ-17J quits (~MQ-17J@d14-69-206-129.try.wideopenwest.com) (Ping timeout: 265 seconds) |
| 2021-07-21 22:30:51 | × | drd quits (~drd@93-39-151-19.ip76.fastwebnet.it) (Ping timeout: 258 seconds) |
| 2021-07-21 22:30:58 | → | MQ-17J joins (~MQ-17J@d14-69-206-129.try.wideopenwest.com) |
| 2021-07-21 22:32:08 | × | ph88 quits (~ph88@2a02:8109:9e00:7e5c:c502:f058:b589:c70c) (Ping timeout: 255 seconds) |
| 2021-07-21 22:33:16 | <ph88^> | i made this Dockerfile to build haskell static binary https://bpa.st/LNHQ when i run the command stack build --ghc-options '-static -optl-static -split-sections' --docker --docker-image "haskell-build" i get this message https://bpa.st/6OFA how can i make it work with the right version ? |
| 2021-07-21 22:33:41 | <monochrom> | Haha I found a typo in the Haskell 2010 Report. ascSymbol has U+22C6 ⋆ where it should have U+002A * |
| 2021-07-21 22:34:23 | × | Vajb quits (~Vajb@hag-jnsbng11-58c3a1-224.dhcp.inet.fi) (Remote host closed the connection) |
| 2021-07-21 22:34:41 | <ph88^> | maerwald, ^ ? |
| 2021-07-21 22:35:09 | <sm> | what's your platform ph88^ ? |
| 2021-07-21 22:35:27 | → | Vajb joins (~Vajb@hag-jnsbng11-58c3a1-224.dhcp.inet.fi) |
| 2021-07-21 22:35:28 | <ph88^> | for building the docker image ? ubuntu 20.04 inside of virtualbox |
| 2021-07-21 22:35:30 | × | MQ-17J quits (~MQ-17J@d14-69-206-129.try.wideopenwest.com) (Ping timeout: 265 seconds) |
| 2021-07-21 22:35:47 | <zangi> | sm: what if f in `nest n f x` has type `Monad m => a -> m a` |
| 2021-07-21 22:35:59 | <sm> | what does `arch` say ? |
| 2021-07-21 22:36:31 | <sm> | seems odd that there wouldn't be a ghc 8.10 binary. Is your stack up to date ? |
| 2021-07-21 22:37:00 | <sm> | maybe it's confused by this -ncurses6 suffix |
| 2021-07-21 22:37:55 | <maerwald[m]> | ph88^: I've never used stack --docker |
| 2021-07-21 22:38:03 | <ph88^> | sm arch run where ? Maybe you missed that i'm building from a docker container ? |
| 2021-07-21 22:38:10 | → | tomboy64 joins (~tomboy64@user/tomboy64) |
| 2021-07-21 22:38:19 | → | MQ-17J joins (~MQ-17J@d14-69-206-129.try.wideopenwest.com) |
| 2021-07-21 22:38:32 | <ph88^> | maerwald[m], what would you do ? download your project code and do the build with Dockerfile commands ? |
| 2021-07-21 22:38:34 | <sm> | ph88^: wherever you're running that stack command, run `arch` ? |
| 2021-07-21 22:38:50 | <ph88^> | sm x86_64 |
| 2021-07-21 22:38:56 | <maerwald[m]> | ph88^: yeah |
| 2021-07-21 22:39:36 | <maerwald[m]> | I've done that before. It works. |
| 2021-07-21 22:40:38 | <maerwald[m]> | ph88^: also, you need to adjust PATH |
| 2021-07-21 22:41:04 | × | Tuplanolla quits (~Tuplanoll@91-159-68-239.elisa-laajakaista.fi) (Quit: Leaving.) |
| 2021-07-21 22:41:28 | <ph88^> | maybe because i never ran this command, thus no system ghc was found inside docker container ? https://gist.github.com/hasufell/f0893abfbba63ac4ea40feb0520946ee#file-dockerfile-L10 |
| 2021-07-21 22:41:57 | <ph88^> | maerwald[m], how to adjust path ? |
| 2021-07-21 22:42:20 | <ph88^> | i'm not sure between the difference of ghcup set ghc and these commands here https://github.com/haskell-works/cabal-cache/blob/66252484c7d0dbcb79b082ac95cb83213cdc892f/.circleci/config.yml#L71-L73 |
| 2021-07-21 22:42:35 | × | Matthias1 quits (~Matthias1@cpe-76-170-236-166.socal.res.rr.com) (Remote host closed the connection) |
| 2021-07-21 22:43:21 | × | shutdown_-h_now quits (~arjan@82-75-187-100.cable.dynamic.v4.ziggo.nl) (Ping timeout: 268 seconds) |
| 2021-07-21 22:43:45 | × | DNH quits (~DNH@2a02:8108:1100:16d8:808b:9f4a:c222:7def) (Quit: Textual IRC Client: www.textualapp.com) |
| 2021-07-21 22:43:57 | <ph88^> | building the container with ghcup seems to have gone well btw https://bpa.st/L3MA |
| 2021-07-21 22:45:38 | × | xff0x_ quits (~xff0x@2001:1a81:530d:8900:cddd:a545:4e9e:a55d) (Ping timeout: 255 seconds) |
| 2021-07-21 22:46:15 | → | zebrag joins (~chris@user/zebrag) |
| 2021-07-21 22:46:32 | → | xff0x_ joins (~xff0x@2001:1a81:530d:8900:7530:d6ba:9d47:69d1) |
All times are in UTC.