join function?
Is there something like that in Ginger? I see split, but no reverse operation. After obvious first guess - join - I also tried intercalate, but that didn't work either.
https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.join
You are right, join doesn't exist yet. If you'd like a stab at it, feel free to add it.
I wanted to give it a shot, but I can't compile the library (without changes, it should be the last commit in the master branch; d7ce850):
$ stack build
WARNING: Ignoring ginger's bounds on containers (>=0.6.4 && <0.7); using containers-0.6.2.1.
Reason: allow-newer enabled.
ghc: panic! (the 'impossible' happened)
(GHC version 8.8.3 for x86_64-unknown-linux):
Prelude.chr: bad argument: 1526726659
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
-- While building simple Setup.hs (scroll up to its section to see the error) using:
/mnt/data/stack/local-programs/x86_64-linux/ghc-tinfo6-8.8.3/bin/ghc-8.8.3 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-3.0.1.0 /mnt/data/stack/stack-root/setup-exe-src/setup-mPHDZzAJ.hs /mnt/data/stack/stack-root/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /mnt/data/stack/stack-root/setup-exe-cache/x86_64-linux-tinfo6/tmp-Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.3
Process exited with code: ExitFailure 1
Are there any special steps needed?
I just tried, ginger builds fine on both ghc 8.8.3 and 8.10.2 (x86_64). However, I am not using stack, so maybe that's the problem?
In any case, the "the 'impossible' happened" error is really usually a bug in GHC, not in the code it compiles, so I'd suggest reporting this, as suggested (though chances are that this has already been fixed in GHC 9.0 or 9.2).