2024/12/28

Newest at the top

2024-12-28 15:09:15 +0100 <SrPx> ok thanks
2024-12-28 15:08:38 +0100 <Leary> SrPx: Your main `executable` stanza should have `ghc-options: -O2`, then separately you should have a `test-suite` stanza with `ghc-options: -O0`, which can presumably point to the same `Main.hs`. You then use `cabal test` instead of `cabal run`.
2024-12-28 15:07:46 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-28 15:07:29 +0100tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-12-28 15:07:03 +0100JuanDaugherty(~juan@user/JuanDaugherty) ()
2024-12-28 15:03:50 +0100 <int-e> I suspect you can't do that because it's `cabal build` further down the line either way. You can pass --(dis|en)able-optimization as a command line flag though.
2024-12-28 15:01:45 +0100fp(~Thunderbi@216-165-226-178.championbroadband.com) (Ping timeout: 252 seconds)
2024-12-28 15:00:25 +0100pavonia(~user@user/siracusa) (Quit: Bye!)
2024-12-28 14:59:00 +0100 <SrPx> how exactly can I have a cabal project that uses -O0 on cabal run and -O2 on cabal install? documentation is bad
2024-12-28 14:57:28 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 272 seconds)
2024-12-28 14:56:00 +0100rvalue(~rvalue@user/rvalue) rvalue
2024-12-28 14:55:23 +0100rvalue(~rvalue@user/rvalue) (Read error: Connection reset by peer)
2024-12-28 14:52:19 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-28 14:47:07 +0100euleritian(~euleritia@dynamic-176-007-157-163.176.7.pool.telefonica.de)
2024-12-28 14:46:37 +0100euleritian(~euleritia@dynamic-176-007-157-163.176.7.pool.telefonica.de) (Read error: Connection reset by peer)
2024-12-28 14:39:01 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 248 seconds)
2024-12-28 14:35:53 +0100Nixkernal(~Nixkernal@90.74.198.178.dynamic.cust.swisscom.net) Nixkernal
2024-12-28 14:35:17 +0100gmg(~user@user/gehmehgeh) gehmehgeh
2024-12-28 14:32:05 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-28 14:30:55 +0100gmg(~user@user/gehmehgeh) (Remote host closed the connection)
2024-12-28 14:30:55 +0100JuanDaugherty(~juan@user/JuanDaugherty) JuanDaugherty
2024-12-28 14:29:41 +0100 <int-e> The only thing the ghc distro package from Arch is useful for is to potentially bootstrap your own ghc that doesn't rug-pull your shared library with every update. But ghcup will be less hassle.
2024-12-28 14:27:17 +0100 <Leary> plitter: "I'm on arch linux" <-- You answered your own question.
2024-12-28 14:26:37 +0100euleritian(~euleritia@dynamic-176-007-157-163.176.7.pool.telefonica.de)
2024-12-28 14:21:51 +0100euleritian(~euleritia@dynamic-176-007-157-163.176.7.pool.telefonica.de) (Read error: Connection reset by peer)
2024-12-28 14:18:52 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 265 seconds)
2024-12-28 14:15:37 +0100euleritian(~euleritia@dynamic-176-007-157-163.176.7.pool.telefonica.de)
2024-12-28 14:14:28 +0100simplystuart(~simplystu@c-75-75-152-164.hsd1.pa.comcast.net) (Ping timeout: 252 seconds)
2024-12-28 14:13:53 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-28 14:11:32 +0100dsrt^(~dsrt@c-98-242-74-66.hsd1.ga.comcast.net) (Ping timeout: 252 seconds)
2024-12-28 14:09:42 +0100simplystuart(~simplystu@c-75-75-152-164.hsd1.pa.comcast.net)
2024-12-28 14:08:14 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-12-28 14:04:50 +0100 <plitter> Why am I getting so many errors with ghc-pkg -check? https://termbin.com/nb82 I'm on arch linux, and haven't really configured anything yet. I stumbled on these errors when trying to figure out how to build a small test program, and it failed until I added -dynamic to ghc.
2024-12-28 14:03:49 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-28 14:00:47 +0100 <SrPx> not perfect but my workflow is muuch better now
2024-12-28 14:00:31 +0100 <SrPx> okay thanks for the help
2024-12-28 14:00:26 +0100 <SrPx> hmm I see
2024-12-28 13:53:49 +0100plitter(~plitter@user/plitter) plitter
2024-12-28 13:53:37 +0100lxsameer(~lxsameer@Serene/lxsameer) lxsameer
2024-12-28 13:52:37 +0100euleritian(~euleritia@dynamic-176-007-157-163.176.7.pool.telefonica.de) (Ping timeout: 248 seconds)
2024-12-28 13:52:25 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 260 seconds)
2024-12-28 13:50:04 +0100tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
2024-12-28 13:47:28 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-28 13:43:08 +0100euleritian(~euleritia@dynamic-176-007-157-163.176.7.pool.telefonica.de)
2024-12-28 13:35:24 +0100 <Leary> Re the former option, it really shouldn't be something that disturbs your flow or substantially slows you down; I suspect you need a better (or better configured) WM.
2024-12-28 13:34:33 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 244 seconds)
2024-12-28 13:33:46 +0100 <Leary> You can either manually edit the haskell file, or write your automation there. E.g. an IO action that pull the most recently modified .hvml file from a test directory and runs it.
2024-12-28 13:30:52 +0100 <SrPx> unless you mean I should create a script to edit a comment in a Haskell file on HVM3 whenever I want to run an hvml file on VIM, which sounds hacky as hell
2024-12-28 13:30:17 +0100 <SrPx> Leary: how can I do that if the commands aren't static? for example if I want to run a file X.hvml, I'd do 'hvml run X.hvml'. that's not a static command I want to run every time I save a file
2024-12-28 13:30:11 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn