cabal

Cabal cannot find locally sourced (yet correctly installed) packages

╄→гoц情女王★ 提交于 2020-07-15 03:50:31
问题 I recently upgraded to Cabal 3.2 (and GHC 8.10) and I am running into some major issues that make some of my project non-buildable anymore... Thorough description of the problem Here is a minimal (not) working configuration that fails every time: I start off with a clean Cabal configuration (by deleting ~/.cabal ); the reason for that will appear later in the post. I run cabal update to recreate the .cabal directory and to ensure Cabal is working. I create a project (let's call it test1 )

Haskell Cabal v2 and Sandbox

霸气de小男生 提交于 2020-06-27 11:58:39
问题 We are told that this is now legacy mode of cabal, to manage a user-defined sandbox: cabal init sandbox cabal install <some stuff> Which is later loaded at your discretion using cabal exec bash Question: How is an equivalent operation performed using the new implementation of Cabal? The documentation is (as it currently stands) very cryptic with zero usage example. That would be helpful to facilitate migration. Currently contemplating Cabal 2.4.0.0 with GHC 8.6.5. 回答1: There are no sandboxes.

regex-pcre on Windows

随声附和 提交于 2020-06-10 05:57:00
问题 How can I install regex-pcre on Windows? cabal install regex-pcre Resolving dependencies... Configuring regex-pcre-0.94.4... cabal: Missing dependency on a foreign library: * Missing C library: pcre 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 use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. Failed

regex-pcre on Windows

為{幸葍}努か 提交于 2020-06-10 05:56:48
问题 How can I install regex-pcre on Windows? cabal install regex-pcre Resolving dependencies... Configuring regex-pcre-0.94.4... cabal: Missing dependency on a foreign library: * Missing C library: pcre 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 use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. Failed

How do I use the output of a program from an earlier part of a Stack/Cabal build as source in a later part of the same build?

五迷三道 提交于 2020-05-14 16:44:25
问题 I have a very peculiar dependency situation that I would like to package up in a single Stack/Cabal package: I need to build and run my program to get the input to a code-generator which produces output that needs to be linked in to... my program. OK so in more concrete terms, here are the steps manually: stack build to install all dependencies, and build all non-Verilator-using executables. stack exec phase1 to run the first phase which generates, among other things, a Verilog file and a

How do I use the output of a program from an earlier part of a Stack/Cabal build as source in a later part of the same build?

橙三吉。 提交于 2020-05-14 16:43:05
问题 I have a very peculiar dependency situation that I would like to package up in a single Stack/Cabal package: I need to build and run my program to get the input to a code-generator which produces output that needs to be linked in to... my program. OK so in more concrete terms, here are the steps manually: stack build to install all dependencies, and build all non-Verilator-using executables. stack exec phase1 to run the first phase which generates, among other things, a Verilog file and a

Could not find module ‘Control.Monad.State’ even though mtl is installed

时光总嘲笑我的痴心妄想 提交于 2020-05-13 06:19:12
问题 When I tried loading a module containing import Control.Monad.State I got Could not find module ‘Control.Monad.State’ Perhaps you meant Control.Monad.ST (from base-4.8.2.0) Control.Monad.ST.Safe (from base-4.8.2.0) Control.Monad.Fix (from base-4.8.2.0) Use -v to see a list of the files searched for. Failed, modules loaded: none. I installed the Haskell Platform, which has cabal and mtl installed. When I run cabal update and then cabal install mtl : Resolving dependencies... All the requested

cabal install wx Missing C library

穿精又带淫゛_ 提交于 2020-02-03 08:56:12
问题 Env: OS: feodra 16 haskell-platform wxGTK-devel ghc 7.0.4 I am trying to install wxHaskell with cabal install wx Then these errors are given. Missing dependencies on foreign libraries: * Missing C libraries: wx_baseu-2.8, wx_baseu_net-2.8, wx_baseu_xml-2.8, wx_gtk2u_core-2.8, wx_gtk2u_adv-2.8, wx_gtk2u_html-2.8, wx_gtk2u_qa-2.8, wx_gtk2u_xrc-2.8, wx_gtk2u_aui-2.8, wx_gtk2u_richtext-2.8, wx_gtk2u_media-2.8, wx_gtk2u_stc-2.8, wx_gtk2u_gl-2.8 And these libraries actually exist in /usr/lib I type

cabal install wx Missing C library

老子叫甜甜 提交于 2020-02-03 08:53:12
问题 Env: OS: feodra 16 haskell-platform wxGTK-devel ghc 7.0.4 I am trying to install wxHaskell with cabal install wx Then these errors are given. Missing dependencies on foreign libraries: * Missing C libraries: wx_baseu-2.8, wx_baseu_net-2.8, wx_baseu_xml-2.8, wx_gtk2u_core-2.8, wx_gtk2u_adv-2.8, wx_gtk2u_html-2.8, wx_gtk2u_qa-2.8, wx_gtk2u_xrc-2.8, wx_gtk2u_aui-2.8, wx_gtk2u_richtext-2.8, wx_gtk2u_media-2.8, wx_gtk2u_stc-2.8, wx_gtk2u_gl-2.8 And these libraries actually exist in /usr/lib I type