cabal

Network-2.4.2.2 error cabal install on Windows

不打扰是莪最后的温柔 提交于 2019-12-01 07:59:07
问题 When attempting to install the network package (cabal install network) on Windows Server 2008 inside of a cabal sandbox (1.18.*) I get the following error: C:\Users\user\Project>cabal install network --prefix=C:\Users\user\Project Resolving dependencies... Configuring network-2.4.2.2... configure: error: invalid package name: 0 Failed to install network-2.4.2.2 cabal: Error: some packages failed to install: network-2.4.2.2 failed during the configure step. The exception was: ExitFailure 1

Haskell package installed but not found

只愿长相守 提交于 2019-12-01 06:43:21
I installed diagrams, and it seems to be there, but GHCi doesn’t find it. I tried adding the local sandbox to the command line (-package-db), but still no luck. Any suggestions? C:\Users\guthrie> C:\Users\guthrie>cabal install diagrams Resolving dependencies... All the requested packages are already installed: diagrams-1.2 Use --reinstall if you want to reinstall anyway. I find it in: C:\Users\guthrie\.cabal-sandbox\i386-windows-ghc-7.6.3-packages.conf.d (diagrams-1.2, diagrams-contrib, -core, -lib, -svg) But running: “cabal repl” or using the GHC(i) flag “ -package-db=… ” fail to find it: C:

Haskell package installed but not found

孤人 提交于 2019-12-01 04:21:22
问题 I installed diagrams, and it seems to be there, but GHCi doesn’t find it. I tried adding the local sandbox to the command line (-package-db), but still no luck. Any suggestions? C:\Users\guthrie> C:\Users\guthrie>cabal install diagrams Resolving dependencies... All the requested packages are already installed: diagrams-1.2 Use --reinstall if you want to reinstall anyway. I find it in: C:\Users\guthrie\.cabal-sandbox\i386-windows-ghc-7.6.3-packages.conf.d (diagrams-1.2, diagrams-contrib, -core

Cannot get cabal to find the mpi library for haskell-mpi on Windows [closed]

﹥>﹥吖頭↗ 提交于 2019-12-01 04:14:44
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . PROBLEM IS SOLVED! Follow the instructions Dons posted here Open your environment variables (My Computer -> Properties (in the context menu) -> Advanced)

How to completly remove packages installed by cabal?

倖福魔咒の 提交于 2019-12-01 02:58:59
I am trying to learn cabal, and have tested several my own little projects, now I want to clean them up. Basically, if I am working without a sandbox , my workflow is: run cabal init edit src/Mylib.hs , and then edit mylibname.cabal file run cabal build run cabal repl and test my code run cabal install Now, I see my own project: installed into ~/.cabal/lib/x86-64-linux-ghc-7.10.1 registered in ~/.ghc/package.conf.d I can write import Mylib in my other haskell source code, so I think the package is successfully installed. Then I want to uninstall the package, as the package itself is just

QuickCheck exit status on failures, and cabal integration

北慕城南 提交于 2019-11-30 23:42:46
问题 I'm trying to understand how to integrate some quickcheck tests with cabal. This gist suggests that the quickCheck function returns non-zero status on failure, but I am not getting that behavior, so using cabal's exitcode-stdio-1.0 test-suite type doesn't seem to work for me unless I want to call error all over my tests. The cabal user guide also mentions a detailed-1.0 test-suite, but AFAICT this doesn't exist yet. Is that still the case? It seems from answers like this one that a lot of

Multiline Matching in Haskell Posix

若如初见. 提交于 2019-11-30 22:37:42
I can't seem to find decent documentation on haskell's POSIX implementation. Specifically the module Text.Regex.Posix . Can anyone point me in the right direction of using multiline matching on a string? A snippet for the curious: > extractToken body = body =~ "<textarea[^>]*id=\"wpTextbox1\"[^>]*>(.*)</textarea>" :: String I'm trying to extract the source of wikipedia pages, however this method clearly falls over when more than one line is involved. You may need to import Text.Regex.Base.RegexLike for access to makeRegexOpts and friends. extractToken body = match regex body where regex =

Why does Stack not recognize the dependency it just installed?

依然范特西╮ 提交于 2019-11-30 17:51:19
问题 So I'm trying to use reactive-banana + wxHaskell for GUI programming. As a newbie to Haskell and its dev tools, I'm very perplexed by stack. So I try stack install wx , which prompts me to install wxcore , which prompts me to install wxc and wxdirect . After I stack install wxdirect , I try running stack install wxc , but lo and behold: While constructing the BuildPlan the following exceptions were encountered: -- Failure when adding dependencies: wxdirect: needed (>=0.90.1.1), not present in

Multiline Matching in Haskell Posix

被刻印的时光 ゝ 提交于 2019-11-30 17:46:13
问题 I can't seem to find decent documentation on haskell's POSIX implementation. Specifically the module Text.Regex.Posix . Can anyone point me in the right direction of using multiline matching on a string? A snippet for the curious: > extractToken body = body =~ "<textarea[^>]*id=\"wpTextbox1\"[^>]*>(.*)</textarea>" :: String I'm trying to extract the source of wikipedia pages, however this method clearly falls over when more than one line is involved. 回答1: You may need to import Text.Regex

Depending on a local package in cabal

冷暖自知 提交于 2019-11-30 17:23:23
I've written a few packages containing some extra functions for dealing with common types that reflect the way I like to use them (for instance, I prefer to treat Bson documents as maps, rather than lists of fields). I keep these packages in local source directories, not on Hackage. I would like to introduce dependencies between these packages in their .cabal files, using cabal's build-depends system. But this leads to the following error ( bson-docmap being a local module): cabal: At least the following dependencies are missing: bson-docmap >=0.0 Is it possible to point cabal to a local