I wanted to install llvm-hs with the command cabal install llvm-hs -fshared-llvm, according to the installation guide of Accelerate on the website: https://www.
cabal install llvm-hs -fshared-llvm