Logs: freenode/#haskell
| 2020-11-23 19:12:09 | × | qwfpmluy quits (2e0505e2@HSI-KBW-046-005-005-226.hsi8.kabel-badenwuerttemberg.de) (Ping timeout: 245 seconds) |
| 2020-11-23 19:12:11 | <dminuoso> | Yes. |
| 2020-11-23 19:12:21 | <domenkozar[m]> | hmm that's simple and clever :) |
| 2020-11-23 19:12:37 | <domenkozar[m]> | thanks dminuoso ! |
| 2020-11-23 19:12:56 | <dminuoso> | To be fair I just rephrased what monochrom, __monty__ and geekosaur also said above. |
| 2020-11-23 19:13:34 | <domenkozar[m]> | ah indeed, thanks monochrom & __monty__ :) |
| 2020-11-23 19:14:07 | <__monty__> | I definitely don't mind my nick being mentioned in the same breath as those other ones : ) |
| 2020-11-23 19:14:18 | × | michalz quits (~user@185.246.204.61) (Remote host closed the connection) |
| 2020-11-23 19:14:45 | × | czwartyeon quits (~czwartyeo@77-45-55-99.sta.asta-net.com.pl) (Ping timeout: 240 seconds) |
| 2020-11-23 19:14:46 | × | sh9 quits (~sh9@softbank060116136158.bbtec.net) (Ping timeout: 272 seconds) |
| 2020-11-23 19:15:04 | × | LKoen quits (~LKoen@169.244.88.92.rev.sfr.net) (Remote host closed the connection) |
| 2020-11-23 19:15:10 | × | darjeeling_ quits (~darjeelin@122.245.219.209) (Ping timeout: 256 seconds) |
| 2020-11-23 19:16:07 | → | LKoen joins (~LKoen@169.244.88.92.rev.sfr.net) |
| 2020-11-23 19:17:22 | × | ClaudiusMaximus quits (~claude@unaffiliated/claudiusmaximus) (Quit: ->) |
| 2020-11-23 19:20:14 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-11-23 19:23:27 | <texasmynsted> | If you look at the source here --> https://jaspervdj.be/hakyll/reference/src/Hakyll.Web.Redirect.html#createRedirects |
| 2020-11-23 19:23:41 | <texasmynsted> | There is a function "redirectToHtml :: Redirect -> String" |
| 2020-11-23 19:24:42 | <texasmynsted> | I do not like the string being used, but I think I have no way to replace it short of writing all my own Redirect logic. Right? The Writable type class already has an instance defined. |
| 2020-11-23 19:24:43 | × | dqd quits (id@wikipedia/dqd) (Ping timeout: 246 seconds) |
| 2020-11-23 19:25:05 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 240 seconds) |
| 2020-11-23 19:25:10 | veverak | is now known as JarJar |
| 2020-11-23 19:25:15 | JarJar | is now known as veverak |
| 2020-11-23 19:26:23 | veverak | is now known as JarJarEatingHawa |
| 2020-11-23 19:26:27 | JarJarEatingHawa | is now known as veverak |
| 2020-11-23 19:26:33 | → | geowiesnot joins (~user@87-89-181-157.abo.bbox.fr) |
| 2020-11-23 19:26:51 | <hseg> | ok, final version http://ix.io/2FeB. pretty happy with it, but would welcome improvements |
| 2020-11-23 19:30:41 | <jcd> | I'm trying to make a String into the type "HTTP String", what's the best way to do this? |
| 2020-11-23 19:31:08 | × | conal quits (~conal@66.115.157.94) (Quit: Computer has gone to sleep.) |
| 2020-11-23 19:31:08 | <dminuoso> | That depends on what HTTP even is.. |
| 2020-11-23 19:31:11 | → | czwartyeon joins (~czwartyeo@77-45-55-99.sta.asta-net.com.pl) |
| 2020-11-23 19:31:13 | <dminuoso> | And what you want it to mean |
| 2020-11-23 19:31:26 | <geekosaur> | depending on where you're doing this, possibly "pure" |
| 2020-11-23 19:31:31 | <jcd> | A user-defined data type. |
| 2020-11-23 19:31:39 | <dminuoso> | jcd: How is the data type defined? |
| 2020-11-23 19:31:49 | <jcd> | data Person = Person |
| 2020-11-23 19:31:49 | <jcd> | { firstName :: String |
| 2020-11-23 19:31:49 | <jcd> | , lastName :: String |
| 2020-11-23 19:31:49 | <jcd> | , age :: Int |
| 2020-11-23 19:31:49 | <jcd> | , hometown :: String |
| 2020-11-23 19:31:49 | <dminuoso> | Did you define it, or does it appear in a library? |
| 2020-11-23 19:31:51 | <geekosaur> | but that depends on what it is and what instances it has |
| 2020-11-23 19:32:08 | <jcd> | Ignore that ^, still learning the emacs keychords |
| 2020-11-23 19:32:19 | × | christo quits (~chris@81.96.113.213) (Remote host closed the connection) |
| 2020-11-23 19:32:21 | <dminuoso> | @where paste -- jcd |
| 2020-11-23 19:32:21 | <lambdabot> | Help us help you: please paste full code, input and/or output at eg https://paste.tomsmeding.com |
| 2020-11-23 19:33:13 | × | ystael quits (~ystael@209.6.50.55) (Ping timeout: 264 seconds) |
| 2020-11-23 19:34:35 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-11-23 19:35:34 | × | czwartyeon quits (~czwartyeo@77-45-55-99.sta.asta-net.com.pl) (Ping timeout: 256 seconds) |
| 2020-11-23 19:35:55 | <jcd> | https://paste.tomsmeding.com/J6ffGVxv |
| 2020-11-23 19:36:05 | <jcd> | Thank you in advance |
| 2020-11-23 19:37:37 | → | christo joins (~chris@81.96.113.213) |
| 2020-11-23 19:38:14 | <jcd> | I want to take input from an arbitrary source, mark it as an HTTP message, and then process the HTTP data structure accordingly. |
| 2020-11-23 19:38:15 | <geekosaur> | that code seems somewhat off |
| 2020-11-23 19:38:51 | <jcd> | tell me about it haha |
| 2020-11-23 19:39:24 | <geekosaur> | readHTTPMessage already does what you want, although it has a pointless "do". I'm not sure what it's supposed to be doing, though |
| 2020-11-23 19:40:05 | × | Varis quits (~Tadas@unaffiliated/varis) (Ping timeout: 240 seconds) |
| 2020-11-23 19:40:31 | → | darjeeling_ joins (~darjeelin@122.245.219.209) |
| 2020-11-23 19:40:33 | → | Franciman joins (~francesco@host-82-54-193-143.retail.telecomitalia.it) |
| 2020-11-23 19:42:23 | × | christo quits (~chris@81.96.113.213) (Ping timeout: 265 seconds) |
| 2020-11-23 19:43:18 | <kuribas> | what would be a good alternative to bash? Something not heavy, but likely installed on any system? |
| 2020-11-23 19:43:25 | <kuribas> | and not python |
| 2020-11-23 19:43:45 | <kuribas> | wait, wrong channel... |
| 2020-11-23 19:43:55 | <chreekat[m]> | Haha |
| 2020-11-23 19:44:35 | <chreekat[m]> | But since you asked, I don't think there is a good alternative, not for scripting the Unix shell anyway |
| 2020-11-23 19:45:06 | <geekosaur> | zsh, but I'm not sure that's an improvement. |
| 2020-11-23 19:45:10 | kuribas | moving the discussion to #haskell-offtopic |
| 2020-11-23 19:45:27 | <sm[m]> | aw |
| 2020-11-23 19:45:27 | <geekosaur> | and, well, if there were something bettter, there wouldnt be so many bad shell scripts out there |
| 2020-11-23 19:45:51 | × | phaul quits (~phaul@ruby/staff/phaul) (Ping timeout: 260 seconds) |
| 2020-11-23 19:46:05 | <sm[m]> | I think it's bash or python, unless you think writing perl in 2020 is a good idea |
| 2020-11-23 19:46:20 | <geekosaur> | some of us still do |
| 2020-11-23 19:46:53 | <kuribas> | sm[m]: I never found it a good idea :) |
| 2020-11-23 19:47:41 | <sm[m]> | bash + shellcheck |
| 2020-11-23 19:47:57 | → | cosimone joins (~cosimone@2001:b07:ae5:db26:d849:743b:370b:b3cd) |
| 2020-11-23 19:48:02 | <sm[m]> | well.. would you consider make to be an option ? |
| 2020-11-23 19:48:16 | × | b7471 quits (~kvirc@139.30.225.215) (Ping timeout: 240 seconds) |
| 2020-11-23 19:48:24 | <maerwald> | kuribas: POSIX shell |
| 2020-11-23 19:48:26 | <geekosaur> | make's going to use bash underneath |
| 2020-11-23 19:48:33 | <kuribas> | I was trying out gauche-scheme, which is nice, but it's sadly not installed on centos... |
| 2020-11-23 19:49:09 | <sm[m]> | o well if you're going to be installing things.. stack scripts can be nice |
| 2020-11-23 19:49:12 | <kuribas> | I'd use haskell, but 2GB isn't exactly lightweight... |
| 2020-11-23 19:49:17 | <maerwald> | other than that, your only option is perl... there's hardly any system out there without it, because gcc toolchain needs it |
| 2020-11-23 19:49:24 | <kuribas> | sm[m]: haskell stack? |
| 2020-11-23 19:50:02 | <sm[m]> | yes |
| 2020-11-23 19:50:56 | <maerwald> | how is that not 2GB? |
| 2020-11-23 19:51:47 | → | czwartyeon joins (~czwartyeo@77-45-55-99.sta.asta-net.com.pl) |
| 2020-11-23 19:52:04 | <kuribas> | maerwald: it is |
| 2020-11-23 19:52:19 | <sm[m]> | I didn't assert that.. but I think it could be.. use system-packaged stack & ghc & haskell deps, tell stack script to use those |
| 2020-11-23 19:52:28 | → | jamm_ joins (~jamm@unaffiliated/jamm) |
| 2020-11-23 19:52:55 | <maerwald> | kuribas: static haskell binary? |
| 2020-11-23 19:53:31 | <dminuoso> | Mmm, I have a mundane task of running some wget commands to scrape a website. What's the least effort to quickly have a thread pool of 5 things to parallelize this a bit? |
| 2020-11-23 19:53:52 | <kuribas> | maerwald: could be, but then it has to be compiled on the same OS. |
| 2020-11-23 19:54:13 | <maerwald> | kuribas: what do you mean? |
| 2020-11-23 19:54:30 | <kuribas> | dminuoso: gnu parallel? |
| 2020-11-23 19:54:36 | → | sondr3 joins (~sondr3@cm-84.211.56.132.getinternet.no) |
| 2020-11-23 19:55:01 | <kuribas> | maerwald: I mean linux binaries aren't portable across distros. |
| 2020-11-23 19:55:05 | <maerwald> | they are |
| 2020-11-23 19:55:10 | <kuribas> | because of glibc differences |
| 2020-11-23 19:55:11 | <maerwald> | static binaries |
| 2020-11-23 19:55:13 | <maerwald> | I said |
All times are in UTC.