haskell-stack

stack cannot build network - where's config.log?

与世无争的帅哥 提交于 2019-12-02 09:26:55
I have a project to build with stack and it depends on network . When I do stack build , it says [1 of 1] Compiling Main ( /tmp/stack23678/network-2.6.2.1/Setup.hs, /tmp/stack23678/network-2.6.2.1/.stack-work/dist/i386-linux/Cabal-1.22.5.0/setup/Main.o ) Linking /tmp/stack23678/network-2.6.2.1/.stack-work/dist/i386-linux/Cabal-1.22.5.0/setup/setup ... Configuring network-2.6.2.1... ... checking whether the C compiler works... no configure: error: in `/tmp/stack23678/network-2.6.2.1': configure: error: C compiler cannot create executables See `config.log' for more details Sure, I'd love to. But

Encountering error while adding MaybeT dependency in stack project

不羁的心 提交于 2019-12-02 05:30:05
问题 I am following this tutorial webScrapper using HXT. I am using Stack here. While adding dependency for MaybeT, it asked to: Recommended action: try adding the following to your extra-deps in /Users/***/Haskell Development/Scrapper/stack.yaml: - MaybeT-0.1.2 Now doing so to ended up with this message on running stack build: In the dependencies for MaybeT-0.1.2: base-4.9.0.0 must match <4.8 (latest applicable is 4.7.0.2) needed due to Scrapper-0.1.0.0 -> MaybeT-0.1.2 Being new to Stack, I am

Can not install GHC-Mod

╄→尐↘猪︶ㄣ 提交于 2019-12-02 02:25:50
问题 Hello guys i am trying to install ghc-mod for vscode and i am running into this issue: **$ stack install ghc-mod** Populated index cache. Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for ghc-mod-5.8.0.0: Cabal-2.0.1.1 from stack configuration does not match >=1.18 && <1.25 (latest matching version is 1.24.2.0) base-4.10.1.0 from stack configuration does not match >=4.6.0.1 && <4.10 (latest matching version is 4.9.1.0) mcabal-helper

Encountering error while adding MaybeT dependency in stack project

廉价感情. 提交于 2019-12-01 23:40:38
I am following this tutorial webScrapper using HXT. I am using Stack here. While adding dependency for MaybeT, it asked to: Recommended action: try adding the following to your extra-deps in /Users/***/Haskell Development/Scrapper/stack.yaml: - MaybeT-0.1.2 Now doing so to ended up with this message on running stack build: In the dependencies for MaybeT-0.1.2: base-4.9.0.0 must match <4.8 (latest applicable is 4.7.0.2) needed due to Scrapper-0.1.0.0 -> MaybeT-0.1.2 Being new to Stack, I am unable to solve the problem, in my cabal file the the dependency: build-depends: base >= 4.7 && < 5 , hxt

Why is `stack build` altering my .cabal file?

删除回忆录丶 提交于 2019-12-01 22:28:20
I am attempting to build a project which uses Euterpea . Running stack build I get the following error, suggesting that I need to add Euterpea to the build-depends section of my .cabal file. $ sb composition-0.1.0.0: build (lib + exe) Preprocessing library composition-0.1.0.0... [2 of 2] Compiling Lib ( src/Lib.hs, .stack-work/dist/x86_64-linux-nix/Cabal-1.24.2.0/build/Lib.o ) /home/matthew/backup/composition/composition/src/Lib.hs:5:1: error: Failed to load interface for ‘Euterpea’ It is a member of the hidden package ‘Euterpea-2.0.4’. Perhaps you need to add ‘Euterpea’ to the build-depends

What's the difference between `stack install NAME` and `NAME` in the build-depends of project.cabal file?

泪湿孤枕 提交于 2019-12-01 19:12:49
What is the difference between adding package_name under the build-depends: section in a project's .cabal file , versus doing stack install package_name within that project's directory? stack install will just install the package to the appropriate place (the current snapshot database for libraries in Stackage, the sandbox in ./.stack-work for other libraries, ~/.local/bin or your system's equivalent thereof for executables). Adding a library to build-depends specifies it as a dependency of your project, and leads to the library being installed next time you do a stack build . If you are

Haskell Stack package installation error

折月煮酒 提交于 2019-12-01 09:56:16
问题 user$: stack install dictionaries Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for dictionaries-0.1.0.0: binary-0.8.3.0 must match >=0.7.5 && <0.8 (latest applicable is 0.7.6.1) time-1.6.0.1 must match >=1.5.0 && <1.6 (latest applicable is 1.5.0.1) With the above command, I want to install the dictionaries package globally. What are my options here? I plan to stack unpack dictionaries , and then modify the versions. But then how to

How do I define a data type consisting of other data types?

℡╲_俬逩灬. 提交于 2019-12-01 09:22:57
问题 I want to define the data type Currency, which consists of three other data types. I have the problem that Haskell doesn't recognize the data types as a part of currency, which breaks everything. My idea was to define the different currencies as their own data types and then add them to the Currency type, which I tried with: data Euro = MkEuro Integer Integer data Dollar = MkDollar Integer Integer data Yen = MkYen Integer data Currency = Euro | Dollar | Yen If I want to use the type Currency

stack install ghc-mod fails with dependencies conflicts on OSX 10.13.4

时间秒杀一切 提交于 2019-12-01 04:49:48
When I try to install ghc-mod via stack I end up having these depencies conflicts Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for ghc-mod-5.8.0.0: Cabal-2.0.1.1 from stack configuration does not match >=1.18 && <1.25 (latest matching version is 1.24.2.0) base-4.10.1.0 from stack configuration does not match >=4.6.0.1 && <4.10 (latest matching version is 4.9.1.0) cabal-helper must match <0.8 && >=0.7.3.0, but the stack configuration has no specified version (latest matching version is 0.7.3.0) extra-1.6.8 from stack configuration does

stack install ghc-mod fails with dependencies conflicts on OSX 10.13.4

感情迁移 提交于 2019-12-01 02:05:02
问题 When I try to install ghc-mod via stack I end up having these depencies conflicts Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for ghc-mod-5.8.0.0: Cabal-2.0.1.1 from stack configuration does not match >=1.18 && <1.25 (latest matching version is 1.24.2.0) base-4.10.1.0 from stack configuration does not match >=4.6.0.1 && <4.10 (latest matching version is 4.9.1.0) cabal-helper must match <0.8 && >=0.7.3.0, but the stack configuration