Questions tagged [cabal-dev]

cabal-dev is a tool for managing development builds of Haskell projects

cabal-dev is a tool for managing development builds of Haskell projects. It supports maintaining sandboxed cabal-install repositories, and sandboxed ghc package databases.

By default, it uses a cabal-dev directory under the current working directory as the sandbox.

15 questions
9
votes
1 answer

Upgrading packages installed in a cabal sandbox

I'm having some trouble understanding how to upgrade packages inside a cabal sandbox. I'd like to upgrade esqueleto-1.3.4.5 to esqueleto-1.3.5 and changed my myapp.cabal to depend on esqueleto >= 1.3.5 && < 1.4. $ cabal --version cabal-install…
Rehno Lindeque
  • 4,236
  • 2
  • 23
  • 31
6
votes
1 answer

Haskell Plugins and cabal sandbox

So, I'm trying to use the Plugins package to dynamically load a haskell function from a source file. The source file depends on a package foo with module Foo.Bar. I'm running my project in a Cabal sandbox, where I have foo installed. Both my main…
jmite
  • 8,171
  • 6
  • 40
  • 81
6
votes
1 answer

Is there an equivalent to `cabal-dev ghc`

I'm learning to use a cabal-dev setup for projects to keep dependencies clean. cabal-dev ghci and cabal-deb ghc-pkg work in nicely. But I find myself wanting to issue a cabal-dev ghc command but it doesn't exist. The context is trying to get…
tony day
  • 512
  • 2
  • 10
4
votes
1 answer

Import from child directory in ghci session (import modules from tests in yesod)

When you create a scaffolded site in yesod, it puts tests into separate directory like this: YourProj/ YourProj/SomeModule.hs YourProj/Handlers/FooHandler.hs ... YourProj/tests/main.hs YourProj/tests/FooTests.hs So, now I want to fire ghci and…
Konstantine Rybnikov
  • 2,457
  • 1
  • 22
  • 29
4
votes
1 answer

Is it possible to have Leksah use a cabal-dev environment for it's workspace?

I'm trying to make sure I don't enter dependency hell by using cabal-dev and I'm also trying to use leksah for my IDE. However, when adding packages to the local workspace in leksah, it build and installs the packages to my user ~/.cabal package…
Thomas
  • 11,757
  • 4
  • 41
  • 57
3
votes
1 answer

How to use hdevtools with cabal-dev?

I use cabal-dev for my project. I want to use hdevtools with it. But hdevtools uses my cabal packages instead of cabal-dev packages. I want to use hdevtools options to make it use the cabal-dev packages. However I cannot figure out which options to…
2
votes
1 answer

Cabal getting installed in root directory instead of /home/vagrant directory using Vagrantfile

THe below is the content of the vagrant file. When I run vagrant up command, it installs cabal as required but it is in the root directory. Hence, it becomes unusable. I want to update the cabal version to latest version using cabal update. But it…
Zack
  • 2,078
  • 10
  • 33
  • 58
2
votes
1 answer

'cabal run' gives "unrecognised command: run"

I'm attempting to create simple Cabal executable package. The Cabal user guide's "Running executables" section says: You can have Cabal build and run your executables by using the run command. cabal run EXECUTABLE [-- EXECUTABLE_FLAGS] Yet when I…
GladstoneKeep
  • 3,832
  • 2
  • 26
  • 38
2
votes
2 answers

Setting up Yesod on Ubuntu 13.10

After following the instructions on the QuickStart, I'm seeing some errors in Yesod when bringing up a webpage. The errors end in: ... cannot satisfy -package-id wai-extra-1.3.4.6-62543d69d10941dae1d9b206c3eb3067:…
2
votes
1 answer

Haskell: Using cabal-dev with local packages over Hackage

I'm trying to install a yesod web application, however, one of the listed dependencies has compile-time errors as-is from Hackage. So, I downloaded the offending source, fixed it, and installed it in its own cabal-dev sandbox. ~/dev/fixed_dep$…
Brian
  • 555
  • 4
  • 18
1
vote
3 answers

cabal-dev install Happstack-server how

here is what I did: makdir happstack_01 cabal-dev install happstack-server write the typical helloworld.hs with "import Happstack.Server (nullConf, simpleHTTP, toResponse, ok)" ghc -threaded HelloWorld.hs -o helloworld and I got: Could not find…
gzmask
  • 303
  • 2
  • 9
1
vote
1 answer

Haskell-mode source navigation for dependencies

I am using haskell-mode for Emacs. I succeeded at creating etags for my haskell project on every save by hasktags, however, the cabal dependencies can not be navigated to this way. So I wonder: Is there a way to make this source code navigation work…
sleepomeno
  • 193
  • 8
0
votes
2 answers

command: cabal build all, falling back to older state

i am trying to install cardano-wallet by following this doc https://developers.cardano.org/docs/get-started/installing-cardano-wallet/ and getting this error while performing cabal build all here is error that I am getting, HEAD is now at 00ebe72…
0
votes
1 answer

cabal-dev: command not found

Whenever I'm running any command that includes cabal-dev, I'm getting the following error: cabal-dev: command not found I've downloaded cabal-dev package from http://hackage.haskell.org/package/cabal-dev But there are no instructions on how to…
duplex143
  • 619
  • 2
  • 9
  • 25
0
votes
1 answer

Cabal: Post Build Hook inside a Sandbox

I am creating a simple post-build-hook for Cabal. The problem comes when I try to work in a sandbox. My hook is expecting the compiled code under: dist/something but when the build happens inside a sandbox the path…
Randomize
  • 8,651
  • 18
  • 78
  • 133