cabal

ghc can't find my cabal installed packages

冷暖自知 提交于 2021-02-18 21:12:57
问题 I've installed ghc 6.12.3, and then the Haskell Platform. I'm trying to compile a test program: $ ghc test.hs test.hs:3:0: Failed to load interface for `Bindings': Use -v to see a list of the files searched for. so, naturally, I do cabal install Bindings Which works fine, and places the package in ~/.cabal/lib/bindings-0.1.2 The problem is, that when I go to compile again with ghc, it still doesn't find the package I've installed with cabal. compiling in verbose mode gives: ghc -v test.hs

ghc can't find my cabal installed packages

廉价感情. 提交于 2021-02-18 21:12:53
问题 I've installed ghc 6.12.3, and then the Haskell Platform. I'm trying to compile a test program: $ ghc test.hs test.hs:3:0: Failed to load interface for `Bindings': Use -v to see a list of the files searched for. so, naturally, I do cabal install Bindings Which works fine, and places the package in ~/.cabal/lib/bindings-0.1.2 The problem is, that when I go to compile again with ghc, it still doesn't find the package I've installed with cabal. compiling in verbose mode gives: ghc -v test.hs

Adding an extra-deps that doesn't exist yet

左心房为你撑大大i 提交于 2021-02-11 15:53:32
问题 In the process of solving this tricky build situation, I have now encountered a problem with depending on a Cabal package that I generate myself (the full package, package.yaml and Setup.hs and source code and dependant C libraries and all). I have a stack.yaml and a package.yaml which together describe an environment where I can run my code generator, so this works: Set up the environment, make sure all dependencies are available: stack build In this environment, I can now execute a build

Cabal: missing dependency on foreign C library

只谈情不闲聊 提交于 2021-02-10 06:54:19
问题 I have been trying to install the tensorflow/haskell package on my Windows machine. However, both while installing with stack and cabal, I keep running into this error: Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe: Missing dependency on a foreign library: * Missing C library: tensorflow This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can

On Windows, packages installed with cabal seem to be unavailable in ghc/ghci

妖精的绣舞 提交于 2021-02-08 04:49:34
问题 I'm running the latest version of Haskell Platform 8.6.3 on a fairly standard Windows 10 x64 system. Now I am at my wits end getting packages installed from Hackage to work reliably. Attributing my issues to local configuration problems, I've taken all steps short of nuking my Windows installation. I have uninstalled and reinstalled Hackage, rebooted, scoured every last configuration file I could in any hidden directory or otherwise, deleted every registry key apparently related to Haskell,

On Windows, packages installed with cabal seem to be unavailable in ghc/ghci

我与影子孤独终老i 提交于 2021-02-08 04:49:13
问题 I'm running the latest version of Haskell Platform 8.6.3 on a fairly standard Windows 10 x64 system. Now I am at my wits end getting packages installed from Hackage to work reliably. Attributing my issues to local configuration problems, I've taken all steps short of nuking my Windows installation. I have uninstalled and reinstalled Hackage, rebooted, scoured every last configuration file I could in any hidden directory or otherwise, deleted every registry key apparently related to Haskell,

My installed transformers version is not considered by cabal-install

寵の児 提交于 2021-02-07 22:38:50
问题 I am totally new to Haskell an cabal and I'm trying to make yesod work. My cabal version is cabal-install version 1.20.0.3 using version 1.20.0.2 of the Cabal library This is what happends when I tru to install alex: $ cabal install alex Resolving dependencies... cabal: Could not resolve dependencies: trying: alex-3.1.4 (user goal) next goal: QuickCheck (dependency of alex-3.1.4) rejecting: QuickCheck-2.8.1, 2.8 (global constraint requires ==2.7.6) trying: QuickCheck-2.7.6 next goal:

My installed transformers version is not considered by cabal-install

Deadly 提交于 2021-02-07 22:38:11
问题 I am totally new to Haskell an cabal and I'm trying to make yesod work. My cabal version is cabal-install version 1.20.0.3 using version 1.20.0.2 of the Cabal library This is what happends when I tru to install alex: $ cabal install alex Resolving dependencies... cabal: Could not resolve dependencies: trying: alex-3.1.4 (user goal) next goal: QuickCheck (dependency of alex-3.1.4) rejecting: QuickCheck-2.8.1, 2.8 (global constraint requires ==2.7.6) trying: QuickCheck-2.7.6 next goal:

Can't install and use Cabal (Haskell) on CentOS Server - zlib-0.5.4.1 failed during the building phase

我的未来我决定 提交于 2021-02-07 18:38:18
问题 I'm trying to install a Haskell server which runs in Cabal on my server. When I configure a server normally to run this, I follow these instructions which we've refined - they work 100% every time on a blank rackspace cloud server. yum update yum install git yum install vim yum install ghc-zlib-devel.x86_64 wget http://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-unknown-linux-centos65.tar.xz wget http://www.haskell.org/cabal/release/cabal-install-1.20.0.1/cabal-x86_64-unknown-linux.tar.gz

Use relative paths for extra-lib-dirs on cabal

China☆狼群 提交于 2021-02-07 06:00:07
问题 I have a C library "myboo" which has Makefile. I want to make a wrapper of this library. I don't want to install it into /usr/local since "myboo" is not a major module. Additionally it is recommended that I build "myboo" not as a dynamic library but as a static library. I make custom Setup.py to build "myboo"; main :: IO () main = defaultMainWithHooks simpleUserHooks { preBuild = \a b -> makeLib a b >> preBuild simpleUserHooks a b } makeLib :: Args -> BuildFlags -> IO () makeLib _ flags = do