The bigger picture is that I'm trying to use the sdl2 package from Stackage (lts 8.1). Though, I'm having a bit of an issue; The package is missing a compiler flag, as detailed in this issue on GitHub. As such, it doesn't build properly.
However, if... more
I get an error with stack, while trying to install a package.
Run from outside a project, using implicit global project config
Using resolver: lts-8.0 from implicit global project's config file: /home/chuck/.stack/global-project/stack.yaml
Invalid ... more
GHC can be used as a linter for the Neovim plugin ale. The configuration uses the following command to lint a file:
stack ghc -- -fno-code -v0 %t
where %t is the file in question. This is fast and pretty great, however, it doesn't recognize any of... more
My specific problem is that I want to create a stack template to replace the hakyll-init executable that is included in the hakyll package.
The problematic file is haskell-logo.png. How do I have to encode this file so it is recreated when I run sta... more
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... more
I've recently been trying to use haskell-stack, but whenever i try to do stack setup i get
The GHC located at
/home/piotrek/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc failed to
compile a sanity check. Please see:
I'm working on a library which depends on an external C library, and would like to bundle the headers and lib files with my project. The stack.yaml file requires all paths to be absolute, which is clearly not ideal for this purpose.
As per @adamse's... more
I started installing threadscope through stack (rather than cabal, is that OK? https://wiki.haskell.org/ThreadScope). threadscope requires cairo.
$ stack install cairo
-- While building package cairo-0.13.3.1 using:
I'm trying to set up Hakyll on a fresh Ubuntu 16.04 instance, but I can't seem to get the Stack-based setup instructions right.
Starting out with stack install hakyll, I get:
Error: While constructing the build plan, the following exceptions were e... more
I am behind a firewall with strict rules about downloading software from the internet, so I would like to know if it is possible to download an entire stackage LTS snapshot in one go and serve it on a local server, to which we could then point the st... more
It installs just fine with cabal install bytestring-show. Here is the log:
Preprocessing library bytestring-show-0.3.5.6...
[1 of 6] Compiling Text.Show.ByteString.Util ( Tex... more
I need to use stack 1.3.3 in Travis CI due to a complication issue. The fix is not present in 1.3.2 and 1.3.3 has not been released yet. Currently, I am building stack myself from the source code in my Travis configuration. This adds time to the buil... more
I'm trying to install Apache Thrift on my system, which performs a cabal update command. This command fails with the following message:
Downloading the latest package list from stackage cabal: Failed to download
Q: How to adjust cabal(stack?) settings so that app/LogAnalysis.hs is treated as main log after all?
Here is how I got myself this error:
Created new project with stack new xyz
Renamed app/Main.hs to app/LogAnalysis.hs
Adjusted main-is option in x... more
I am asking GHC for the lib path and it gives me a path that doesn't exist:
bash-3.2$ stack eval GHC.Paths.libdir
unknown option: 'c'
This folder does not exist, not in my PATH and doesn't appear a... more
I'm working on a new theme for Haddock and want to try it on some real projects. How can I configure stack to use my haddock executable? I don't see any config option in stack.yaml. I've also tried putting the new haddock executable into my PATH but ... more
I need some way to share private code between internal packages. In this case, I have a project, called cra-products which depends on risk-types. risk-types needs to be shared between several projects, and it cannot be public.
I'm using stack and t... more
Using stack with my system GHC 8.0.1 installation, I got the following error:
$ cabal get shuffle
$ cd shuffle
$ stack build --system-ghc --stack-yaml my-stack.yaml shuffle
shuffle-0.1.3.3: configure (lib + exe)
[1 of 2] Compiling Main (... more
In a Haskell project's cabal file we have the following sections:
Unfortunately, wildcarding in these sections is ... more
I am involved in a Haskell project that involves lots of C-bits and FFI. So I find myself frequently running and re-running commands like
$ stack build
$ stack build --force-dirty
$ stack clean
$ rm ./.stack-work
over and over in order ... more
I have a large Haskell project with many packages built with stack. I have long recompilation times when I make trivial changes in a core model or some configuration data without changing any types.
If this were C, I would have to only recompile the... more
I would like to use kind equality, which seems only present in GHC head for now.
I made a system-install of GHC, and in my project I added a snapshot.yaml
and updated stack.yaml accordingly
We are new users trying to use random numbers in a new stack project, but cannot import System.Random. It doesn't seem to be in the curated set(?)
We've got a new stack project setup as in the user manual. We've edited the cabal file putting random ... more
What is the workflow for using stack to preform an isolated download and install (for testing and experimentation) of a Haskell package that's in Hackage, but not in Stackage?
stack new tester
# Then add the package PKG to 'ex... more
When using the following in my stack.yaml to (attempt) to compile a static binary through Stack:
"*": -static -optc-static -optl-static -optl-pthread -fPIC
I get this error:
usr/bin/ld: /usr/lib/gcc/x86_64-amazon-linux/4.8.3/crtb... more
This is the first time I try to install Haskell yesod but I run through some problems
$ yesod devel
/usr/bin/ld: /home/romano/.stack/programs/x86_64-linux/ghc-tinfo6-7.10.3/lib/ghc-7.10.3/rts/libHSrts.a(Scav.o): relocation R_X86_64_32S against `.ro... more
Creating a fresh haskell-stack project fails to find the project-exec executable, despite searching the appropriate path. I'm not sure why. In particular,
stack build creates the project-exec inside $PROJECT_DIR/.stack-work/install/x86_64-linux-ncur... more
Running stack build --profile on my project yields the following error:
-- While building package tf-random-0.5 using:
I'm trying to configure stack to use the Haskell packages of a private git repository. Looking at the documentation it seems that the git repository can be added as local dependency. The problem is that I see no way of specifying the credentials for ... more
Over time I've developed a messy system level Haskell installation that I'm not sure how to completely clean up. But for the most part this isn't of much concern as I simply use stack to manage per-project Haskell configurations. However as my projec... more
When I run
stack --resolver=lts-7.14 install zlib
I'm getting message saying that package should be recompiled with -fPIC flag:
Preprocessing library zlib-0.6.1.2...
/usr/bin/ld: .stack-work/di... more
I created a Yesod application using stack new project yesod-postgres. Beside the web application, I want to create another program which uses the same database model and database connection.
I added a second executable section (a copy of the first) ... more
I'm trying to use gloss which depends on GLURaw, and getting this error:
stack install --extra-lib-dirs=/usr/lib/nvidia-367 --extra-lib-dirs=/usr/lib/x86_64-linux-gnu
fatal error: GL... more