[mail] some small refactoring

3 jobs for 90-dev-hal-fixes in 53 minutes and 38 seconds (queued for 34 minutes and 24 seconds)
Status Job ID Name Coverage
  Test
passed #3399
deps

00:18:48

failed #3400
docs

00:10:14

passed #3401
test

00:24:36

 
Name Stage Failure
failed
docs Test
    runCmdDevNoErr (src/Gargantext/API/Dev.hs:70)
runCmdDevServantErr (src/Gargantext/API/Dev.hs:73)
runCmdReplEasy (src/Gargantext/API/Dev.hs:76)

-- While building package gargantext-0.0.5.7.9.1 (scroll up to its section to see the error) using:
/builds/gargantext/haskell-gargantext/.stack-root/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.6 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 haddock --html --hoogle --html-location=../$pkg-$version/ --haddock-option=--hyperlinked-source --haddock-option=--quickjump
Process exited with code: ExitFailure 1
Cleaning up file based variables
ERROR: Job failed: exit code 1