cabal

Haskell package vector-space fails at compile time

落花浮王杯 提交于 2019-12-11 03:39:44
问题 I tried to install the Haskell diagrams library and one of the dependencies cannot be installed. Being not that experienced to haskell, I cannot quite see how to resolve this error. I removed warnings that I believe are not related to the failed build ( ------ warnings ommitted (-Winvalid-pp-token) ----- ) [hsenv]➜ ~HSENV cabal install vector-space-0.8.5 Resolving dependencies... Downloading vector-space-0.8.5... Configuring vector-space-0.8.5... /var/folders/nq/fx4vf3v14jz9b8mldvcyv1xr0000gn

Why do I get “ghcjs-boot: command not found”?

风格不统一 提交于 2019-12-11 03:37:54
问题 I've installed ghcjs by the command cabal install ./ghcjs ./ghcjs-prim And I get something like Updating documentation MyDir/Haskell/share/doc/x86_64-osx-ghc-7.8.3/index.html for my last line. But when I tried this command ghcjs-boot --dev I got -bash: ghcjs-boot: command not found What's the problem? 回答1: Rewriting my comment as an answer by request: Do you have ~/.cabal/bin in your PATH? 来源: https://stackoverflow.com/questions/29690766/why-do-i-get-ghcjs-boot-command-not-found

Attempting a C++ binding to Haskell: getting undefined reference errors

半城伤御伤魂 提交于 2019-12-11 02:48:58
问题 I am attempting a C++ binding in Haskell and running into "undefined reference" errors when calling the binding. I've make a small project (http://github.com/deech/CPlusPlusBindings) to illustrate the problem. It includes a small C++ class, a C wrapper, a C test script and a Haskell binding and a test script. The C test script works, the Haskell one gives me: [1 of 1] Compiling Binding ( dist/build/Binding.hs, dist/build/Binding.o ) src/Binding.chs:6:26: Warning: Defined but not used: `res'

Error installing scion-browser

♀尐吖头ヾ 提交于 2019-12-11 02:21:12
问题 I get the following error when trying to install the scion-browser package as follows: % cabal install scion-browser-0.2.9 <snipped> [23 of 23] Compiling Main ( src/Main.hs, dist/build/scion-browser/scion-browser-tmp/Main.o ) src/Main.hs:31:24: No instance for (MonadException BrowserM) arising from a use of `getInputLine' Possible fix: add an instance declaration for (MonadException BrowserM) In a stmt of a 'do' block: maybeLine <- getInputLine "" In the expression: do { maybeLine <-

Error: “Failed to load interface for 'Data.Either.Utils'”

∥☆過路亽.° 提交于 2019-12-11 02:04:44
问题 Does anyone know why this single, specific import statement is causing a problem? I'm using sandbox and cabal. My other imports work fine (Web.Scotty, Data.Text.Lazy, etc.). I'm running with "cabal exec runghc filename.hs". I don't have a cabal.config file, but I do have a cabal.sandbox.config file. I'm attempting to use the forceEither function, which is in Data.Either.Utils . My import statements are normal as far as I can tell: {-# LANGUAGE OverloadedStrings #-} import Web.Scotty import

Cabal can't determine GHC version

人盡茶涼 提交于 2019-12-11 02:04:39
问题 I am currently trying to update Cabal (1.14.0, cabal-install at version 0.14.0) by doing cabal install cabal-install However, this gives me an ExitFailure1 with the error setup: The program ghc version >=6.4 is required but the version of /usr/bin/ghc could not be determined. But I'm definitely running a version of GHC that is greater than that. $ /usr/bin/ghc --version The Glorious Glasgow Haskell Compilation System, version 7.4.2 It might be important that I'm on OSX 10.8 and that I

Can't Install hmatrix on my Ubuntu Linux machine

怎甘沉沦 提交于 2019-12-11 01:33:48
问题 I am trying to install hmatrix on my Ubuntu Linux machine (don't know if this is necessary, but it may help) and no matter what I do it will not work. I run cabal install hmatrix and get this: Configuring hmatrix-0.13.1.0... Checking foreign libraries... FAIL *** Sorry, I can't link GSL. *** Please make sure that the appropriate -dev packages are installed. *** You can also specify the required libraries using *** cabal install hmatrix --configure-option=link:lib1,lib2,lib3,etc. setup:

Building project dependent on gtk2hs fails on lts-7.8 and later

荒凉一梦 提交于 2019-12-10 23:46:14
问题 Building project dependent on glib fails on lts-7.8 and later after Cabal becomes 1.24.1.0. Steps to reproduce Add glib to a project's .cabal file build-depends: base , gtktest , glib Run following commands stack install gtk2hs-buildtools stack build Result The following error occurred ... [debug] Ignoring package Cabal due to wanting version 1.24.1.0 instead of 1.24.0.0 @(Stack\Build\Installed.hs:196:5) ... -- While building package glib-0.13.4.1 using: C:\Users\foo\AppData\Local\Programs

What does “shared” mean in ~/.cabal/config?

ⅰ亾dé卋堺 提交于 2019-12-10 17:19:28
问题 I guess that "shared" will make cabal install faster, right ? The default value of shared is False. Should we use True or False for shared ? thanks! 回答1: It means "also build dynamically-linked (aka shared) versions of libraries that are installed with cabal install ". $ cabal help install | grep shared --enable-shared Enable Shared library --disable-shared Disable Shared library By default, only statically-linked versions are built. So it won't make cabal install libfoo faster - on the

Failed to install haskell-src-exts-1.16.0 on OSX 10.9.5

时光总嘲笑我的痴心妄想 提交于 2019-12-10 15:40:04
问题 My env: ghc 7.8.3 from http://ghcformacosx.github.io/ OSX 10.9.5 cabal 1.20.0.3 (directly from ghc for mac osx) I did cabal install alex and cabal install happy . cabal binary path was confirmed to be added to my $PATH as $(HOME)/Library/Haskell/bin/ . cabal install haskell-src-exts emitted the following compiling error: [19 of 22] Compiling Language.Haskell.Exts.InternalParser ( dist/build/Language/Haskell/Exts/InternalParser.hs, dist/build/Language/Haskell/Exts/InternalParser.o ) templates