Logs: freenode/#haskell
| 2020-09-28 12:15:22 | <svipal> | No I'm just dumb |
| 2020-09-28 12:15:23 | <merijn> | Copy paste fuck up? :p |
| 2020-09-28 12:15:29 | <svipal> | W o r s e |
| 2020-09-28 12:15:38 | <merijn> | You forgot to hit save! |
| 2020-09-28 12:16:12 | <svipal> | No I just switched which of the two names in the type table I was supposed to quote in the C code zzzzzzz |
| 2020-09-28 12:16:22 | × | rcdilorenzo quits (~rcdiloren@cpe-76-182-87-188.nc.res.rr.com) (Quit: rcdilorenzo) |
| 2020-09-28 12:16:37 | → | rcdilorenzo joins (~rcdiloren@cpe-76-182-87-188.nc.res.rr.com) |
| 2020-09-28 12:18:14 | × | phaul quits (~phaul@ruby/staff/phaul) (Ping timeout: 272 seconds) |
| 2020-09-28 12:18:46 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 246 seconds) |
| 2020-09-28 12:19:36 | → | phaul joins (~phaul@ruby/staff/phaul) |
| 2020-09-28 12:20:00 | → | schwuk joins (~schwuk@185.244.214.216) |
| 2020-09-28 12:20:54 | × | rcdilorenzo quits (~rcdiloren@cpe-76-182-87-188.nc.res.rr.com) (Client Quit) |
| 2020-09-28 12:21:12 | → | rcdilorenzo joins (~rcdiloren@cpe-76-182-87-188.nc.res.rr.com) |
| 2020-09-28 12:22:09 | × | svipal quits (5baf3116@91-175-49-22.subs.proxad.net) (Ping timeout: 245 seconds) |
| 2020-09-28 12:24:06 | → | Saukk joins (~Saukk@2001:998:f1:3966:96a6:dee2:2e9:fdf3) |
| 2020-09-28 12:25:38 | × | jgt quits (~jgt@46.250.27.223.pool.breezein.net) (Ping timeout: 256 seconds) |
| 2020-09-28 12:28:26 | → | svipal joins (5baf3116@91-175-49-22.subs.proxad.net) |
| 2020-09-28 12:28:54 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-09-28 12:29:29 | × | Stanley00 quits (~stanley00@unaffiliated/stanley00) (Remote host closed the connection) |
| 2020-09-28 12:30:27 | × | John20 quits (~John@82.46.59.122) (Ping timeout: 240 seconds) |
| 2020-09-28 12:30:30 | → | igghibu joins (~igghibu@37.120.201.90) |
| 2020-09-28 12:30:34 | × | polyphem quits (~p0lyph3m@2a02:810d:640:776c:76d7:55f6:f85b:c889) (Quit: WeeChat 2.9) |
| 2020-09-28 12:32:22 | × | igghibu quits (~igghibu@37.120.201.90) (Client Quit) |
| 2020-09-28 12:32:37 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 264 seconds) |
| 2020-09-28 12:33:41 | → | zyextant joins (~zyextant@217.138.205.68) |
| 2020-09-28 12:33:49 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 264 seconds) |
| 2020-09-28 12:34:27 | × | ahri quits (~ahri@178.209.40.84) (Quit: Ping timeout (120 seconds)) |
| 2020-09-28 12:35:15 | → | ahri joins (~ahri@178.209.40.84) |
| 2020-09-28 12:35:46 | <svipal> | with stack/cabal can I specify where to install a foreign lib once it's built ? |
| 2020-09-28 12:35:47 | × | ryansmccoy quits (~ryansmcco@193.37.254.27) (Ping timeout: 240 seconds) |
| 2020-09-28 12:35:58 | → | ryansmccoy joins (~ryansmcco@156.96.151.132) |
| 2020-09-28 12:37:19 | → | coot joins (~coot@37.30.55.132.nat.umts.dynamic.t-mobile.pl) |
| 2020-09-28 12:38:44 | <Xnuk> | Is it worth for trying cabal v2+ over stack? |
| 2020-09-28 12:39:06 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-09-28 12:39:35 | → | darjeeling_ joins (~darjeelin@122.245.121.113) |
| 2020-09-28 12:40:02 | → | raehik joins (~raehik@cpc96984-rdng25-2-0-cust109.15-3.cable.virginm.net) |
| 2020-09-28 12:41:22 | <svipal> | No idea |
| 2020-09-28 12:41:34 | <svipal> | Honestly I'm just using stack because it works for me |
| 2020-09-28 12:41:47 | × | dhil quits (~dhil@11.29.39.217.dyn.plus.net) (Ping timeout: 240 seconds) |
| 2020-09-28 12:42:45 | → | jgt joins (~jgt@46.250.27.223.pool.breezein.net) |
| 2020-09-28 12:43:05 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds) |
| 2020-09-28 12:43:46 | × | adam_wespiser quits (~adam_wesp@209.6.42.110) (Remote host closed the connection) |
| 2020-09-28 12:44:30 | → | adam_wespiser joins (~adam_wesp@209.6.42.110) |
| 2020-09-28 12:45:39 | → | v_m_v joins (~vm_v@2a02:aa12:3200:6480:3859:e660:d8f9:23e1) |
| 2020-09-28 12:46:37 | <[exa]> | Xnuk: does your setup explicitly require stack? (if not, you can avoid a lot of cruft) |
| 2020-09-28 12:48:05 | × | alp quits (~alp@2a01:e0a:58b:4920:9c53:5eed:91e4:af76) (Ping timeout: 246 seconds) |
| 2020-09-28 12:48:15 | <hc> | I'm getting the impression that stack is not entirely popular in the larger haskell community? |
| 2020-09-28 12:49:12 | <dminuoso> | Xnuk: Try it and see whether you like it? |
| 2020-09-28 12:49:16 | × | adam_wespiser quits (~adam_wesp@209.6.42.110) (Ping timeout: 256 seconds) |
| 2020-09-28 12:49:17 | <dminuoso> | It's, mostly, a drop in solution |
| 2020-09-28 12:49:27 | <yushyin> | hc: more of a 50:50 split |
| 2020-09-28 12:49:27 | <dminuoso> | Just run hpack once, then you can try cabal directly with your project |
| 2020-09-28 12:49:40 | <dminuoso> | In most cases it will just work, but you might have to adapt version bounds. |
| 2020-09-28 12:49:53 | <Uniaika> | hc: you can't have absolutes in a 30-year old community :) |
| 2020-09-28 12:50:04 | <dminuoso> | But really, stack and cabal are not the same thing, they have different mentalities. |
| 2020-09-28 12:50:39 | <hc> | By the way, are there any plans to allow multiple versions of the same package in the same binary? |
| 2020-09-28 12:50:53 | <dminuoso> | hc: No. |
| 2020-09-28 12:50:59 | <dminuoso> | Or rather, this presents really big challenges |
| 2020-09-28 12:51:06 | <dminuoso> | If you allowed that, you could not have interop between them |
| 2020-09-28 12:51:25 | → | drbean joins (~drbean@TC210-63-209-90.static.apol.com.tw) |
| 2020-09-28 12:51:29 | <hc> | I never looked into the implications; I just know that rust does it and it seems to work around certain issues for them pretty well |
| 2020-09-28 12:51:34 | <Xnuk> | Is there no more butterfly version resolving in cabal? |
| 2020-09-28 12:52:25 | <dminuoso> | Say if you got `t :: T` from libraryT 1.1, can you pass that to `f :: T -> A` from libraryT 1.2? |
| 2020-09-28 12:52:37 | <dminuoso> | How can we know whether this is safe? |
| 2020-09-28 12:52:52 | <Uniaika> | you'd have to encode that somehow in the interface file |
| 2020-09-28 12:53:36 | <hc> | hmm, two packages of the same version would never need to "interact" directly |
| 2020-09-28 12:53:36 | <yushyin> | oh this reminds me of JS and npm, and I'm getting nightmares |
| 2020-09-28 12:53:37 | <dminuoso> | And this might be obvious if you're the immediate user of those two, but through transitive versions, this can lead to highly incoherent code. |
| 2020-09-28 12:53:53 | <dminuoso> | Things become just much simpler if you demand coherency |
| 2020-09-28 12:53:56 | <Uniaika> | Xnuk: I think not? The last mention of it was from 2011 but I don't know anybody who does that in real-life |
| 2020-09-28 12:53:57 | <hc> | I wonder what rust did to make this work? |
| 2020-09-28 12:54:26 | <dminuoso> | hc: Are you sure you are not conflating things? |
| 2020-09-28 12:54:40 | <dminuoso> | Are you sure rust allows multiple versions of the same crate in a binary? |
| 2020-09-28 12:54:49 | <hc> | dminuoso: positive |
| 2020-09-28 12:54:52 | <dminuoso> | Fair enough |
| 2020-09-28 12:54:58 | <hc> | but only 99% sure |
| 2020-09-28 12:55:00 | <hc> | ;p |
| 2020-09-28 12:55:02 | → | alp joins (~alp@2a01:e0a:58b:4920:8d98:8295:f2f0:8a3d) |
| 2020-09-28 12:55:26 | <dminuoso> | hc: I see, so Ive looked at what Rust does, and it does the only reasonable thing |
| 2020-09-28 12:55:31 | <dminuoso> | It provides *no* interop between them |
| 2020-09-28 12:55:41 | <dminuoso> | So `T` from libraryT 1.1 and 1.2 are different types. |
| 2020-09-28 12:55:54 | <dminuoso> | And the symbols are hashed, so that they cant link |
| 2020-09-28 12:56:08 | <Uniaika> | > Cargo can indeed link multiple versions of some crate, but only one of those versions can be a direct dependency. The others are indirect references. |
| 2020-09-28 12:56:10 | <lambdabot> | <hint>:1:41: error: <hint>:1:41: error: parse error on input ‘of’ |
| 2020-09-28 12:56:12 | <dminuoso> | (that is, they are prefixed with a version hash, so that you cant resolve a mix-match) |
| 2020-09-28 12:56:16 | <idnar> | dminuoso: I thought ghc did allow this the same way |
| 2020-09-28 12:56:20 | <Uniaika> | from two years ago, dminuoso https://stackoverflow.com/questions/51714866/is-it-documented-that-cargo-can-download-and-bundle-multiple-versions-of-the-sam |
| 2020-09-28 12:57:04 | <dminuoso> | idnar: Possibly if you manually link? |
| 2020-09-28 12:57:14 | <dminuoso> | At least, with cabal you cant since it attempts to generate a coherent build plan |
| 2020-09-28 12:57:26 | <dminuoso> | So if you have two conflicting version constraints, cabal will error out |
| 2020-09-28 12:57:29 | → | thir joins (~thir@p200300f27f0fc60094e773283d7bf825.dip0.t-ipconnect.de) |
| 2020-09-28 12:58:59 | × | Lord_of_Life quits (~Lord@unaffiliated/lord-of-life/x-0885362) (Read error: Connection reset by peer) |
| 2020-09-28 12:59:31 | × | svipal quits (5baf3116@91-175-49-22.subs.proxad.net) (Remote host closed the connection) |
| 2020-09-28 12:59:32 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2020-09-28 12:59:33 | <dminuoso> | I think this is rather an artifact of cabal old-style |
| 2020-09-28 12:59:53 | → | Lord_of_Life joins (~Lord@unaffiliated/lord-of-life/x-0885362) |
| 2020-09-28 13:01:47 | → | catkiki joins (~catkiki@m90-134-157-227.cust.tele2.hr) |
| 2020-09-28 13:02:07 | → | st8less joins (~st8less@2603:a060:11fe:0:b186:dda4:132a:2a8a) |
| 2020-09-28 13:02:07 | × | thir quits (~thir@p200300f27f0fc60094e773283d7bf825.dip0.t-ipconnect.de) (Ping timeout: 260 seconds) |
| 2020-09-28 13:02:11 | × | alexm_ quits (~alexm_@161.8.233.138) (Read error: Connection reset by peer) |
All times are in UTC.