cabal Questions
2
Solved
I used the default stack new to setup a project that has a server and a client as separate executables. I altered the package.yaml file in what seems like the right way (As of April 21, 2020 "There...
Logrolling asked 23/4, 2020 at 1:14
0
Some time ago I worked on this project, and I experimented a bit with package candidates.
Then, yesterday, I uploaded the real package on hackage. However, it fails to build. I think the reason is ...
3
Solved
when I type stack run I get no error message but when I type stack ghci I get this error about multiple files use the same name , how I can solve it ?
(base) wejden@wejdenaydi:~/wejden$ stack ghci
...
Biscuit asked 13/5, 2021 at 13:12
5
Solved
How do I tell stack to build my executable and all its dependencies with -prof?
Simply adding it to ghc-options in the .cabal file is not enough, because it only tries to build the executable wit...
Nehemiah asked 20/8, 2015 at 16:24
2
Solved
It turns out it was enough to execute
cabal install --package-env=$HOME/.config/xmonad --lib base xmonad xmonad-contrib
but what I don't understand is the following:
why did this work?
Why updati...
4
For the life of me I can't figure out how to install cairo on Windows!
I need it for Haskell Charts, but when I follow setup instructions and get to running:
cabal install gtk
I get this error...
2
Do I need to manually edit the *.cabal file's build-depends section to add package as a project dependency?
Or perhaps there is a more convenient way that is not as error prone as manually mangling...
2
Solved
I often use typed holes to define functions for which I know the interface and intend to implement later. When I run cabal build, it stops after the first module it encounters with typed holes, hid...
Shrove asked 4/2, 2023 at 20:53
3
my question in short is "how to get a fast save-retest workflow in a cabal-managed multi-library haskell project repository?"
I already tried a few things and did some research. Before ge...
Clywd asked 29/4, 2021 at 7:26
1
I've just created a new cabal package (http://hackage.haskell.org/package/json-python-0.1.0.0/candidate). I'd like to test it on a separate computer before publishing. Running cabal install json-py...
1
Cabal-newstyle has a habit to occasionally install, like, all dependencies from scratch for no apparent reason. For a project using lens and other common packages, this can take upwards of ½ hour, ...
Maribeth asked 2/9, 2022 at 14:11
3
Solved
When I run cabal build for my project, it places my compiled executable in
dist-newstyle/build/$PLATFORM/$GHC/$PACKAGE-$VERSION/x/$PACKAGE/build/$PACKAGE/$PACKAGE
I'm using a Makefile to run cabal...
2
I am using cabal v2-build to build a project and it keeps failing on a package that I do not directly depend on. Is there a way with cabal to list all of a package's dependencies (ideally in tree f...
4
Solved
In my Haskell project when I stack run, it is showing the following, but still runs. What warning is this? How can I get rid of it?
Stack has not been tested with GHC versions above 8.6, and using...
Nicki asked 19/2, 2020 at 20:23
2
Solved
I want to install Cabal 3.4.0.0 on Ubuntu 20.04.
$ sudo apt install cabal-install
$ cabal --version
cabal-install version 2.4.0.0
$ sudo cabal update
$ sudo cabal install Cabal cabal-install
...
S...
Frugal asked 13/3, 2021 at 16:29
2
Solved
Using cabal test, you're able to stream results with cabal test --show-details=streaming.
I can't find a comparable option for cabal new-test. Is it possible to stream results using new-test?
4
Solved
Is it possible to install a version of a package from github using Haskell stack?
e.g. in a .cabal or a stack.yaml file, how can I point a dependency at a git repo/branch/revision?
Carboloy asked 14/7, 2016 at 14:55
2
Solved
I have a Haskell package I've installed from Hackage, using cabal and would like to run the tests suites that are part of the package, but it isn't clear to me from the cabal documentation how to d...
Sosthenna asked 9/10, 2015 at 14:26
3
Solved
In java - maven build tool, you can print a tree of dependencies for any package/project using the command,
mvn dependency:tree -Dverbose -Dincludes=commons-collections
and output will be a tree...
2
Solved
When running Haskell programs that import several packages like this one:
import Text.Feed.Import
import Network.HTTP
main = do
page <- simpleHTTP (getRequest "http://stackoverflow.com")
pr...
4
Solved
I'm relatively new to Haskell and I realize I might be swimming against the stream here, but nonetheless, I'll ask:
Say I have a short Haskell script:
import Data.List.Split (splitOn)
main :: IO (...
3
Solved
I have a fairly simple haskell project set up, where I just want to have the framework working with testing and so on before I actually start coding. I have my source files for an executable in a /...
2
Solved
I have a project with this structure:
foo.cabal
src/
Foo/
Main.hs
and part of foo.cabal looks like this:
executable foo
main-is: Foo/Main.hs
hs-source-dirs: src
Main.hs has the package na...
3
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 tha...
2
Solved
I have a program written in Haskell and intended to be compiled with GHC. The program scales very well on multiple cores, so enabling multithreading is very important. In my .cabal file I've added ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.