Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2020-11-25 15:40:25 <hekkaidekapus> PacoV: `cd yourProjectTopDir; cabal install stack2cabal; stack2cabal; cabal build`
2020-11-25 15:40:37 <PacoV> merijn: if pandoc-include-code depends on pandoc-types
2020-11-25 15:40:49 <PacoV> I can remove the later as an explicit dependency.
2020-11-25 15:41:37 × adm quits (~adm@43.229.88.197) (Remote host closed the connection)
2020-11-25 15:41:43 <merijn> PacoV: Yes, but pandoc-include-code depends on pandoc-types>=1.20 && <=1.20)
2020-11-25 15:41:46 <merijn> (see the error)
2020-11-25 15:41:59 adm joins (~adm@43.229.88.197)
2020-11-25 15:42:04 <merijn> And for some reason it forces the use of the installed pandoc-types which is 1.22
2020-11-25 15:42:05 × adm quits (~adm@43.229.88.197) (Remote host closed the connection)
2020-11-25 15:42:38 adm joins (~adm@43.229.88.197)
2020-11-25 15:42:57 <PacoV> Well, I can't even `cabal install` anything.
2020-11-25 15:43:07 <PacoV> But it works with `stack install`.
2020-11-25 15:43:19 <PacoV> Guess I f*cked up somehow.
2020-11-25 15:44:19 <merijn> PacoV: oh...
2020-11-25 15:44:28 <merijn> did you run "cabal install pandoc-types"?
2020-11-25 15:44:29 <hekkaidekapus> maerwald: Without me looking far, would know what is this about? `user error (expected ResolverRef instead of tag:yaml.org,2002:map tagged mapping)`
2020-11-25 15:44:38 <PacoV> Nop.
2020-11-25 15:44:42 <PacoV> Will do.
2020-11-25 15:44:48 <merijn> PacoV: No, don't :p
2020-11-25 15:45:12 <merijn> That's what I was gonna try and fix, but if you didn't then I dunno where it's getting pandoc-types from
2020-11-25 15:45:56 <maerwald> hekkaidekapus: what fails, stack2cabal?
2020-11-25 15:46:22 <PacoV> stack2cabal: user error (expected ResolverRef instead of tag:yaml.org,2002:map tagged mapping)
2020-11-25 15:46:25 <maerwald> where's the stack,yaml?
2020-11-25 15:46:25 <PacoV> Hum.
2020-11-25 15:46:49 × n0042 quits (d055ed89@208.85.237.137) (Remote host closed the connection)
2020-11-25 15:46:51 <maerwald> the pantry syntax is excessive, so it's hard to cover everything
2020-11-25 15:46:55 <PacoV> https://gitlab.com/pcoves/hakyll-contrib-i18n/-/blob/master/stack.yaml
2020-11-25 15:47:02 <hekkaidekapus> Yeah, see above the chain of commands I suggested to PacoV. The project is at <https://gitlab.com/pcoves/hakyll-contrib-i18n>
2020-11-25 15:47:13 <PacoV> hekkaidekapus: I've the same error.
2020-11-25 15:47:36 <hekkaidekapus> I know, I was using your project. ;)
2020-11-25 15:47:52 <hekkaidekapus> And maerwald is the maintainer of stack2cabal.
2020-11-25 15:47:56 <maerwald> yep, I can reproduce
2020-11-25 15:47:59 <hyperisco> if I have two prisms, how can I turn those into a traversal?
2020-11-25 15:48:14 <PacoV> Ho, ok, sorry.
2020-11-25 15:48:20 <maerwald> resolver: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/20.yaml
2020-11-25 15:48:21 <glguy> hyperisco: with .
2020-11-25 15:48:22 <maerwald> this fixed it
2020-11-25 15:48:33 <maerwald> but there's another error
2020-11-25 15:48:40 <siraben> Is there a variant of `simpleHttp` that automatically retries? I'm sending web requests concurrently but don't want the whole thing to stop because a single thread failed
2020-11-25 15:48:53 <hyperisco> glguy, I don't want one prism after the other, I want both in parallel
2020-11-25 15:49:33 <hyperisco> if I have a prism for the 1st value and 2nd value, I want a traversal over the 1st and 2nd values
2020-11-25 15:49:43 <hyperisco> I don't want a prism from the 1st value into the 2nd value of the 1st value
2020-11-25 15:49:56 <maerwald> hekkaidekapus: https://github.com/hasufell/stack2cabal/issues/26
2020-11-25 15:50:07 <maerwald> I think it needs some adjustments to support that snapshot file
2020-11-25 15:50:12 <hyperisco> or I want something other than a traversal that does this sort of thing
2020-11-25 15:50:34 <maerwald> hekkaidekapus: the parser is here https://github.com/hasufell/stack2cabal/blob/master/lib/StackageToHackage/Stackage/YAML.hs
2020-11-25 15:50:47 <glguy> hyperisco: you just want to traverse the structure twice then?
2020-11-25 15:50:55 <hyperisco> no
2020-11-25 15:51:03 <hyperisco> I have two prisms
2020-11-25 15:51:10 <hyperisco> both are from X to Y
2020-11-25 15:51:43 <hyperisco> okay lets put it this way… I have some lens to get deep into the structure
2020-11-25 15:51:47 <maerwald> hekkaidekapus: shouldn't be hard
2020-11-25 15:51:48 <PacoV> I made a clean install (deleted the ~/.cabal dir also) of cabal-install.
2020-11-25 15:51:55 <hyperisco> now I have two prisms, there are two ways to go, I want to traverse over both ways
2020-11-25 15:52:00 <hyperisco> I don't want to get deep into the structure twice
2020-11-25 15:52:11 <PacoV> I can `cabal update` but can't `cabal install stack2cabal` either.
2020-11-25 15:52:16 <glguy> Prisms degrade to traversals, so we can just forget that they are prisms
2020-11-25 15:52:41 × jonatanb quits (jonatanb@gateway/vpn/protonvpn/jonatanb) (Remote host closed the connection)
2020-11-25 15:52:44 <glguy> You can combine them in any way other than to run one after the other
2020-11-25 15:52:51 <hyperisco> that isn't what I want oO
2020-11-25 15:52:55 <glguy> Can't*
2020-11-25 15:53:27 <merijn> PacoV: Which os/distro?
2020-11-25 15:53:37 <glguy> If 'failing' does what you want you can use it
2020-11-25 15:53:40 <merijn> PacoV: What does "ghc-pkg list" show?
2020-11-25 15:53:41 <PacoV> Arch.
2020-11-25 15:53:45 <merijn> oof
2020-11-25 15:53:54 <PacoV> It gives me a shit tonne of warnings!
2020-11-25 15:53:56 × Maxdamantus quits (~Maxdamant@unaffiliated/maxdamantus) (Ping timeout: 240 seconds)
2020-11-25 15:54:03 jonatanb joins (jonatanb@gateway/vpn/protonvpn/jonatanb)
2020-11-25 15:54:06 <merijn> PacoV: Did you, by any chance install any packages via Arch's package manager?
2020-11-25 15:54:07 <hyperisco> I think we're talking past each other because I am using profunctor lenses
2020-11-25 15:54:13 <PacoV> Yep.
2020-11-25 15:54:17 <merijn> PacoV: RIP
2020-11-25 15:54:35 <PacoV> Ho, no big deal, I'll remove them.
2020-11-25 15:54:42 <glguy> hyperisco: the issues would be the same except they don't degrade automatically
2020-11-25 15:54:45 <merijn> PacoV: The Arch wiki should have a page on how to "unfuck" things :)
2020-11-25 15:54:46 <PacoV> Mainly pandoc.
2020-11-25 15:55:01 <PacoV> Haha, we all need this because of reasons.
2020-11-25 15:55:08 <hyperisco> if you compose two prisms you absolutely do not get what I am describing
2020-11-25 15:55:08 Maxdamantus joins (~Maxdamant@unaffiliated/maxdamantus)
2020-11-25 15:55:10 <hyperisco> I point back to my example
2020-11-25 15:55:13 <PacoV> I'll give i a try.
2020-11-25 15:55:21 <merijn> PacoV: Arch's Haskell packages have a...tendency to render your Haskell install unusable (if you ever get it working to begin with)
2020-11-25 15:55:22 <glguy> hyperisco: yeah I know,
2020-11-25 15:55:30 <hekkaidekapus> maerwald: Noted, thanks.
2020-11-25 15:55:40 conal joins (~conal@64.71.133.70)
2020-11-25 15:55:44 <merijn> PacoV: I believe there's several Arch wiki pages on the topic
2020-11-25 15:56:10 × royal_screwup21 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Quit: Connection closed)
2020-11-25 15:56:14 × conal quits (~conal@64.71.133.70) (Client Quit)
2020-11-25 15:56:15 <maerwald> hekkaidekapus: https://github.com/hasufell/stack2cabal/blob/e6fae40d913ed67363671fb7238e74afedd78ffc/lib/StackageToHackage/Stackage/YAML.hs#L87 needs another alternative for the syntax from the 20.yaml
2020-11-25 15:56:16 <glguy> Hyper for the parallel behavior look at whatever failing got turned into in this other library
2020-11-25 15:56:18 <merijn> PacoV: So, I believe the problem you have is the following: Arch's package manager is installing pandoc-types-1.22 into a global database forcing cabal-install to use it
2020-11-25 15:56:37 royal_screwup21 joins (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9)
2020-11-25 15:56:44 <maerwald> hekkaidekapus: it's quite unfortunate how conflated packages and deps in stack.yaml is
2020-11-25 15:56:48 <merijn> PacoV: But your other dependencies don't support pandoc-types-1.22 yet, so cabal-install is going "well, I can't find compatible versions of your dependencies!" (hence the error)
2020-11-25 15:56:48 <glguy> Failing assumes the two are disjoint
2020-11-25 15:57:18 <hyperisco> oh now this is feeling like I asked this 1-2 years ago
2020-11-25 15:57:34 <merijn> PacoV: If the systemwide pandoc-types install is gone cabal-install should simply pick an older (supported) pandoc-types
2020-11-25 15:57:44 <PacoV> I removed every bit of (easy to find) haskell packages and removed both ~/.cabal and ~/.stack.
2020-11-25 15:57:53 <hyperisco> and I think then I just decided it was too complicated to bother and went back to explicit recursion lol

All times are in UTC.