Newest at the top
2024-10-28 20:28:46 +0100 | son0p | (~ff@186.119.84.216) son0p |
2024-10-28 20:28:17 +0100 | LukeHoersten | (~LukeHoers@user/lukehoersten) LukeHoersten |
2024-10-28 20:28:02 +0100 | <[exa]> | lxsameer: you might steal it from hackage-server pkg, there's `flatDependencies :: GenericPackageDescription -> [[Dependency]]`, the package description type is from cabal-syntax |
2024-10-28 20:26:45 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-10-28 20:26:14 +0100 | <geekosaur> | dependency resolving is in the cabal-install-solver package fwiw |
2024-10-28 20:24:44 +0100 | <lxsameer> | probably |
2024-10-28 20:23:40 +0100 | <[exa]> | or there's some cooler way that's not super obvious |
2024-10-28 20:23:34 +0100 | ljdarj | (~Thunderbi@user/ljdarj) (Ping timeout: 252 seconds) |
2024-10-28 20:23:14 +0100 | <[exa]> | yap |
2024-10-28 20:22:56 +0100 | <lxsameer> | curl -H 'Accept: application/json' https://hackage.haskell.org/package/aeson/dependencies |
2024-10-28 20:22:41 +0100 | <lxsameer> | it returns html only |
2024-10-28 20:22:31 +0100 | <lxsameer> | no that's not the case here |
2024-10-28 20:22:06 +0100 | <sclv> | if you pass a different content type you will get json not html |
2024-10-28 20:21:43 +0100 | <sclv> | the hackage api is restful json and self-documented, the lib to interact with it is wreq or any equivalent |
2024-10-28 20:21:42 +0100 | <lxsameer> | *html |
2024-10-28 20:21:37 +0100 | <lxsameer> | but it only returns http |
2024-10-28 20:21:34 +0100 | <[exa]> | there's a /package/???/dependencies endpoint but that's not API per se, it returns HTML |
2024-10-28 20:21:32 +0100 | <lxsameer> | [exa]: it has the endpoint for it according to https://hackage.haskell.org/api#serverapi |
2024-10-28 20:21:16 +0100 | weary-traveler | (~user@user/user363627) user363627 |
2024-10-28 20:20:33 +0100 | <[exa]> | ok not sure if that's in hackage API, intuitively I'd say you download and parse the .cabal file |
2024-10-28 20:19:02 +0100 | <lxsameer> | oh so do you know how to get a list of dependencies of a package? given the name of the package only and not a cabal file |
2024-10-28 20:18:10 +0100 | <[exa]> | ah the dependency solver is hardly a part of the API |
2024-10-28 20:17:45 +0100 | <lxsameer> | and hackage-api seems to lack the dependency resolving part |
2024-10-28 20:17:17 +0100 | <[exa]> | :( |
2024-10-28 20:16:54 +0100 | <lxsameer> | [exa]: cabal-install does not export that module as far as I know |
2024-10-28 20:16:35 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 252 seconds) |
2024-10-28 20:13:33 +0100 | sadmax | (~user@64.130.91.66) |
2024-10-28 20:11:35 +0100 | sawilagar | (~sawilagar@user/sawilagar) sawilagar |
2024-10-28 20:10:48 +0100 | sawilagar | (~sawilagar@user/sawilagar) (Remote host closed the connection) |
2024-10-28 20:09:35 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) |
2024-10-28 20:09:12 +0100 | <[exa]> | (not at all sure how complete that is. cabal-install pkg has Distribution.Client.xxx modules that might contain interesting stuff too) |
2024-10-28 20:07:01 +0100 | <[exa]> | lxsameer: https://hackage.haskell.org/package/hackage-api ? |
2024-10-28 20:03:59 +0100 | philopsos | (~caecilius@user/philopsos) (Quit: Lost terminal) |
2024-10-28 20:03:45 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 248 seconds) |
2024-10-28 20:03:07 +0100 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
2024-10-28 20:00:38 +0100 | caconym | (~caconym@user/caconym) caconym |
2024-10-28 20:00:27 +0100 | alioguzhan | (~Thunderbi@78.173.91.30) |
2024-10-28 20:00:01 +0100 | caconym | (~caconym@user/caconym) (Quit: bye) |
2024-10-28 19:59:16 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-10-28 19:51:28 +0100 | weary-traveler | (~user@user/user363627) (Remote host closed the connection) |
2024-10-28 19:48:38 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 272 seconds) |
2024-10-28 19:47:07 +0100 | jumper149 | (~jumper149@base.felixspringer.xyz) jumper149 |
2024-10-28 19:46:01 +0100 | <lxsameer> | hey folks, do you know any library to interact with hackage API? |
2024-10-28 19:42:51 +0100 | ham | (~ham@user/ham) (Ping timeout: 252 seconds) |
2024-10-28 19:41:12 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-10-28 19:40:50 +0100 | hamster | (~ham@user/ham) ham |
2024-10-28 19:37:18 +0100 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
2024-10-28 19:33:22 +0100 | kuribas | (~user@ptr-17d51epnnpcnu3v8qjj.18120a2.ip6.access.telenet.be) (Remote host closed the connection) |
2024-10-28 19:23:15 +0100 | euleritian | (~euleritia@dynamic-176-006-145-033.176.6.pool.telefonica.de) |
2024-10-28 19:22:38 +0100 | euleritian | (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 255 seconds) |