cabal

Statically link C++ library with a Haskell library

被刻印的时光 ゝ 提交于 2019-12-29 04:42:08
问题 Setup: I have a Haskell library HLib which makes calls to a C/C++ backend CLib for efficiency. The backend is small and specialized for use with HLib . The interface to CLib will only be exposed through HLib ; HLib tests, HLib benchmarks and third party libraries depending on HLib will not make direct FFI calls to CLib . From the test/benchmark/3rd party lib perspective, HLib should be appear purely Haskell. This means in the cabal file sections for, e.g., HLib tests, there should be no

ExitFailure 9 when trying to install ghc-mod using Cabal

孤街浪徒 提交于 2019-12-29 03:03:05
问题 When I try to install it with cabal, I get ~$ cabal install ghc-mod Resolving dependencies... [1 of 1] Compiling Main ( /tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/Setup.hs, /tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/dist/setup/Main.o ) /tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/Setup.hs:1:1: Warning: In the use of `runTests' (imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks): Deprecated: "Please use the new testing

Cabal not installing dependencies when needing profiling libraries?

拟墨画扇 提交于 2019-12-27 17:02:56
问题 I want to compile my program with profiling, so I run: $ cabal configure --enable-executable-profiling ... $ cabal build ... Could not find module 'Graphics.UI.GLUT': Perhaps you havent installed the profiling libraries for package 'GLUT-2.2.2.0'? ... $ # indeed I have not installed the prof libs for GLUT, so.. $ cabal install -p GLUT --reinstall ... Could not find module 'Graphics.Rendering.OpenGL': Perhaps you havent installed the profiling libraries for package 'OpenGL-2.4.0.1'? ... So,

Can't install OpenGLRaw-1.1.0.1 on OS X

给你一囗甜甜゛ 提交于 2019-12-25 05:09:26
问题 When I run $ cabal install OpenGLRaw I get the following errors. ... ... ... cbits/HsOpenGLRaw.c:78:20: error: stdlib.h: No such file or directory cbits/HsOpenGLRaw.c:79:19: error: dlfcn.h: No such file or directory cbits/HsOpenGLRaw.c: In function ‘hs_OpenGLRaw_getProcAddress’: cbits/HsOpenGLRaw.c:97:0: error: ‘NULL’ undeclared (first use in this function) cbits/HsOpenGLRaw.c:97:0: error: (Each undeclared identifier is reported only once cbits/HsOpenGLRaw.c:97:0: error: for each function it

Understanding cabal dependency messages

五迷三道 提交于 2019-12-24 08:56:47
问题 currently when I try to install GOA I get the following message : >sudo cabal install goa Resolving dependencies... In order, the following would be installed: directory-1.1.0.2 (reinstall) changes: filepath-1.3.0.0 -> 1.2.0.1 process-1.0.1.5 (new version) goa-3.1 (new package) cabal: The following packages are likely to be broken by the reinstalls: .... My question is whether this means that I currently have "filepath-1.3.0.0" as default, and cabal (upon a --force-reinstalls) is going to

cabal: how to stop the build on test failure?

感情迁移 提交于 2019-12-24 04:51:39
问题 i created tests in HUnit (Tests.hs). i connected them to main: main = runTestTT tests . when i do runhaskell Tests i see ### Failure in: 0 T(1) expected: 145 but got: 45 Cases: 10 Tried: 10 Errors: 0 Failures: 1 Counts {cases = 10, tried = 10, errors = 0, failures = 1} which is expected. in cabal file i did test-suite xxx type: exitcode-stdio-1.0 main-is: Tests.hs build-depends: base ==4.5.*, HUnit ==1.2.5.2, containers == 0.5.5.1 and when i do cabal test same test logs are written to a file

stack install curl fails

核能气质少年 提交于 2019-12-24 04:30:05
问题 I am trying to install curl via stack using stack install curl-1.3.8 -v , and I am stuck with the following error: 2019-10-06 19:01:22.673216: [info] curl> Configuring curl-1.3.8... 2019-10-06 19:01:22.910469: [warn] curl> setup: Missing dependency on a foreign library: 2019-10-06 19:01:22.910594: [warn] curl> * Missing (or bad) C library: curl 2019-10-06 19:01:22.910679: [warn] curl> This problem can usually be solved by installing the system package that 2019-10-06 19:01:22.910776: [warn]

Installing reflex-dom likely to break ghcjs

老子叫甜甜 提交于 2019-12-23 21:41:28
问题 I am trying to install reflex and reflex-dom using cabal install I got the following error messages: $ cabal install reflex-dom ... cabal: The following packages are likely to be broken by the reinstalls: lens-4.15.1 ghcjs-0.2.0 free-4.12.4 kan-extensions-5.0.1 adjunctions-4.3 Use --force-reinstalls if you want to install anyway. ghcjs on GitHub is at 0.2.0 on the "master" branch and 0.2.1 on a branch called "dedupe". And I am also scared of breaking lens . Is there any way to install reflex

cryptopp foreign library dependency

天涯浪子 提交于 2019-12-23 21:13:06
问题 I tried to install happstack-server-tls package via cabal on Arch Linux (3.12.9), but got this error: Resolving dependencies... Configuring happstack-server-tls-7.1.0... Failed to install happstack-server-tls-7.1.0 Last 10 lines of the build log ( /home/boris/.cabal/logs/happstack-server-tls-7.1.0.log ): Configuring happstack-server-tls-7.1.0... /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) setup-Cabal-1.16.0-x86_64-linux-ghc-7.6.3: Missing dependency on a foreign

Cabal: conditionally override a flag default value

徘徊边缘 提交于 2019-12-23 20:05:16
问题 Is there any way to rewrite either: flag llvm description: compile via LLVM default : if os(mingw32) False else True or flag llvm description: compile via LLVM default : True if os(mingw32) ?SET-LLVM=False? and get cabal to work with it? Note: Further down in the same file the llvm flag is used like: if flag(llvm) ghc-options: -fllvm -optlo-O3 and there are many other single high-level flags that translate to multiple ghc-options entries, such as static to -static -optl-static . 回答1: You can