Merge branch 'adinapoli/issue-395' into 'dev'

Fix a bug in `buildPatterns` and friends

Closes #395

See merge request !413
4 jobs for dev in 128 minutes and 4 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Cabal
passed #18277
cabal

01:03:21

 
  Stack
passed #18278
stack

00:13:39

 
  Bench
manual #18279
allowed to fail manual
bench
 
  Test
failed #18280
test

00:51:03

 
Name Stage Failure
failed
test Test
Test suite garg-test-hspec: FAIL
Test suite logged to:
/builds/gargantext/haskell-gargantext/dist-newstyle/build/x86_64-linux/ghc-9.6.6/gargantext-0.0.7.4.7/t/garg-test-hspec/opt/test/gargantext-0.0.7.4.7-garg-test-hspec.log
0 of 1 test suites (0 of 1 test cases) passed.
Error: [Cabal-7125]
Tests failed for test:garg-test-hspec from gargantext-0.0.7.4.7.

Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1