Newest at the top
2025-05-01 22:21:08 +0200 | <tomsmeding> | it's often the case that `cabal build` options correspond to keys under a `package` clause in cabal.project |
2025-05-01 22:20:25 +0200 | <sim590> | so, i just tried `program-options` and it doesn't work. But, your other suggestion with a `cabal.project.local` file and the line `packages .` and then `package opendht-hs` with the config under that section did the trick! |
2025-05-01 22:17:45 +0200 | <tomsmeding> | sim590: I see 'program-options' in the cabal documentation, not 'program-default-options'. Have you tried 'program-options' instead? |
2025-05-01 22:17:42 +0200 | sprotte24 | (~sprotte24@p200300d16f04420079bd62a2defad9dd.dip0.t-ipconnect.de) |
2025-05-01 22:16:21 +0200 | <tomsmeding> | (substituting a newline for \n and indentation for \t, naturally) |
2025-05-01 22:16:04 +0200 | <tomsmeding> | sim590: have you tried putting `package opendht-hs\n\tc2hs-options: -C -std=gnu18` in cabal.project? |
2025-05-01 22:15:44 +0200 | tromp | (~textual@2001:1c00:3487:1b00:81f6:6a75:5fad:c9b4) (Quit: My iMac has gone to sleep. ZZZzzz…) |
2025-05-01 22:15:26 +0200 | <sim590> | But this `cabal v2-build --c2hs-options="-C -std=gnu18"` works on the command line. |
2025-05-01 22:13:51 +0200 | <sim590> | tomsmeding: yeah and it doesn't wrk. Let me upload what I tried: https://paste.debian.net/1372745/. |
2025-05-01 22:12:13 +0200 | <tomsmeding> | sim590: have you tried just putting `c2hs-options: ...` in your .cabal file (not cabal.project)? It's not listed in the docs, but maybe they skipped it |
2025-05-01 22:12:04 +0200 | __jmcantrell__ | (~weechat@user/jmcantrell) (Ping timeout: 276 seconds) |
2025-05-01 22:12:00 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 268 seconds) |
2025-05-01 22:11:26 +0200 | <sim590> | int-e: is there an equivalent t the ~/.cabal/config file per project? I want that config to be effective for my repo. |
2025-05-01 22:11:08 +0200 | <int-e> | Sorry, I searched for "c2hs" and I forgot that hsc2hs is its own thing. |
2025-05-01 22:10:28 +0200 | <int-e> | hmm maybe .cabal files don't have a setting for this then |
2025-05-01 22:10:13 +0200 | <tomsmeding> | because I saw that one and skipped it because the question was about c2hs |
2025-05-01 22:10:05 +0200 | <int-e> | it's not |
2025-05-01 22:10:03 +0200 | <sim590> | tomsmeding: No, they are different I think. |
2025-05-01 22:09:58 +0200 | <int-e> | uh |
2025-05-01 22:09:49 +0200 | <tomsmeding> | int-e: is hsc2hs the same as c2hs? |
2025-05-01 22:09:38 +0200 | <sim590> | I thought it was foor .cabal file. |
2025-05-01 22:09:34 +0200 | <int-e> | https://cabal.readthedocs.io/en/latest/cabal-package-description-file.html#pkg-field-hsc2hs-options |
2025-05-01 22:09:30 +0200 | <sim590> | ahhhh OK |
2025-05-01 22:09:18 +0200 | <int-e> | sim590: that should work in ~/.cabal/config (or whatever the location is), but not in .cabal files, which has a different field name for this |
2025-05-01 22:09:16 +0200 | <sim590> | I see it. |
2025-05-01 22:09:13 +0200 | <sim590> | It's in the table? |
2025-05-01 22:08:57 +0200 | <tomsmeding> | oh, I don't see c2hs in that list |
2025-05-01 22:08:07 +0200 | <tomsmeding> | "It is important to not confuse these options with the ones listed in the build info section. ..." |
2025-05-01 22:07:55 +0200 | <tomsmeding> | on the docs page that you linked, right below the table of programs |
2025-05-01 22:07:30 +0200 | <sim590> | The first warning? |
2025-05-01 22:07:01 +0200 | <tomsmeding> | (and the second one) |
2025-05-01 22:07:00 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-05-01 22:06:51 +0200 | <tomsmeding> | sim590: see the first Warning |
2025-05-01 22:06:00 +0200 | <sim590> | What am I doing wrong? |
2025-05-01 22:05:58 +0200 | <sim590> | I can pass this option to cabal: --c2hs-options="-C -std=gnu18" and it works well. I can see it because it fixes an issue I'm having with c2hs. But, now I'm trying to add that to my cabal file and I looked it up here: https://cabal.readthedocs.io/en/latest/config.html#program-options, so I should be able to do this: https://paste.debian.net/1372741/, but it doesn't work. The flag is not passed. |
2025-05-01 22:05:52 +0200 | nitrix | (~nitrix@user/meow/nitrix) nitrix |
2025-05-01 22:02:02 +0200 | sim590 | (~simon@209-15-185-101.resi.cgocable.ca) |
2025-05-01 22:01:14 +0200 | gorignak | (~gorignak@user/gorignak) (Ping timeout: 245 seconds) |
2025-05-01 21:56:00 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 244 seconds) |
2025-05-01 21:55:02 +0200 | traxex | (traxex@user/traxex) traxex |
2025-05-01 21:54:16 +0200 | <dutchie> | nice, https://paste.tomsmeding.com/lYtaNeCf typechecks |
2025-05-01 21:52:31 +0200 | j1n37- | (~j1n37@user/j1n37) j1n37 |
2025-05-01 21:52:29 +0200 | j1n37 | (~j1n37@user/j1n37) (Ping timeout: 245 seconds) |
2025-05-01 21:52:28 +0200 | <lambdabot> | Applicative m => Maybe a -> MaybeT m a |
2025-05-01 21:52:27 +0200 | <EvanR> | :t MaybeT . pure |
2025-05-01 21:51:12 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-05-01 21:51:10 +0200 | <lambdabot> | Defined. |
2025-05-01 21:51:09 +0200 | <tomsmeding> | @let import Control.Monad.Trans.Maybe |
2025-05-01 21:51:06 +0200 | <lambdabot> | Unknown command, try @list |
2025-05-01 21:51:06 +0200 | <tomsmeding> | @import Control.Monad.Trans.Maybe |