Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,803,304 events total
2021-07-23 15:12:06 <ahri> so ummm, are we saying that I don't have a good way to get a useful .hp file?
2021-07-23 15:12:18 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-07-23 15:13:26 <EvanR> specifically which bytestring thing did that?
2021-07-23 15:13:27 <maerwald> c_wraith: what?
2021-07-23 15:14:22 × lavaman quits (~lavaman@98.38.249.169) (Remote host closed the connection)
2021-07-23 15:14:34 lavaman joins (~lavaman@98.38.249.169)
2021-07-23 15:14:41 <c_wraith> Data.Bytestring.Lazy.foldr was changed to be strict in all 3 arguments somewhere around 2009, and that broke some knot-tying I was doing
2021-07-23 15:14:42 × lavaman quits (~lavaman@98.38.249.169) (Remote host closed the connection)
2021-07-23 15:15:42 curiousgay joins (~curiousga@77-120-186-48.kha.volia.net)
2021-07-23 15:15:44 <maerwald> haha
2021-07-23 15:15:48 <EvanR> seems like an odd decision on their part
2021-07-23 15:15:51 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-07-23 15:16:06 <maerwald> well, that's haskell... not everything is in the types
2021-07-23 15:16:42 <maerwald> with inlining it's even harder
2021-07-23 15:16:45 × michalz quits (~michalz@185.246.204.61) (Remote host closed the connection)
2021-07-23 15:16:51 <maerwald> if your library depends on inlining semantics
2021-07-23 15:18:02 <maerwald> I am still missing a comprehensive blog post that clearly explains all the cases that can break inlining and how to get around it
2021-07-23 15:18:42 <maerwald> it seems you end up reading GHC source code etc in order to figure that out
2021-07-23 15:18:58 <maerwald> quite inaccessible
2021-07-23 15:20:20 <c_wraith> But that's what I was getting at. Most functions have exactly one correct amount of strictness that allows users full control over resulting evaluation dependencies. And it's never "force everything"
2021-07-23 15:20:43 <maerwald> that's a very weird use of "correct"
2021-07-23 15:20:54 <c_wraith> It shouldn't be
2021-07-23 15:21:04 <maerwald> well, it seems rather arbitrary
2021-07-23 15:21:10 <maerwald> unless you can formalise it
2021-07-23 15:21:44 agua joins (~agua@2804:18:44:46ad:1:0:480e:2382)
2021-07-23 15:23:05 × lortabac quits (~lortabac@2a01:e0a:541:b8f0:a0c1:5216:8115:ce7d) (Quit: WeeChat 2.8)
2021-07-23 15:23:32 × Vajb quits (~Vajb@hag-jnsbng11-58c3a1-224.dhcp.inet.fi) (Read error: Connection reset by peer)
2021-07-23 15:24:19 Vajb joins (~Vajb@hag-jnsbng11-58c3a1-224.dhcp.inet.fi)
2021-07-23 15:24:56 × pesada quits (~agua@2804:14c:8793:8e2f:6091:e445:c3bf:d39e) (Ping timeout: 252 seconds)
2021-07-23 15:33:38 ub joins (~Thunderbi@77.119.196.49.wireless.dyn.drei.com)
2021-07-23 15:36:20 jao joins (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net)
2021-07-23 15:39:34 samhh joins (~samhh@90.252.70.102)
2021-07-23 15:41:35 pesada joins (~agua@191.177.175.57)
2021-07-23 15:42:04 Guest64 joins (~Guest64@2a02:a31c:8542:9480:4a4:55e:5e5e:5356)
2021-07-23 15:44:13 × Vajb quits (~Vajb@hag-jnsbng11-58c3a1-224.dhcp.inet.fi) (Read error: Connection reset by peer)
2021-07-23 15:44:34 Vajb joins (~Vajb@2001:999:62:1d53:26b1:6c9b:c1ed:9c01)
2021-07-23 15:45:21 × agua quits (~agua@2804:18:44:46ad:1:0:480e:2382) (Ping timeout: 250 seconds)
2021-07-23 15:45:26 nate1 joins (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net)
2021-07-23 15:46:53 pfurla_ joins (~pfurla@ool-182ed2e2.dyn.optonline.net)
2021-07-23 15:48:06 <arkanoid> how can I take element 0,2,4,6,... of a list?
2021-07-23 15:49:01 <glguy> arkanoid: just write a little recursive function to do it with pattern matching
2021-07-23 15:49:18 <arkanoid> well, I've rolled my own, but isn't it better to use existing functions?
2021-07-23 15:49:24 × pfurla quits (~pfurla@ool-182ed2e2.dyn.optonline.net) (Ping timeout: 252 seconds)
2021-07-23 15:49:27 <arkanoid> I mean, I feel like there should be one
2021-07-23 15:49:44 × ahri quits (~ahri@185.108.168.17.default.telcom.network) (Quit: Client closed)
2021-07-23 15:49:59 <glguy> I wouldn't expect it to exist anywhere common. I'm sure it's been written before.
2021-07-23 15:50:17 × nate1 quits (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 255 seconds)
2021-07-23 15:50:29 ph88 joins (~ph88@2a02:8109:9e00:7e5c:4c3:7ef8:c703:fb12)
2021-07-23 15:50:52 × hendursa1 quits (~weechat@user/hendursaga) (Remote host closed the connection)
2021-07-23 15:51:15 hendursa1 joins (~weechat@user/hendursaga)
2021-07-23 15:52:01 <arkanoid> ok
2021-07-23 15:54:24 × hyiltiz quits (~quassel@31.220.5.250) (Remote host closed the connection)
2021-07-23 15:55:30 × ph88 quits (~ph88@2a02:8109:9e00:7e5c:4c3:7ef8:c703:fb12) (Ping timeout: 240 seconds)
2021-07-23 15:55:32 hyiltiz joins (~quassel@31.220.5.250)
2021-07-23 15:55:48 aerona joins (~aerona@2600:6c54:4600:f300:8c49:c590:8f74:ccf2)
2021-07-23 15:56:07 <EvanR> even splitting a list into chunks requires pulling in a library
2021-07-23 15:56:44 <EvanR> or writing your own, but it seems to come up a lot.
2021-07-23 15:57:23 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 252 seconds)
2021-07-23 15:57:47 <xsperry> > let f = map snd . filter (even . fst) . zip [0..] in f "abcdef"
2021-07-23 15:57:48 <lambdabot> "ace"
2021-07-23 15:58:38 <delYsid> :t fmap head . chunksOf 2
2021-07-23 15:58:39 <lambdabot> [b] -> [b]
2021-07-23 15:59:12 <delYsid> > (fmap head . chunksOf 2) [0,1,2,3,4,5]
2021-07-23 15:59:13 <lambdabot> [0,2,4]
2021-07-23 15:59:34 <EvanR> i feel more fuzzy writing the recursion
2021-07-23 16:00:38 × ub quits (~Thunderbi@77.119.196.49.wireless.dyn.drei.com) (Ping timeout: 255 seconds)
2021-07-23 16:01:20 <xerox> > takeWhile (not . null) . unfoldr (Just . splitAt 3) $ ['a'..'z']
2021-07-23 16:01:22 <lambdabot> ["abc","def","ghi","jkl","mno","pqr","stu","vwx","yz"]
2021-07-23 16:03:55 × wei2912 quits (~wei2912@112.199.250.21) (Quit: Lost terminal)
2021-07-23 16:04:18 × justsomeguy quits (~justsomeg@user/justsomeguy) (Ping timeout: 240 seconds)
2021-07-23 16:05:39 × Guest64 quits (~Guest64@2a02:a31c:8542:9480:4a4:55e:5e5e:5356) (Quit: Client closed)
2021-07-23 16:06:09 nate1 joins (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net)
2021-07-23 16:06:25 gensyst joins (gensyst@user/gensyst)
2021-07-23 16:07:41 <gensyst> I see 0.8.0 as latest for streamly on Hackage, however after "cabal update" my index still only has 0.7.3 in it. I.e. the ~/.cabal/packages/hackage.haskell.org/streamly dir only contains the 0.7.3 dir. Why?
2021-07-23 16:09:25 <maerwald> gensyst: are you in a project dir?
2021-07-23 16:10:00 <gensyst> maerwald, i was, but i just tried again outside a project dir. still no 0.8.0 dir
2021-07-23 16:10:28 × slycelote_ quits (~slycelote@user/slycelote) (Ping timeout: 265 seconds)
2021-07-23 16:10:32 <c_wraith> uh. those directories only exist if you install the package. Have you done anything that would install version 0.8.0.0
2021-07-23 16:11:02 × nate1 quits (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 252 seconds)
2021-07-23 16:11:50 <maerwald> the index is 01-index.tar
2021-07-23 16:12:26 <janus> what does "user target" mean in a cabal resolution error message? thinking about this one https://github.com/haskell-hvr/missingh/issues/54#issuecomment-882805817
2021-07-23 16:12:44 <janus> sorry, not that one, but the last comment
2021-07-23 16:12:58 × chris_ quits (~chris@81.96.113.213) (Remote host closed the connection)
2021-07-23 16:13:05 slycelote joins (~slycelote@user/slycelote)
2021-07-23 16:13:31 <c_wraith> "user goal" means the thing you asked it to install, rather than an inferred (transitive) dependency
2021-07-23 16:14:28 <janus> but hackage doesn't show the constraint random==1.2 for MissingH, so how can that person get that error message?
2021-07-23 16:14:31 <gensyst> maerwald, c_wraith ok, i didn't realize this
2021-07-23 16:14:35 <gensyst> thanks
2021-07-23 16:14:48 <janus> @package MissingH
2021-07-23 16:14:48 <lambdabot> https://hackage.haskell.org/package/MissingH
2021-07-23 16:15:45 haskl joins (~haskl@98.37.78.63)
2021-07-23 16:15:48 <c_wraith> wow. That's an odd kitchen sink
2021-07-23 16:16:51 × chele quits (~chele@user/chele) (Remote host closed the connection)
2021-07-23 16:17:02 <janus> it's required for ftphs, i am trying to get Goerzen hand ftphs over to me. https://en.wikipedia.org/wiki/John_Goerzen
2021-07-23 16:17:51 × curiousgay quits (~curiousga@77-120-186-48.kha.volia.net) (Ping timeout: 258 seconds)
2021-07-23 16:17:53 <c_wraith> oh, that's cabal install --lib
2021-07-23 16:18:02 <janus> i was wondering whether stuart-little (person with the error message) may have an existing package that makes MissingH not be installable? but if global packages don't exist anymore surely that wouldn't be the case
2021-07-23 16:18:05 <Boarders> in lens are their variants on <=+ but which return the previous result?
2021-07-23 16:18:07 <c_wraith> So it's also treating things you already have installed
2021-07-23 16:18:16 <Boarders> ah found it just as I asked

All times are in UTC.