[Haskell-cafe] Using Cabal during development

Limestraël limestrael at gmail.com
Tue Feb 9 09:14:31 EST 2010


Okay, so then I have so troubles regarding the compilation of my executable:

First, what do you think is the simpler : (1) build only the library through
cabal-install and then the executable with ghc (it isn't to be distributed
with the lib), or (2) add both to my 
http://old.nabble.com/file/p27515830/HSFML.cabal .cabal file  and build them
in the same time with a 'cabal build' ?

Because I've tried both methods, and have had issues with both :
(1) after a 'cabal build', ghc doesn't know where to find my library --
whereas cabal-install displays 'Registering HSFL-1.5...' at the end of the
build -- when I do 'ghc --make main.hs'. I'm not gonna do a 'cabal install'
whenever I alter my code, am I?

(2) well, then, when building, if I don't specify that my executable depends
on my lib, I got:
SFML/Direct/Graphics.hs:51:7:
    Could not find module `SFML.Direct.Types.Enums':
      It is a member of the hidden package `HSFML-1.5'.
      Perhaps you need to add `HSFML' to the build-depends in your .cabal
file.
      it is a hidden module in the package `HSFML-1.5'
      Use -v to see a list of the files searched for.

and if I do what I asks me to add (I add the line 'Build-Depends:  HSFML' in
the 'Executable' section of my .cabal file), I'm told when 'cabal build'ing:
cabal: internal error: could not construct a valid install plan.
The proposed (invalid) plan contained the following problems:
The following packages are involved in a dependency cycle HSFML-1.5



Miguel Mitrofanov wrote:
> 
> With cabal-install, usually.
> 

-- 
View this message in context: http://old.nabble.com/Using-Cabal-during-development-tp27515446p27515830.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list