2026/03/02

Newest at the top

2026-03-02 13:42:39 +0100vanishingideal(~vanishing@user/vanishingideal) vanishingideal
2026-03-02 13:31:34 +0100morj_away(~morj@user/morj) morj
2026-03-02 13:30:18 +0100 <[exa]> :D
2026-03-02 13:30:16 +0100 <[exa]> thanks
2026-03-02 13:30:14 +0100 <[exa]> ah ok I guess this wins
2026-03-02 13:30:13 +0100 <merijn> [exa]: https://cabal.readthedocs.io/en/3.4/cabal-commands.html?highlight=env#cabal-v2-run
2026-03-02 13:29:36 +0100 <merijn> cabal supports shebang execution where you can write the cabal file as comment at the top
2026-03-02 13:29:19 +0100 <merijn> [exa]: fyi
2026-03-02 13:25:14 +0100misterfish(~misterfis@84.53.85.146) misterfish
2026-03-02 13:23:13 +0100Guest25(~Guest25@2001:6b0:d:2fa::104)
2026-03-02 13:20:30 +0100KindFoxo(~KindFoxo@user/KindoFoxo) KindoFoxo
2026-03-02 13:16:45 +0100 <[exa]> I thought `cabal exec --build-depends containers -- ghc blah.hs ...
2026-03-02 13:16:22 +0100 <[exa]> ideally with least environment setup involved
2026-03-02 13:16:07 +0100 <[exa]> run a ghc on an ad-hoc file that requires a library
2026-03-02 13:15:41 +0100 <merijn> [exa]: What exactly are you trying to do?
2026-03-02 12:53:37 +0100hakutaku(~textual@user/hakutaku) hakutaku
2026-03-02 12:45:55 +0100tremon(~tremon@83.80.159.219) (Quit: getting boxed in)
2026-03-02 12:40:02 +0100vanishingideal(~vanishing@user/vanishingideal) (Ping timeout: 248 seconds)
2026-03-02 12:26:10 +0100xff0x(~xff0x@2405:6580:b080:900:f8aa:9656:36aa:e9bc)
2026-03-02 12:23:26 +0100tales(~tales@149.167.1.176) (Remote host closed the connection)
2026-03-02 12:08:44 +0100kuribas(~user@ip-188-118-57-242.reverse.destiny.be) kuribas
2026-03-02 12:07:35 +0100juri_(~juri@217-114-215-140.pool.ovpn.com) juri_
2026-03-02 12:07:27 +0100aku(aku@65.108.245.241) eagleflo
2026-03-02 12:07:01 +0100Enrico63(~Enrico63@host-80-104-109-187.retail.telecomitalia.it) (Quit: Client closed)
2026-03-02 12:06:59 +0100acidjnk_new3(~acidjnk@p200300d6e700e526dbe7f3b147cdd5b9.dip0.t-ipconnect.de) (Ping timeout: 245 seconds)
2026-03-02 12:05:24 +0100CiaoSen(~Jura@2a02:8071:64e1:da0:5a47:caff:fe78:33db) CiaoSen
2026-03-02 12:04:42 +0100 <[exa]> merijn: is there any workalike of --build-depends option for `cabal exec` ?
2026-03-02 12:04:21 +0100aku(aku@65.108.245.241) (Quit: Lost terminal)
2026-03-02 12:04:09 +0100acidjnk_new(~acidjnk@p200300d6e700e5876e445e500c43f7e0.dip0.t-ipconnect.de)
2026-03-02 11:59:56 +0100juri_(~juri@217-114-215-140.pool.ovpn.com) (Ping timeout: 252 seconds)
2026-03-02 11:59:36 +0100 <[exa]> merijn Leary: thanks :)
2026-03-02 11:59:29 +0100 <[exa]> let's nuke some .cabal then :)
2026-03-02 11:59:21 +0100 <[exa]> ok great
2026-03-02 11:59:19 +0100 <[exa]> oh it's actually the last example in `cabal repl --help`
2026-03-02 11:57:31 +0100 <merijn> either a small cabal env or passing the dependency as a flag to cabal and using cabal repl over ghci
2026-03-02 11:57:16 +0100 <[exa]> but that's a bit too much work for a random hack
2026-03-02 11:57:15 +0100misterfish(~misterfis@84.53.85.146) (Ping timeout: 245 seconds)
2026-03-02 11:57:09 +0100 <[exa]> the workaround is to make a small cabal env
2026-03-02 11:57:00 +0100 <[exa]> yap, my usecase is mainly "hey I have a ghci here and I want containers"
2026-03-02 11:56:56 +0100 <merijn> [exa]: --lib does a global install into the old global package database, forcing EVERYTHING to use that exact version of the dependency you installed via --lib
2026-03-02 11:56:29 +0100 <merijn> [exa]: Basically, in the olden days you had a single global library database that had to be consistent or things exploded. In v2 the package database is automatically generated per project (allowing arbitrary many parallel installs of the same dependencies as long as they don't conflict "within a project")
2026-03-02 11:55:40 +0100 <[exa]> :D
2026-03-02 11:55:38 +0100 <[exa]> any good alternative if I want to just play
2026-03-02 11:55:20 +0100 <merijn> It's hacky bypass for the new v2-build order
2026-03-02 11:54:55 +0100 <merijn> [exa]: --lib is the devil, never use it
2026-03-02 11:52:43 +0100 <[exa]> ah, okay. :D
2026-03-02 11:52:18 +0100 <Leary> Yes.
2026-03-02 11:51:42 +0100 <[exa]> Leary: would that count as weird ^ ?
2026-03-02 11:51:28 +0100 <[exa]> I assume it's because I yoloed and did global package installs with `--lib` etc
2026-03-02 11:51:12 +0100 <gentauro> sshine: what kind of "sourcery" do you put in `$CONFIG`? https://github.com/sshine/evm-opcodes/blob/09f7e8c5e3a19140a698fb161d2e4aee0b7a3843/.github/workfl…