!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

699 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure137 Servers

Load older messages


SenderMessageTime
20 Feb 2026
@alexfmpe:matrix.orgalexfmpe
 nix-repl> "abc\${def}"    
"abc\${def}"

nix-repl> ''abc\${def}''
error: undefined variable 'def'
       at «string»:1:9:
            1| ''abc\${def}''
             |         ^
00:05:20
@alexfmpe:matrix.orgalexfmpenah, I used both 1 and 2 single quotes above00:06:00
@alexfmpe:matrix.orgalexfmpeyours is the same as my 2 ', just not the 1 '00:06:27
@alexfmpe:matrix.orgalexfmpe *
nix-repl> "abc\${def}"    
"abc\${def}"

nix-repl> ''abc\${def}''
error: undefined variable 'def'
       at «string»:1:9:
            1| ''abc\${def}''
             |         ^
00:06:48
@woobilicious:matrix.orgwoobiliciousI guess maybe there's instances where you want to pass escapes from variables00:07:03
@woobilicious:matrix.orgwoobiliciousoh yeah somehow I thought you had two singles on that line00:07:36
@alexfmpe:matrix.orgalexfmpe
nix-repl> "abc''\def"    
"abc''def"
00:07:41
@alexfmpe:matrix.orgalexfmpe????00:07:44
@woobilicious:matrix.orgwoobilicious Tho \\ should just work lol 00:07:54
@alexfmpe:matrix.orgalexfmpeoh nevermind I don't have $ there00:08:31
@alexfmpe:matrix.orgalexfmpestill, don't much care for this escape-differently-in-multiline-strings business00:09:07
@alexfmpe:matrix.orgalexfmpehttps://nix.dev/manual/nix/2.24/language/syntax00:10:00
@alexfmpe:matrix.orgalexfmpe* still, don't much care for this escape-differently-in-indented-strings business00:10:11
@alexfmpe:matrix.orgalexfmpe ''\ escapes any other character. 00:10:21
@woobilicious:matrix.orgwoobilicious yeah I also don't know how it's sane to parse... I guess '' blah '' ${def} is invalid syntax, but still 00:10:26
@alexfmpe:matrix.orgalexfmpeneeds to know what goes after the '' to determine if it's the $ or we're ending the literal00:11:45
@woobilicious:matrix.orgwoobiliciousMentally parsing it definitely sucks, that has got to be the worst design idea beating space seperated lists by a tone. 00:13:42
@woobilicious:matrix.orgwoobilicious I guess it makes it easier to read than having like \\\\\\ -> ''\''\''\ 00:21:04
@woobilicious:matrix.orgwoobiliciousWho should I at in the PR?01:04:28
@woobilicious:matrix.orgwoobiliciousnevermind I think I found the list.01:07:57
@sternenseemann:systemli.orgsterni woobilicious: we should run at least some of the tests with sbv given how much intervention it needs 10:44:46
@sternenseemann:systemli.orgsterni45min test execution time is not really a problem in most cases10:45:08
@woobilicious:matrix.orgwoobilicious sterni: upstream recommends turning tests off, and I have zero clue how to disable test sets and a lot of them are broken due to nix paths being checked in the test suite. I don't know what you mean by "given how much intervention it needs", the package has been marked for 3 years as broken only due to missing optional binaries, the aforementioned path mismatches causing test failures. SBV seems to be working for me fine here. Note that sbv tests do code generation for SAT solvers, and then calls those SAT solves, these are not trivial fixes. 12:08:20
@magic_rb:matrix.redalder.orgmagic_rb alexfmpe
the escape character for "" is \, the escape character(s) for '''' is ''
12:39:32
@magic_rb:matrix.redalder.orgmagic_rbthey work exactly the same12:39:36
@sternenseemann:systemli.orgsterni woobilicious: well you wrote a patch for the path issues, so it should work 12:54:02
@sternenseemann:systemli.orgsternithe code gen and execution part means that we have little confidence it will work at runtime which the test suite helps with12:54:51
21 Feb 2026
@woobilicious:matrix.orgwoobilicious sterni: the maintainer doesn't think the patch is a good idea, doesn't think we'd need to run tests, we'd still need to package mathsat, and any other SAT solvers nixpkgs is missing, it's way too much effort for a package that no one is using. I agree that it would be nice to run but the return on maintenance burden isn't there. 01:49:34
@woobilicious:matrix.orgwoobiliciousthe other issue is we really shouldn't mark the package broken when say, the cvc5 tests are failing, when A user might have no interest in using cvc5 backend, and only the z3 backend.01:55:13
@woobilicious:matrix.orgwoobilicious Error in option parsing: Cannot use --nl-cov without configuring with --poly. This is a cvc5 test that fails for example. 01:56:33

There are no newer messages yet.


Back to Room ListRoom Version: 6