Logs: liberachat/#haskell
| 2021-08-06 12:37:06 | × | xff0x_ quits (~xff0x@2001:1a81:52e3:2500:1069:a9de:7caa:cf07) (Remote host closed the connection) |
| 2021-08-06 12:37:22 | → | xff0x_ joins (~xff0x@2001:1a81:52e3:2500:8766:3fda:9e97:b8d5) |
| 2021-08-06 12:38:05 | <lechner> | Hi, what's everone's favorite command line option parser, please? Thanks! |
| 2021-08-06 12:38:06 | × | azeem quits (~azeem@176.201.8.137) (Ping timeout: 250 seconds) |
| 2021-08-06 12:38:29 | <[exa]> | lechner: optparse-applicative |
| 2021-08-06 12:38:37 | <maerwald[m]> | haskell or in general? |
| 2021-08-06 12:38:55 | <lechner> | here |
| 2021-08-06 12:39:01 | <lechner> | [exa]: thanks! |
| 2021-08-06 12:39:02 | <maerwald[m]> | here? |
| 2021-08-06 12:39:18 | <lechner> | hi my name is dory :0 |
| 2021-08-06 12:39:31 | <maerwald[m]> | nice to meet you dory |
| 2021-08-06 12:39:42 | <lechner> | i meant in haskell |
| 2021-08-06 12:40:04 | <maerwald[m]> | I don't like any of them, really |
| 2021-08-06 12:40:18 | → | mikoto-chan joins (~mikoto-ch@ip-193-121-10-50.dsl.scarlet.be) |
| 2021-08-06 12:40:21 | <lechner> | and i thought it was early for me |
| 2021-08-06 12:40:21 | → | azeem joins (~azeem@176.201.8.137) |
| 2021-08-06 12:40:46 | <[exa]> | you know the routine |
| 2021-08-06 12:40:52 | <[exa]> | coffee >>= back to work |
| 2021-08-06 12:40:58 | <lechner> | maerwald[m]: you only write libraries? |
| 2021-08-06 12:41:05 | <maerwald[m]> | no |
| 2021-08-06 12:41:26 | <maerwald[m]> | but I like cli stuff to be declarative, optparse-applicative isn't |
| 2021-08-06 12:41:43 | <maerwald[m]> | although I use it |
| 2021-08-06 12:41:53 | <lechner> | [exa]: finally i understand that operator |
| 2021-08-06 12:42:05 | <maerwald[m]> | but don't ask me to come up with something better... I'd probably do TH hacks |
| 2021-08-06 12:42:47 | <lechner> | maerwald[m]: isn't all of haskell declarative? |
| 2021-08-06 12:42:53 | <maerwald[m]> | no |
| 2021-08-06 12:43:45 | → | jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) |
| 2021-08-06 12:44:01 | <maerwald[m]> | I don't see how any language can be declarative, unless it's a DSL |
| 2021-08-06 12:44:33 | <maerwald[m]> | but you can stretch the word "declarative" to mean "purely functional", but that isn't what it really means |
| 2021-08-06 12:44:34 | × | xff0x_ quits (~xff0x@2001:1a81:52e3:2500:8766:3fda:9e97:b8d5) (Ping timeout: 240 seconds) |
| 2021-08-06 12:44:35 | <[exa]> | only pure data is purely declarative |
| 2021-08-06 12:44:48 | <[exa]> | json for victory! |
| 2021-08-06 12:45:19 | <lechner> | this page may be a good place to enshrine valuable opinions. it says it's out of date, in a remark from 2012! https://wiki.haskell.org/GetOpt |
| 2021-08-06 12:46:19 | → | Pickchea joins (~private@user/pickchea) |
| 2021-08-06 12:47:11 | <lechner> | is 'procedural' or 'imperative' the opposite of 'declarative'? |
| 2021-08-06 12:47:26 | <maerwald[m]> | odd question |
| 2021-08-06 12:48:02 | × | Obo quits (~roberto@70.pool90-171-81.dynamic.orange.es) (Ping timeout: 245 seconds) |
| 2021-08-06 12:48:22 | <futty> | Uploaded file: https://uploads.kiwiirc.com/files/bc188da828f4d06043793f35724e5baf/Screenshot_20210806_144733.png |
| 2021-08-06 12:48:50 | <[exa]> | futty: many people on IRC won't be able to see that |
| 2021-08-06 12:49:00 | <[exa]> | futty: if you can, do a pastebin |
| 2021-08-06 12:49:07 | <futty> | I get this error when I try to run the program. I am a bit certain that if I were to define the 0-9 as an aux/helper, I wouldnt get an error. But I want to know why this happens? |
| 2021-08-06 12:49:12 | <futty> | alright going to do that |
| 2021-08-06 12:49:25 | <maerwald[m]> | futty: you're missing an `x` on the last definitioon |
| 2021-08-06 12:49:46 | <futty> | https://pastebin.com/8WXf0tY3 |
| 2021-08-06 12:49:49 | <maerwald[m]> | below the `9` |
| 2021-08-06 12:50:37 | AlexNoo_ | is now known as AlexNoo |
| 2021-08-06 12:50:38 | <futty> | I dont Inderstand, I dont have a `9`, which line is it? |
| 2021-08-06 12:50:48 | <[exa]> | just below that |
| 2021-08-06 12:51:01 | <[exa]> | line 12 on pastebin, add x |
| 2021-08-06 12:51:16 | <maerwald[m]> | yes you have a `9` |
| 2021-08-06 12:51:32 | <[exa]> | this way it has no idea that the argument is actually called 'x' |
| 2021-08-06 12:52:43 | <lechner> | before the guard |
| 2021-08-06 12:52:50 | × | kuribas quits (~user@ptr-25vy0i8khwnki6rybr8.18120a2.ip6.access.telenet.be) (Remote host closed the connection) |
| 2021-08-06 12:53:06 | × | Guest5389 quits (~chris@81.96.113.213) (Remote host closed the connection) |
| 2021-08-06 12:53:11 | → | mcglk joins (~mcglk@131.191.49.120) |
| 2021-08-06 12:53:12 | <[exa]> | yes, the guards come behind the parameter list; you need to specify that you're using 1 parameter there |
| 2021-08-06 12:53:22 | → | markpythonicbitc joins (~markpytho@50.228.44.6) |
| 2021-08-06 12:53:28 | <[exa]> | futty: btw you might like this: |
| 2021-08-06 12:53:31 | <[exa]> | > toEnum (fromEnum '0' + 5) :: Char |
| 2021-08-06 12:53:32 | <lambdabot> | '5' |
| 2021-08-06 12:53:47 | <lechner> | wow |
| 2021-08-06 12:54:17 | <Athas> | The GHC bug I encounter most often is the "PAP object entered" thing when enabling profiling. Is there an architectural explanation for why it is so common? |
| 2021-08-06 12:54:51 | [exa] | discovers console-program for option parsing |
| 2021-08-06 12:54:52 | <futty> | I got it. I just forgot the x before guards. Thanks for the toEnum. My uni course showed this long list as pattern matching purposes. |
| 2021-08-06 12:55:25 | × | hendursa1 quits (~weechat@user/hendursaga) (Quit: hendursa1) |
| 2021-08-06 12:55:25 | → | jgeerds joins (~jgeerds@55d45555.access.ecotel.net) |
| 2021-08-06 12:55:32 | <[exa]> | futty: it's got an educative value but we're obsessed with compact code :D |
| 2021-08-06 12:55:41 | → | euouae joins (~euouae@user/euouae) |
| 2021-08-06 12:55:43 | → | hendursaga joins (~weechat@user/hendursaga) |
| 2021-08-06 12:55:47 | → | shriekingnoise joins (~shrieking@186.137.144.80) |
| 2021-08-06 12:55:55 | <euouae> | Hello |
| 2021-08-06 12:56:00 | × | charukiewicz quits (~quassel@irouteince04.i.subnet.rcn.com) (Ping timeout: 265 seconds) |
| 2021-08-06 12:56:12 | → | Obo joins (~roberto@70.pool90-171-81.dynamic.orange.es) |
| 2021-08-06 12:56:13 | <lechner> | hi |
| 2021-08-06 12:56:16 | <euouae> | It seems that cabal has changed from sandbox model to nix packages |
| 2021-08-06 12:56:17 | <futty> | My first encounters with pattern matching and recursion was a nightmare and i failed the exams but now i find it quite intresting. |
| 2021-08-06 12:56:29 | <euouae> | did that happen after cabal install 3.2 ? |
| 2021-08-06 12:56:53 | <maerwald[m]> | euouae: yes, sandboxes were removed |
| 2021-08-06 12:57:11 | <euouae> | I’m noticing that the docs don’t have build / install instructions |
| 2021-08-06 12:57:39 | <euouae> | i was told to learn cabal and stack but the docs of 3.4 are incomplete on that section and it seems like a major featur |
| 2021-08-06 12:58:01 | → | chris joins (~chris@81.96.113.213) |
| 2021-08-06 12:58:05 | chris | is now known as Guest6130 |
| 2021-08-06 12:58:17 | <euouae> | Is there some other way I can learn about cabal install 3.4 ? Other than readthedocs |
| 2021-08-06 13:01:06 | → | alx741 joins (~alx741@186.178.109.254) |
| 2021-08-06 13:01:51 | × | inkbottle[m] quits (~inkbottle@2001:470:69fc:105::2ff5) (Quit: You have been idle for 30+ days) |
| 2021-08-06 13:01:53 | × | hjulle[m] quits (~hjullemat@2001:470:69fc:105::1dd) (Quit: You have been idle for 30+ days) |
| 2021-08-06 13:02:10 | × | Morrow[m] quits (~morrowmma@2001:470:69fc:105::1d0) (Quit: You have been idle for 30+ days) |
| 2021-08-06 13:02:11 | × | Drezil quits (~drezilkif@2001:470:69fc:105::7f8) (Quit: You have been idle for 30+ days) |
| 2021-08-06 13:02:12 | × | kosmikus[m] quits (~andresloe@2001:470:69fc:105::95d) (Quit: You have been idle for 30+ days) |
| 2021-08-06 13:02:12 | × | Guest4241 quits (~sylveonma@2001:470:69fc:105::2d95) (Quit: You have been idle for 30+ days) |
| 2021-08-06 13:02:12 | × | autrim64[m] quits (~autrim64m@2001:470:69fc:105::16a1) (Quit: You have been idle for 30+ days) |
| 2021-08-06 13:02:13 | × | jellz[m] quits (~jellzmatr@2001:470:69fc:105::2daa) (Quit: You have been idle for 30+ days) |
| 2021-08-06 13:02:18 | × | Guest6130 quits (~chris@81.96.113.213) (Ping timeout: 240 seconds) |
| 2021-08-06 13:02:37 | → | drd joins (~drd@93-39-151-19.ip76.fastwebnet.it) |
| 2021-08-06 13:02:45 | <euouae> | Maybe I can just ignore cabal for now and focus on stack? Or does the sandbox change affect stack too? |
| 2021-08-06 13:03:00 | → | Morrow[m] joins (~morrowmma@2001:470:69fc:105::1d0) |
| 2021-08-06 13:03:12 | → | Drezil joins (~drezilkif@2001:470:69fc:105::7f8) |
| 2021-08-06 13:03:24 | → | kosmikus[m] joins (~andresloe@2001:470:69fc:105::95d) |
| 2021-08-06 13:03:31 | <lechner> | what is your problem with cabal? |
| 2021-08-06 13:03:36 | → | autrim64[m] joins (~autrim64m@2001:470:69fc:105::16a1) |
All times are in UTC.