[Haskell-cafe] Re: Re : Re: Re : Error importing

Luc TAESCH luc.taesch at googlemail.com
Thu Aug 26 03:04:23 EDT 2010


btw, this could be helpful, if you have some time:

http://en.wikipedia.org/wiki/Cabal_(software)

http://www.haskell.org/cabal/


in there you maay find : http://www.haskell.org/cabal/FAQ.html

in which you can see ( hey !):
 Hidden packages (a)<http://www.haskell.org/cabal/FAQ.html#hidden-packages-a>

What is this hidden package? You're writing your own package and you get:

 Could not find module `Data.Map': it is a member of package
 containers-0.1.0.0, which is hidden.

Hidden packages (b)<http://www.haskell.org/cabal/FAQ.html#hidden-packages-b>

You're building some other package and you get:

 Could not find module `Data.Map': it is a member of package
 containers-0.1.0.0, which is hidden.



this is insteresting but maybe too advaced for now, may side track you.
however  may give you the big picture

http://www.haskell.org/haskellwiki/How_to_write_a_Haskell_program

besides, Howard, leksah is a small audience list,

you may find more support on the cafe list, as your question as less leksah
specific, but more on the "haskell bootstrapping procees"

Ill copy you here, in case some good sould know some fast track

( btw , do you know about rwh : http://book.realworldhaskell.org/read/
especially
http://book.realworldhaskell.org/read/installing-ghc-and-haskell-libraries.html#id688956
 )





2010/8/25 HowardBrazee <howard at brazee.net>

> Boy, am I dense.
>
> I see two "depends" lines in Reading.cabal:
>
> pkgconfig-depends:
> &
> build-depends: base -any
>
> I uncommented out
> import qualified Data.Map as M
>
> and looked at Lekah's message:
> src\Main.hs:19:17:
>    Could not find module `Data.Map':
>      It is a member of the hidden package `containers-0.3.0.0'.
>      Perhaps you need to add `containers' to the build-depends in
> your .cabal file.
>      Use -v to see a list of the files searched for.
>
> So I put "containers" after one of the depends:
> build-depends: containers base -any
>
> Leksah said:
> Setup: .\Reading.cabal has been changed, please re-configure.
> =========================================
> Setup: Reading.cabal:9: Parse of field 'build-depends' failed.
> =========================================
> Can't activate package C:\Documents and Settings\brazee\My Documents
> \Code\Windows\Reading\Reading.cabal: 9: user error (Parse of field
> 'build-depends' failed.)
> Can't read package file
>
> So I undid that change and did this instead:
> pkgconfig-depends: containers
>
> I got the following:
> Can't read package file
> Setup: .\Reading.cabal has been changed, please re-configure.
> =========================================
> Configuring Reading-0.0.1...
> Setup: pkg-config version >=0.9.0 is required but it could not be
> found.
> =========================================
> The job now runs with these unused imports.
>
> I never found "build-depends" in my cabal file.
>
> I edited this with ultra-edit as I know how to get to it.
>
> I'm still clueless about what I did, despite being told by two
> different people what to do and not being able to follow the
> directions, but doing trial and error instead.   Even after I
> finished, I don't understand the directions.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100826/d5d67077/attachment.html


More information about the Haskell-Cafe mailing list