cabal

Why isn't Cabal hyperlinking my sources?

喜欢而已 提交于 2020-01-24 08:12:05
问题 $ cabal --version cabal-install version 1.22.2.0 using version 1.22.2.0 of the Cabal library $ cabal install --haddock-hyperlink-source gloss-juicy Warning: /home/theking/.cabal/config: Unrecognized field hyperlink-source on line 91 I do have hyperlink-source: True on in my config. I added the flag just to be redundant. When I look for the docs, it is all colorized and everything, but the source code isn't linkified. What am I doing wrong? 回答1: Hopefully we're talking about the haddock

error when updating cabal

馋奶兔 提交于 2020-01-14 13:25:08
问题 I cannot update cabal on windows seven. When running cabal install cabal-install , I get the following error: Linking C:\Users\sberg\AppData\Local\Temp\Cabal-1.18.1.2-10956\Cabal-1.18.1.2\dist\setup\setup.exe ... Configuring Cabal-1.18.1.2... setup.exe: does not exist Failed to install Cabal-1.18.1.2 cabal: Error: some packages failed to install: Cabal-1.18.1.2 failed during the configure step. The exception was: ExitFailure 1 cabal-install-1.18.0.2 depends on Cabal-1.18.1.2 which failed to

Cabal 1.18 gives Bus Error 10 on nearly everything on OS X

て烟熏妆下的殇ゞ 提交于 2020-01-14 10:14:28
问题 I upgraded Cabal from the 1.16 version that came with Haskell Platform to 1.18, but nearly every command immediately dies with Bus error: 10 : $ cabal install aeson Bus error: 10 $ cabal sandbox init Bus error: 10 $ cabal list Bus error: 10 ( cabal help still works, though) OS version: OS X Mavericks 10.9.1 Cabal versions: $ cabal --version cabal-install version 1.18.0.2 using version 1.18.1.2 of the Cabal library GHC version: $ ghc --version The Glorious Glasgow Haskell Compilation System,

cabal dependency resolution fail for 'lens'

允我心安 提交于 2020-01-14 10:06:36
问题 I just did a cabal update and tried to install 'lens' from hackage. That gave me the following error - $ cabal install -j lens Resolving dependencies... Configuring dlist-0.7.0.1... ... <snip> Configuring mtl-2.0.1.0... Building mtl-2.0.1.0... Failed to install mtl-2.0.1.0 Last 10 lines of the build log ( /home/aj/.cabal/logs/mtl-2.0.1.0.log ): Building mtl-2.0.1.0... Preprocessing library mtl-2.0.1.0... [ 1 of 21] Compiling Control.Monad.Writer.Class ( Control/Monad/Writer/Class.hs, dist

cabal-install-0.10.2 failed during the building phase

╄→гoц情女王★ 提交于 2020-01-14 05:55:28
问题 I was trying to install haskeline, it's my first time installing using cabal, and here is what I got. What should I do? . sudo cabal install haskeline Password: Config file /Users/arie/.cabal/config not found. Writing default configuration to /Users/arie/.cabal/config Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal update' to download it. cabal: There is no package named haskeline . sudo cabal update Downloading the latest package list from hackage.haskell.org

Error while creating test suites: “cannot satisfy -package-id”

送分小仙女□ 提交于 2020-01-12 16:07:10
问题 I'm attempting to create a test suite for my project, HaskSplit in my .cabal configuration: -- Initial HaskSplit.cabal generated by cabal init. For further -- documentation, see http://haskell.org/cabal/users-guide/ name: HaskSplit version: 0.1.0.0 synopsis: Haskell Implementation of Shamir's Secret Sharing Scheme -- description: license: MIT license-file: LICENSE author: maintainer: -- copyright: category: Security build-type: Simple -- extra-source-files: cabal-version: >=1.10 executable

Haskell cabal: I just installed packages, but now the packages are not found

强颜欢笑 提交于 2020-01-12 06:40:15
问题 Over here is the only reason I can find that packages I'm installing using cabal are not being found by GHC: This happens when you install a package globally, and the previous packages were installed locally. Note that cabal-install install locally by default [...] Presumably, "local installation" means putting packages in ~/.cabal/ . First question: where are global installs? I've been running cabal using sudo , so I guess that's a global install? The reason I've been doing this is that it

stack build results in “output was redirected with -o, but no output will be generated because there is no Main module.”

孤街浪徒 提交于 2020-01-11 03:50:07
问题 Didn't see any relevant result when google searching for this error so thought I'd post it. stack build Building all executables for `gitchapter' once. After a successful build of all of them, only specified executables will be rebuilt. gitchapter-0.1.0.0: build (exe) Preprocessing executable 'app' for gitchapter-0.1.0.0.. Building executable 'app' for gitchapter-0.1.0.0.. Preprocessing executable 'test' for gitchapter-0.1.0.0.. Warning: Enabling workaround for Main module 'Main' listed in

How to build Stack Yesod?

孤街浪徒 提交于 2020-01-07 06:49:46
问题 I've been trying to use stack to start a yesod-simple project, but nothing I do will build this project. I've looked into other similar stackoverflow questions but couldn't get this to work. Can some one help me figure out what I need to do to get started? Error > stack build Populated index cache. yesod-persistent-1.4.0.6: configure yesod-persistent-1.4.0.6: build yesod-persistent-1.4.0.6: copy/register yesod-form-1.4.9: configure yesod-form-1.4.9: build yesod-form-1.4.9: copy/register yesod

Error with cabal update

流过昼夜 提交于 2020-01-05 12:34:23
问题 On a fresh install install of Haskell-Platform (64 bit OSX version from http://www.haskell.org/platform/mac.html) I get the following error: Downloading the latest package list from hackage.haskell.org Warning: http error: Network.Browser.request: Error raised ErrorParse "Invalid cabal: Char.intToDigit: not a digit -1 After issuing the command cabal update . No luck with any searches and I have no idea where this error is coming from. 回答1: I had the same problem. The only workaround I could