Haskell GHC build error: downloading archives is not supported

I am trying to link an external cpp library with haskell. Doing stack build seems like building correctly, but when I try to run stack repl , I get this error:

 ghc: panic! (the 'impossible' happened) (GHC version 8.0.1 for x86_64-unknown-linux): Loading archives not supported 

app.cabal

 executable app-server ... include-dirs: /usr/local/include extra-libraries: symengine stdc++ gmpxx gmp ... 

stack.yml

 flags: {} packages: - '.' extra-include-dirs: - /usr/local/include extra-lib-dirs: - /usr/local/lib extra-deps: [] extra-package-dbs: [] resolver: lts-7.1 

I tried this on mac osx sierra as well as debian jessie. Using ghc-8.0.1 (from lts-7.1). I installed symengine stdc++ gmpxx gmp on my machine.

Does anyone know what I'm doing wrong here?

+5
source share

Source: https://habr.com/ru/post/1259368/


All Articles