Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2020-11-09 09:49:23 <Feuermagier> xpika, is there something like a "concatenateWithFunction f" - function? - I don't quite get how to syntactically correctly apply this
2020-11-09 09:49:29 invaser joins (~Thunderbi@128-124-156-208.mobile.vf-ua.net)
2020-11-09 09:50:17 <xpika> >>= does that
2020-11-09 09:50:31 <xpika> or concatMap which is the same thing
2020-11-09 09:53:43 × hnOsmium0001 quits (uid453710@gateway/web/irccloud.com/x-dgsoicqoiphpcnpi) (Quit: Connection closed for inactivity)
2020-11-09 09:54:12 unknown joins (~unknown@84.39.117.57)
2020-11-09 09:56:20 × adm quits (~adm@43.229.88.236) (Remote host closed the connection)
2020-11-09 09:57:24 <Feuermagier> like this?: concatMap (\x y -> unwords . words $ (x++y)) ["u ", " ", " z"]
2020-11-09 09:57:29 <Feuermagier> > concatMap (\x y -> unwords . words $ (x++y)) ["u ", " ", " z"]
2020-11-09 09:57:31 <lambdabot> error:
2020-11-09 09:57:31 <lambdabot> • Couldn't match expected type ‘[b]’
2020-11-09 09:57:31 <lambdabot> with actual type ‘[Char] -> String’
2020-11-09 09:57:53 cr0ssw1nd joins (~crosswind@78.162.46.6)
2020-11-09 09:58:04 <cr0ssw1nd> hey hoe
2020-11-09 09:59:46 × ulidtko quits (~ulidtko@193.111.48.79) (Ping timeout: 256 seconds)
2020-11-09 10:00:18 × andreas31 quits (~andreas@gateway/tor-sasl/andreas303) (Remote host closed the connection)
2020-11-09 10:03:25 andreas31 joins (~andreas@gateway/tor-sasl/andreas303)
2020-11-09 10:03:53 ulidtko joins (~ulidtko@193.111.48.79)
2020-11-09 10:05:03 × ChaiTRex quits (~ChaiTRex@gateway/tor-sasl/chaitrex) (Ping timeout: 240 seconds)
2020-11-09 10:07:18 × Ariakenom quits (~Ariakenom@h-82-196-111-76.NA.cust.bahnhof.se) (Ping timeout: 272 seconds)
2020-11-09 10:07:39 × tsaka__ quits (~torstein@ppp-2-84-29-23.home.otenet.gr) (Remote host closed the connection)
2020-11-09 10:07:40 ChaiTRex joins (~ChaiTRex@gateway/tor-sasl/chaitrex)
2020-11-09 10:07:53 × jamm_ quits (~jamm@unaffiliated/jamm) (Remote host closed the connection)
2020-11-09 10:08:04 × Lord_of_Life_ quits (~Lord@46.217.220.150) (Read error: Connection reset by peer)
2020-11-09 10:08:30 hackage phonetic-languages-examples 0.3.0.0 - A generalization of the uniqueness-periods-vector-examples functionality. https://hackage.haskell.org/package/phonetic-languages-examples-0.3.0.0 (OleksandrZhabenko)
2020-11-09 10:08:40 tsaka__ joins (~torstein@ppp-2-84-29-23.home.otenet.gr)
2020-11-09 10:08:58 Lord_of_Life joins (~Lord@46.217.220.150)
2020-11-09 10:08:58 × Lord_of_Life quits (~Lord@46.217.220.150) (Changing host)
2020-11-09 10:08:58 Lord_of_Life joins (~Lord@unaffiliated/lord-of-life/x-0885362)
2020-11-09 10:09:32 × Maxdamantus quits (~Maxdamant@unaffiliated/maxdamantus) (Ping timeout: 258 seconds)
2020-11-09 10:09:42 <Feuermagier> xpika, can I apply that dropWhile you used from back to front of a string somehow?
2020-11-09 10:10:27 Maxdamantus joins (~Maxdamant@unaffiliated/maxdamantus)
2020-11-09 10:14:23 <xpika> > dropWhileEnd isSpace "hello world "
2020-11-09 10:14:24 <lambdabot> "hello world"
2020-11-09 10:15:45 × cole-h quits (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net) (Ping timeout: 240 seconds)
2020-11-09 10:17:06 Miroboru joins (~textual@89-162-24-238.fiber.signal.no)
2020-11-09 10:17:32 × Katarushisu quits (~Katarushi@cpc149712-finc20-2-0-cust535.4-2.cable.virginm.net) (Ping timeout: 265 seconds)
2020-11-09 10:18:06 × Lord_of_Life quits (~Lord@unaffiliated/lord-of-life/x-0885362) (Remote host closed the connection)
2020-11-09 10:18:48 × Rudd0 quits (~Rudd0@185.189.115.103) (Ping timeout: 256 seconds)
2020-11-09 10:20:16 × _xor quits (~xor@74.215.46.133) (Ping timeout: 258 seconds)
2020-11-09 10:20:37 Rudd0 joins (~Rudd0@185.189.115.103)
2020-11-09 10:21:17 <kuribastard> :t dropWhileEnd
2020-11-09 10:21:19 <lambdabot> (a -> Bool) -> [a] -> [a]
2020-11-09 10:21:25 _xor joins (~xor@74.215.46.133)
2020-11-09 10:22:00 Lord_of_Life joins (~Lord@46.217.220.150)
2020-11-09 10:22:00 × Lord_of_Life quits (~Lord@46.217.220.150) (Changing host)
2020-11-09 10:22:00 Lord_of_Life joins (~Lord@unaffiliated/lord-of-life/x-0885362)
2020-11-09 10:22:40 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-11-09 10:22:56 × Miroboru quits (~textual@89-162-24-238.fiber.signal.no) (Quit: Textual IRC Client: www.textualapp.com)
2020-11-09 10:23:25 jonatanb joins (~jonatanb@83.24.9.26.ipv4.supernova.orange.pl)
2020-11-09 10:23:29 Miroboru joins (~textual@89-162-24-238.fiber.signal.no)
2020-11-09 10:25:21 × christo quits (~chris@81.96.113.213) (Remote host closed the connection)
2020-11-09 10:25:47 christo joins (~chris@81.96.113.213)
2020-11-09 10:26:14 × cr0ssw1nd quits (~crosswind@78.162.46.6) (Ping timeout: 265 seconds)
2020-11-09 10:27:31 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 256 seconds)
2020-11-09 10:27:55 jedws joins (~jedws@101.184.150.81)
2020-11-09 10:28:10 × jonatanb quits (~jonatanb@83.24.9.26.ipv4.supernova.orange.pl) (Ping timeout: 265 seconds)
2020-11-09 10:31:27 Katarushisu joins (~Katarushi@cpc149712-finc20-2-0-cust535.4-2.cable.virginm.net)
2020-11-09 10:32:41 × rprije quits (~rprije@124.148.131.132) (Ping timeout: 260 seconds)
2020-11-09 10:34:10 × jedws quits (~jedws@101.184.150.81) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2020-11-09 10:34:20 sh9 joins (~sh9@softbank060116136158.bbtec.net)
2020-11-09 10:35:43 <kuribastard> ouch this burns: "Seriously: the PHP people at least know their languages won’t protect them from anything. We should bring some of that humility back to Haskell."
2020-11-09 10:39:44 × christo quits (~chris@81.96.113.213) (Remote host closed the connection)
2020-11-09 10:41:20 <Uniaika> lol yeah I read that one too
2020-11-09 10:43:03 <maerwald> where was that
2020-11-09 10:44:13 <kuribastard> https://www.snoyman.com/blog/2020/11/haskell-bad-parts-2
2020-11-09 10:45:22 × esph quits (~weechat@unaffiliated/esph) (Quit: WeeChat 2.9)
2020-11-09 10:45:30 esph joins (~weechat@unaffiliated/esph)
2020-11-09 10:45:34 <maerwald> well yeah, it's a popular opinion that types protect you from bugs and ppl get overly enthusiastic about it
2020-11-09 10:46:51 <kuribastard> types don't protect you from bugs, but they help you to maintain abstraction barriers. It's having proper abstractions that save you from stupid bugs.
2020-11-09 10:47:03 <maerwald> I even disagree with that
2020-11-09 10:47:07 <Uniaika> maerwald: yeah in the end, we have a case of overly enthusiast zealot
2020-11-09 10:47:11 <kuribastard> maerwald: I know
2020-11-09 10:47:14 × LKoen quits (~LKoen@77.174.9.109.rev.sfr.net) (Read error: Connection reset by peer)
2020-11-09 10:47:17 christo joins (~chris@81.96.113.213)
2020-11-09 10:47:44 <merijn> I have a simple heuristic for maerwald's opinion on most topics. Just invert the popular opinion ;)
2020-11-09 10:47:57 <maerwald> merijn: that's not very useful
2020-11-09 10:48:05 <Uniaika> but is it true though? :P
2020-11-09 10:48:35 LKoen joins (~LKoen@77.174.9.109.rev.sfr.net)
2020-11-09 10:48:47 jalumar joins (uid392211@gateway/web/irccloud.com/x-shdqsvwkocdcmfsf)
2020-11-09 10:48:50 <kuribastard> it's being able to clearly specify business logic that makes your program less faulty. It does prevent you from implementing the wrong specs, not understanding the customer requirements, etc...
2020-11-09 10:48:58 <maerwald> kuribastard: types don't construct *architecture*. They are usually more low-level than that.
2020-11-09 10:49:11 <kuribastard> erm "doesn't"
2020-11-09 10:50:05 <kuribastard> but then, just as it's a poor decision to run your programs under a desk, I think it's a poor decision to run your long running service using a dynamic language.
2020-11-09 10:50:31 × christo quits (~chris@81.96.113.213) (Remote host closed the connection)
2020-11-09 10:50:32 <kuribastard> maerwald: that's exactly why they are useful
2020-11-09 10:50:43 <maerwald> good architecture facilitates porper abstraction barriers
2020-11-09 10:51:15 <kuribastard> it doesn't come with a large overhead like OO inheritance hierarchies.
2020-11-09 10:51:42 <maerwald> I don't follow that thought
2020-11-09 10:52:07 adm_ joins (~adm@43.229.88.236)
2020-11-09 10:52:09 <maerwald> bashing OO isn't hard
2020-11-09 10:57:34 Zetagon joins (~leo@c151-177-52-233.bredband.comhem.se)
2020-11-09 10:57:37 christo joins (~chris@81.96.113.213)
2020-11-09 10:57:55 <maerwald> "Deprecate partial functions" ... ok, please provide a proper languagu for that, because Haskell isn't
2020-11-09 10:58:05 <maerwald> little extreme imo
2020-11-09 10:58:22 __monty__ joins (~toonn@unaffiliated/toonn)
2020-11-09 10:59:14 iqubic joins (~user@2601:602:9500:4870:fd55:a12e:3595:eb89)
2020-11-09 10:59:26 a_ joins (~a@2402:8100:230f:985:63a5:3c25:ccc1:e6b3)
2020-11-09 10:59:37 <Uniaika> *some* famous partial functions' types *can* be patched with NonEmpty a instead of [a]
2020-11-09 11:00:03 <maerwald> I am a fan of partial head.

All times are in UTC.