Questions tagged [cabal]

Cabal is a package distribution and build system for the Haskell programming language.

Cabal stands for Common Architecture for Building Applications and Libraries. It is a package distribution and build system for the Haskell programming language. It is integrated with Hackage, a central package archive of open-source software written in Haskell. Cabal can refer both to the Cabal library which Setup.hs files can link against in order to build Haskell packages, and the command-line tool, which provides a range of additional functionality, including automatically fetching packages from , solving dependency graphs of version constraints to obtain install plans, managing sandboxed package environments, and much more.

More information about Cabal can be found at the Cabal website.

1793 questions
0
votes
1 answer

How to install a local library using Cabal?

I am a total Haskell beginner, and am going through the Hudak book Haskell School of Expression. I am working on the graphics chapter, and have found an updated version of the book's graphics library:…
ness64
  • 31
  • 6
0
votes
1 answer

stack setup won't recognize changes in .cabal file

I've added "QuickCheck" to the "build depends" section of the .cabal file but when I do stack setup the "QuickCheck" section of the file gets removed and I get this error: It is a member of the hidden package ‘Cabal-3.2.1.0’. You can run…
0
votes
1 answer

How to use integerFromInt from GHC.Num.Integer in Haskell

I'm new in Haskell. I'm trying to use integerFromInt from GHC.Num.Integer. I tried to write integerFromInt without import GHC.Num.Integer and I got Variable not in scope: integerFromInt :: Int -> Integer I tried to write integerFromInt with import…
Max Osad
  • 27
  • 5
0
votes
1 answer

Cabal - Installing beam-migrate

I'm trying to install beam-migrate dependency and it fails with the following error: Configuring library for beam-migrate-0.5.0.0.. Preprocessing library for beam-migrate-0.5.0.0.. Building library for beam-migrate-0.5.0.0.. [ 1 of 20] Compiling…
PSS
  • 5,561
  • 5
  • 28
  • 30
0
votes
1 answer

Issue installing hlint on windows

I'm trying to install hlint on Windows using: cabal install hlint, and I get the following error: Preprocessing executable 'hlint' for hlint-1.8.50.. Building executable 'hlint' for hlint-1.8.50.. : warning:…
PSS
  • 5,561
  • 5
  • 28
  • 30
0
votes
1 answer

How set the Cabal module search path?

I'm using Gentoo Linux and I have the network package installed: $ equery l network [IP-] [ ] dev-haskell/network-3.0.1.1:0/3.0.1.1 $ ls -la /usr/lib64/x86_64-linux-ghc-8.10.4/libHSnetwork-3.0.1.1-...-ghc8.10.4.so -rwxr-xr-x 1 root root 705152 12.…
bertramscharpf
  • 175
  • 1
  • 10
0
votes
0 answers

Could not find module ‘Text.Megaparsec.Char.Lexer’

I tried "stack install megaparsec", adding megaparsec and parsec as a dependency in the project.yaml file and running stack build, i tried stack build on all levels of the project folder. Also what's weird is that I can load the module which…
0
votes
1 answer

How to build with profiling in Stack?

I am struggling with building an app with profiling, because I need stack traces. $ stack new prof $ cd prof $ stack build --profile --executable-profiling --library-profiling $ stack exec prof-exe +RTS -p stack: the flag -p requires the program…
Daniil Iaitskov
  • 5,525
  • 8
  • 39
  • 49
0
votes
1 answer

Problem with cabal : cabal init does not create Main.hs

I am having a problem with Cabal that when I initialise a new project, Main.hs is not there. Just following the documentation https://cabal.readthedocs.io/en/3.6/getting-started.html#installing-the-haskell-toolchain My cabal version is mentioned…
Danish A. Alvi
  • 161
  • 1
  • 8
0
votes
1 answer

Compilation error on dependency package, requiring a language extension

I attempted to build a project that requires RMonad package. Here is dependencies specification in my package.yaml - dependencies: - base >= 4.7 && < 5 - containers >= 0.5 && < 0.7 - suitable >= 0.1 && < 0.2 - rmonad >= 0.8 && < 0.9 And here is…
Xwtek
  • 1,151
  • 1
  • 9
  • 19
0
votes
1 answer

how can I install threadscope on Windows?

Every effort of me following this https://hackage.haskell.org/package/threadscope instruction and few others ways online resulted in failure. It would be great if someone can give me some insights about it. This is my error: > cabal install…
trucpanda
  • 1
  • 1
0
votes
1 answer

cabal install ghc impossible happened: heap overflow

I'm trying to follow along with the Plutus Pioneer lectures, and I'm getting this error My system: Ubuntu Linux Docker image running on MacOS. I installed the Haskell package on the image from here: https://www.haskell.org/platform/linux.html using…
marcel_g
  • 1,980
  • 2
  • 17
  • 19
0
votes
2 answers

How to compile a haskell package without installation?

https://github.com/koalaman/shellcheck I can install the above package using cabal install. But I'd like to run the raw ghc commands that compile the binary without the installation. How can I do it?
user1424739
  • 11,937
  • 17
  • 63
  • 152
0
votes
1 answer

Cabal install fails in Linker phase

I'm trying to install this graphing library, but cabal-install is giving me this list of errors (only showing the bottom of the list, since everything above is very long and…
0
votes
1 answer

Keep cabal new-run alive

I'm running a haskell-based build using cabal the following way in dev mode on ubuntu 20.04: cabal new-run -- exe:live-docs \ --database-url='postgres://:@:/' \ serve --enable-admin…
mediaroot
  • 435
  • 8
  • 17
1 2 3
99
100