Logs: freenode/#haskell
| 2020-11-17 19:03:47 | <merijn> | You can have wildcards without extension at all |
| 2020-11-17 19:03:52 | <merijn> | s/can/can't |
| 2020-11-17 19:04:09 | <monochrom> | "If a wildcard is used, it must be used with an extension, so data-files: data/* is not allowed." |
| 2020-11-17 19:04:11 | <tomjaguarpaw> | cabal: invalid file glob 'foo/*'. Wildcards '*' are only allowed in place of |
| 2020-11-17 19:04:11 | <tomjaguarpaw> | the file name, not in the directory name or file extension. If a wildcard is |
| 2020-11-17 19:04:11 | <tomjaguarpaw> | used it must be with an file extension. |
| 2020-11-17 19:04:26 | <tomjaguarpaw> | (but with cabal sdist only, cabal new-build doesn't show the error) |
| 2020-11-17 19:04:54 | <monochrom> | Oh, generally a lot of these rules are unenforced until sdist |
| 2020-11-17 19:05:28 | <merijn> | ah, cabal check also complains about it |
| 2020-11-17 19:05:37 | <monochrom> | Another one is if you forget your other-modules: field, you only get bitten when sdist decides to not include your source code. |
| 2020-11-17 19:06:06 | <merijn> | monochrom: That's why haskell-ci only tests via sdist+unpack |
| 2020-11-17 19:06:44 | <sclv> | i thought the new warn home modules stuff warns about missing other modules nowadays |
| 2020-11-17 19:07:03 | <sclv> | its all part of the messy legacy of how cabal relies in part on ghc's module discovery instead of doing its own entirely |
| 2020-11-17 19:07:07 | <merijn> | sclv: You have to use a ghc that's new enough |
| 2020-11-17 19:07:25 | × | Ariakenom quits (~Ariakenom@h-98-128-229-104.NA.cust.bahnhof.se) (Quit: Leaving) |
| 2020-11-17 19:10:20 | × | foursaph quits (~sergiu@dynamic-077-008-009-052.77.8.pool.telefonica.de) (Quit: leaving) |
| 2020-11-17 19:11:13 | <merijn> | Fortunately, I don't have to care about properly packaging this code, so who cares :p |
| 2020-11-17 19:13:42 | <merijn> | All problems can be solved by caring less and lowering your standards! Whoo! \o/ |
| 2020-11-17 19:13:56 | <monochrom> | :) |
| 2020-11-17 19:14:21 | <monochrom> | Will you also be using "cabal install" down the road? Because that's another time data-files: really counts. |
| 2020-11-17 19:14:41 | <merijn> | monochrom: Well, that's actually were I ran into it not working |
| 2020-11-17 19:14:45 | <monochrom> | But if not, if you're just going "cabal run", I think you're set. |
| 2020-11-17 19:14:49 | <merijn> | monochrom: But I have a simple life hack |
| 2020-11-17 19:15:00 | <merijn> | monochrom: Just don't list the data files at all! |
| 2020-11-17 19:15:36 | <merijn> | I only need them for some codepaths I don't care about now anyway |
| 2020-11-17 19:15:44 | <monochrom> | I wonder how hard it is to enlist "*.dat *.txt *.bin" |
| 2020-11-17 19:16:05 | <merijn> | monochrom: they're symlinks :p |
| 2020-11-17 19:16:43 | <monochrom> | OK I begin to fathom how much you meant "abuse" now. |
| 2020-11-17 19:17:28 | × | Boomerang quits (~Boomerang@xd520f68c.cust.hiper.dk) (Ping timeout: 256 seconds) |
| 2020-11-17 19:18:51 | <merijn> | monochrom: I have a make based build system that ends up calling cabal, but the Haskell code needs access to C++ build artifacts, so I have relative symlinks in data-files that point to the right executables/objects :p |
| 2020-11-17 19:19:10 | → | Ariakenom joins (~Ariakenom@h-98-128-229-104.NA.cust.bahnhof.se) |
| 2020-11-17 19:19:27 | → | chaosmasttter joins (~chaosmast@p200300c4a73c52013d9d8982c174fa36.dip0.t-ipconnect.de) |
| 2020-11-17 19:19:50 | monochrom | cries |
| 2020-11-17 19:19:59 | <monochrom> | This makes baby jesus cry. |
| 2020-11-17 19:20:35 | <merijn> | monochrom: It's simple, don't ever try to install or sdist :) |
| 2020-11-17 19:21:05 | × | spatchkaa quits (~spatchkaa@S010600fc8da47b63.gv.shawcable.net) (Ping timeout: 240 seconds) |
| 2020-11-17 19:21:10 | × | nuncanada quits (~dude@179.235.160.168) (Read error: Connection reset by peer) |
| 2020-11-17 19:22:36 | × | britva quits (~britva@31-10-157-156.cgn.dynamic.upc.ch) (Quit: This computer has gone to sleep) |
| 2020-11-17 19:22:41 | <merijn> | monochrom: If people want robuster packaging that works beyond "clone the repo and run make" they should spend more funding on engineering in academia :p |
| 2020-11-17 19:23:13 | <monochrom> | You already have a makefile so I suppose it is not a stretch to add "make install" and script its Turing-complete behaviour to your heart's content. |
| 2020-11-17 19:23:32 | <merijn> | monochrom: Ah, see I have a simpler solution |
| 2020-11-17 19:23:34 | <monochrom> | and even "make run" |
| 2020-11-17 19:23:44 | <merijn> | monochrom: "just don't allow installs" |
| 2020-11-17 19:23:57 | <monochrom> | BTW why symlinks, why not hardlinks? |
| 2020-11-17 19:24:16 | <merijn> | monochrom: That doesn't work across git clones |
| 2020-11-17 19:24:21 | <monochrom> | Oh darn |
| 2020-11-17 19:24:28 | <merijn> | monochrom: Since the symlinks are in VCS, the build artifacts aren't |
| 2020-11-17 19:24:46 | → | britva joins (~britva@2a02:aa13:7240:2980:7da5:a1a0:c038:90b4) |
| 2020-11-17 19:24:52 | <monochrom> | I guess this is what people mean by "sweet spot" |
| 2020-11-17 19:24:55 | <merijn> | monochrom: Actually, my actual solution is much more genius/maddening/depressing than make run :p |
| 2020-11-17 19:25:06 | <monochrom> | Actually make it Pareto optimum hahaha |
| 2020-11-17 19:25:22 | <merijn> | monochrom: I have differently named symlinks to 1 script: https://github.com/merijn/Belewitte/blob/master/cabal-run.sh |
| 2020-11-17 19:25:45 | <merijn> | monochrom: Which use make to find the right directory/executables, then invokes cabal v2-run based on the name of the symlink :p |
| 2020-11-17 19:25:47 | <monochrom> | "any tiny pertubation from this seemingly awkward arrangement, you would be actually worse off" |
| 2020-11-17 19:25:58 | → | servo joins (servo@41.141.56.25) |
| 2020-11-17 19:26:15 | × | carlomagno quits (~cararell@148.87.23.11) (Quit: Leaving.) |
| 2020-11-17 19:26:21 | <merijn> | monochrom: "organically grown" :p |
| 2020-11-17 19:26:31 | → | foursaph_ joins (~foursaph@dynamic-077-008-009-052.77.8.pool.telefonica.de) |
| 2020-11-17 19:27:16 | × | invaser quits (~Thunderbi@31.148.23.125) (Ping timeout: 240 seconds) |
| 2020-11-17 19:27:17 | <monochrom> | I have understood the trick of arg[0]-dependent behaviour for a long time. That one isn't too bad. |
| 2020-11-17 19:27:24 | <merijn> | monochrom: tbh, aside from the fact the cabal/data-files interaction with make is insane it's stunningly robust. |
| 2020-11-17 19:27:59 | <servo> | hi |
| 2020-11-17 19:28:21 | <merijn> | monochrom: I've have cloned this repo to 7+ machines macOS & linux and it works flawlessly each time if the small handful of prerequisites (mostly GHC, cabal, gmake and a non-ancient clang/gcc) are installed |
| 2020-11-17 19:28:47 | → | christo joins (~chris@81.96.113.213) |
| 2020-11-17 19:29:22 | × | cosimone quits (~cosimone@2001:b07:ae5:db26:d849:743b:370b:b3cd) (Quit: cosimone) |
| 2020-11-17 19:29:23 | <merijn> | monochrom: I had to somehow turn it into something that my promotor can robustly check out and run without needing to know anything about Haskell besides "download these binaries here" and in the sense it's worked :p |
| 2020-11-17 19:30:02 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-11-17 19:30:04 | × | foursaph_ quits (~foursaph@dynamic-077-008-009-052.77.8.pool.telefonica.de) (Client Quit) |
| 2020-11-17 19:30:19 | × | hyperisco quits (~hyperisco@d192-186-117-226.static.comm.cgocable.net) (Read error: Connection reset by peer) |
| 2020-11-17 19:31:47 | → | acidjnk_new joins (~acidjnk@p200300d0c719ff874cf537f47d61e6af.dip0.t-ipconnect.de) |
| 2020-11-17 19:32:21 | × | Takumo quits (takumo@unaffiliated/takumokatekari) (Quit: WeeChat 2.8) |
| 2020-11-17 19:33:20 | → | nuncanada joins (~dude@179.235.160.168) |
| 2020-11-17 19:34:04 | → | foursaph joins (4d080934@dynamic-077-008-009-052.77.8.pool.telefonica.de) |
| 2020-11-17 19:34:12 | × | foursaph quits (4d080934@dynamic-077-008-009-052.77.8.pool.telefonica.de) (Remote host closed the connection) |
| 2020-11-17 19:34:25 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds) |
| 2020-11-17 19:34:38 | → | raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 2020-11-17 19:35:14 | → | jamm_ joins (~jamm@unaffiliated/jamm) |
| 2020-11-17 19:35:43 | × | sord937 quits (~sord937@gateway/tor-sasl/sord937) (Ping timeout: 240 seconds) |
| 2020-11-17 19:36:35 | × | Guest92179 quits (~ericb2@185.204.1.185) (Remote host closed the connection) |
| 2020-11-17 19:37:43 | <tomjaguarpaw> | What is a promotor? |
| 2020-11-17 19:38:43 | × | son0p quits (~son0p@181.136.122.143) (Quit: leaving) |
| 2020-11-17 19:38:45 | <tomsmeding> | phd thesis adviser? |
| 2020-11-17 19:38:50 | <merijn> | tomjaguarpaw: As in doctoral supervisor |
| 2020-11-17 19:40:34 | <tomjaguarpaw> | Aha |
| 2020-11-17 19:42:01 | hackage | haskoin-store 0.38.2 - Storage and index for Bitcoin and Bitcoin Cash https://hackage.haskell.org/package/haskoin-store-0.38.2 (jprupp) |
| 2020-11-17 19:43:00 | hackage | arxiv 0.0.2 - A client for the Arxiv API https://hackage.haskell.org/package/arxiv-0.0.2 (TobiasSchoofs) |
| 2020-11-17 19:43:30 | → | st8less joins (~st8less@2603:a060:11fd:0:68fe:5aed:dd91:2111) |
| 2020-11-17 19:46:35 | → | vacm joins (~vacwm@70.23.92.191) |
| 2020-11-17 19:46:38 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-11-17 19:47:36 | → | sord937 joins (~sord937@gateway/tor-sasl/sord937) |
| 2020-11-17 19:48:53 | → | v_m_v_ joins (~vm_v@31-10-157-87.cgn.dynamic.upc.ch) |
| 2020-11-17 19:49:15 | × | conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.) |
| 2020-11-17 19:50:07 | × | ericsagn1 quits (~ericsagne@2405:6580:0:5100:9c16:5b76:e160:ad6d) (Ping timeout: 260 seconds) |
| 2020-11-17 19:50:53 | × | sord937 quits (~sord937@gateway/tor-sasl/sord937) (Remote host closed the connection) |
| 2020-11-17 19:51:55 | → | sord937 joins (~sord937@gateway/tor-sasl/sord937) |
| 2020-11-17 19:52:06 | → | nineonine joins (~textual@50.216.62.2) |
| 2020-11-17 19:52:49 | → | conal joins (~conal@64.71.133.70) |
| 2020-11-17 19:55:50 | × | dead10cc quits (~rg@2607:fea8:2c40:307:1703:4aa6:d428:f7e7) (Ping timeout: 264 seconds) |
| 2020-11-17 19:56:44 | → | kaeru joins (~kaeru@185.163.110.116) |
| 2020-11-17 19:58:24 | → | spatchkaa joins (~spatchkaa@S010600fc8da47b63.gv.shawcable.net) |
All times are in UTC.