Logs: liberachat/#haskell
| 2021-08-15 11:49:41 | <maerwald[m]> | tar currently forces every file into memory before unpacking |
| 2021-08-15 11:49:41 | <tomsmeding> | arahael: what's the error? |
| 2021-08-15 11:49:58 | <arahael> | Could not find module `Streamly.Internal.Data.Unfold.Types' |
| 2021-08-15 11:50:00 | <maerwald[m]> | So your max memory consumption depends on the biggest file in the archive |
| 2021-08-15 11:50:42 | <tomsmeding> | use streampy-posix-0.1.0.2 https://github.com/hasufell/streamly-posix/pull/1 |
| 2021-08-15 11:51:10 | <arahael> | tomsmeding: I'm not the one using streampy, though. It's an indirect dependency. |
| 2021-08-15 11:51:32 | <maerwald[m]> | That sounds like a version bound is off |
| 2021-08-15 11:51:32 | <fvr> | arahael: you can just add it in your extra-deps if stack.yaml or cabal.project |
| 2021-08-15 11:51:45 | → | machinedgod joins (~machinedg@24.105.81.50) |
| 2021-08-15 11:51:48 | <arahael> | This is just a regular old cabal. |
| 2021-08-15 11:51:48 | <maerwald[m]> | That shouldn't be needed |
| 2021-08-15 11:52:23 | <arahael> | I think what I'll do is just move to libarchive next chance I have to work on this. |
| 2021-08-15 11:52:37 | <maerwald[m]> | Or share full build log |
| 2021-08-15 11:52:54 | <maerwald[m]> | Otherwise this is a guessing game |
| 2021-08-15 11:52:59 | <arahael> | maerwald[m]: Yeah, but then I have to commit to staying here for a bit longer whilst other people invest in helping me. :) |
| 2021-08-15 11:53:09 | <tomsmeding> | arahael: try a cabal update; the indirect dependency is in hpath-directory. The latest version of that (0.14.2.1) works, but 0.14.2.0 doesn't; tar-bytestring has a ==0.14.* constraint on hpath-directory |
| 2021-08-15 11:53:53 | <arahael> | tomsmeding: Oh, that's intriguing. |
| 2021-08-15 11:53:58 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 272 seconds) |
| 2021-08-15 11:54:12 | <tomsmeding> | so you just need cabal to give you the latest hpath-directory (which is very recent, like as of last week) |
| 2021-08-15 11:54:19 | <arahael> | Oh, wow, that is recent. |
| 2021-08-15 11:54:49 | <tomsmeding> | (it's due to an incompatibility with streamly 0.8 that I found, fixed, and sent a PR for last week :p ) |
| 2021-08-15 11:55:26 | <arahael> | Oh, awesome! :D |
| 2021-08-15 11:55:49 | <arahael> | It's currently rebuilding the world. |
| 2021-08-15 11:56:04 | × | machinedgod quits (~machinedg@24.105.81.50) (Remote host closed the connection) |
| 2021-08-15 11:56:30 | <tomsmeding> | always fun |
| 2021-08-15 11:56:32 | <arahael> | But I think I should move to libarchive, very not impressed with tar truncating my filenames. |
| 2021-08-15 11:56:45 | <arahael> | (But won't be today. And probably won't be tomorrow either!) |
| 2021-08-15 11:59:55 | <arahael> | Ok, it now dies when trying to compile hpath-directory-0.14.2.1 - but I should get to bed. |
| 2021-08-15 12:00:08 | <arahael> | tomsmeding, fvr: Thanks for your help and recommendations! |
| 2021-08-15 12:00:11 | <maerwald[m]> | Oh dear |
| 2021-08-15 12:00:33 | <maerwald[m]> | Build logs |
| 2021-08-15 12:00:42 | tomsmeding | chants "build logs" |
| 2021-08-15 12:00:51 | <maerwald[m]> | "dies" and "fails" etc aren't useful |
| 2021-08-15 12:01:14 | <arahael> | Ok, one moment... |
| 2021-08-15 12:01:24 | <tomsmeding> | thou shalt not sleep |
| 2021-08-15 12:03:29 | <fvr> | using nix for haskell dependencies for a few months now and I forgot cabal update exists lol |
| 2021-08-15 12:04:05 | × | Pickchea quits (~private@user/pickchea) (Ping timeout: 252 seconds) |
| 2021-08-15 12:04:12 | <maerwald[m]> | You mean a freeze file? |
| 2021-08-15 12:05:35 | <arahael> | https://gist.github.com/arafangion/a5d8606f798c3319cf3fab8495f73d80 |
| 2021-08-15 12:05:51 | <arahael> | Incidentially, I am using nix, but not debugging further tonight I'm afraid. |
| 2021-08-15 12:05:59 | <arahael> | (And it's just cabal in a nix-shell) |
| 2021-08-15 12:06:33 | <arahael> | maerwald[m], tomsmeding: Is that log what you need, though? |
| 2021-08-15 12:06:46 | <maerwald[m]> | MonadFail |
| 2021-08-15 12:06:58 | <maerwald[m]> | Update your ghc lol |
| 2021-08-15 12:07:04 | <tomsmeding> | lol |
| 2021-08-15 12:07:15 | <tomsmeding> | did 8.6.5 have no MonadFail yet? |
| 2021-08-15 12:07:23 | <tomsmeding> | but yeah, in general, update your ghc |
| 2021-08-15 12:07:41 | <tomsmeding> | arahael: and yes that's the log :) |
| 2021-08-15 12:07:45 | <arahael> | tomsmeding: Awesome. :) |
| 2021-08-15 12:08:42 | <arahael> | maerwald[m]: What can I read to learn about the MonadFail thing? Will put it in a browser tab for now... Is this the main page for it? https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-fail |
| 2021-08-15 12:09:01 | <arahael> | tomsmeding: I'll update ghc later in the week! |
| 2021-08-15 12:10:17 | × | Vajb quits (~Vajb@hag-jnsbng11-58c3ab-85.dhcp.inet.fi) (Ping timeout: 258 seconds) |
| 2021-08-15 12:10:20 | <tomsmeding> | arahael: MonadFail exists and works as it is supposed to since ghc 8.8 |
| 2021-08-15 12:10:31 | <tomsmeding> | (as seen in the Transitional Strategy list on the page you linked) |
| 2021-08-15 12:10:33 | <maerwald[m]> | MonadFail was about breaking everyones code and introduce a lot of ifdefs around imports. It achieved thst goal |
| 2021-08-15 12:10:52 | <tomsmeding> | :D |
| 2021-08-15 12:11:20 | <tomsmeding> | it was also about fixing a design imperfection |
| 2021-08-15 12:11:26 | <tomsmeding> | but that's secondary |
| 2021-08-15 12:11:27 | <arahael> | Heh, cool. So next chance i get into this, I should first update ghc to at _least_ 8.8 (in practice: The latest I have on nixos), and then read up on this MonadFail thing just for background info. |
| 2021-08-15 12:11:34 | <arahael> | Thanks. :) |
| 2021-08-15 12:11:36 | <tomsmeding> | sounds good |
| 2021-08-15 12:11:41 | <tomsmeding> | now you can sleep :) |
| 2021-08-15 12:11:42 | <maerwald[m]> | 8.10.6 should be fine |
| 2021-08-15 12:12:27 | <arahael> | Awesome :) |
| 2021-08-15 12:12:31 | <arahael> | THanks for that! |
| 2021-08-15 12:13:36 | <fvr> | I think it should also be a fix in the hpath-directory unless supporting 8.6.5 is not a goal |
| 2021-08-15 12:13:54 | <arahael> | fvr: I have no reason to stick with 8.6.5. |
| 2021-08-15 12:14:22 | <fvr> | I meant non-goal for the library |
| 2021-08-15 12:14:49 | <maerwald[m]> | fvr: ya, PR? |
| 2021-08-15 12:15:02 | <tomsmeding> | fvr: the real fix, if possible, would be that hpath-directory has (streamly < 0.8 && streamly-posix == 0.14.*) || (streamly >= 0.8 && streamly-posix >= 0.14.2.1) |
| 2021-08-15 12:15:03 | <maerwald[m]> | I'm lazy on my bed |
| 2021-08-15 12:15:05 | <tomsmeding> | not sure if cabal can do that |
| 2021-08-15 12:15:11 | <maerwald[m]> | Can't fix all of it |
| 2021-08-15 12:15:30 | <fvr> | maerwald: sure, though I hate to download a old ghc just to test it lol |
| 2021-08-15 12:16:04 | <maerwald[m]> | tomsmeding: we can also msrk 0.14.2.0 as broken |
| 2021-08-15 12:16:23 | <maerwald[m]> | But that won't fix it for freeze files etc |
| 2021-08-15 12:16:24 | → | Vajb joins (~Vajb@hag-jnsbng11-58c3ab-85.dhcp.inet.fi) |
| 2021-08-15 12:16:46 | <maerwald[m]> | fvr: ghcup install gch 8.6.5 |
| 2021-08-15 12:16:52 | <tomsmeding> | maerwald[m]: that wouldn't fix anything, right? hpath-directory has 0.14.* on streamly-posix so cabal could just pixk 0.14.1 |
| 2021-08-15 12:17:03 | <tomsmeding> | s/pixk/pick/ |
| 2021-08-15 12:17:26 | <maerwald[m]> | Can revbump tar-bytestring too |
| 2021-08-15 12:18:09 | <tomsmeding> | so that people can depend on the latest tar-bytestring and be cool? |
| 2021-08-15 12:19:03 | <maerwald[m]> | I'm still not sure how that solver error happened |
| 2021-08-15 12:20:09 | <maerwald[m]> | streamly-posix-0.1.0.1 depends on streamly (==0.7.*) |
| 2021-08-15 12:20:44 | <maerwald[m]> | streamly-posix-0.1.0.2 depends on streamly (>=0.7 && <0.9) |
| 2021-08-15 12:20:50 | <tomsmeding> | ooh you revised 0.1.0.1 |
| 2021-08-15 12:20:55 | <tomsmeding> | probably someone didn't cabal update? |
| 2021-08-15 12:20:57 | <maerwald[m]> | Yes |
| 2021-08-15 12:21:00 | <tomsmeding> | and didn't get the revision |
| 2021-08-15 12:21:15 | <maerwald[m]> | Revisions should be pulled in without cabal update, no? |
| 2021-08-15 12:21:24 | AlexNoo_ | is now known as AlexNoo |
| 2021-08-15 12:21:39 | <tomsmeding> | I wouldn't know, but aren't those just modifications of the cabal file? |
| 2021-08-15 12:21:46 | <maerwald[m]> | Yes |
| 2021-08-15 12:21:56 | <tomsmeding> | which get downloaded in bulk when doing 'cabal update' |
| 2021-08-15 12:22:22 | <maerwald[m]> | Maybe there's nothing to fix after all |
| 2021-08-15 12:22:36 | maerwald[m] | goes back to being lazy |
| 2021-08-15 12:23:03 | <tomsmeding> | with that revision you may be right that indeed, a cabal update will always fix this particular issue for tar-bytestring users |
| 2021-08-15 12:23:44 | <arahael> | i did do a cabal update (have gone to bed though so no laptop now) |
| 2021-08-15 12:24:02 | <tomsmeding> | which triggered a rebuild of the world, right? |
| 2021-08-15 12:24:39 | <arahael> | yeah it downloaded and built everything thr project depended on until it got that error. |
All times are in UTC.