[Haskell-beginners] Re: installing cabal with 6.10 - ubuntu

Christian Maeder Christian.Maeder at dfki.de
Tue Mar 10 04:49:39 EDT 2009

B wrote:
> I found some directions online that said that compiling from source
> might be a good way to go.  I downloaded and compiled ghc 6.10.1,
> installing it locally.

Next time include the extra-libraries in your sources, to avoid
installing so many packages afterwards.

> Ok.  Now when I go to build network I get this:
> Could not find module `Data.Generics':
>       it is a member of package base-, which is hidden
> According to google, the above message actually indicates that 'syb' is
> needed, the bug is here:
> http://hackage.haskell.org/trac/ghc/ticket/2980
> - installed syb-
> - still get the same message.
> At this point I'm stuck!

Are you sure you have version
This package does not need syb as dependency.

The file Network/URI.hs contains:
#ifdef BASE4
import Data.Data      ( Data )
import Data.Generics  ( Data )

and network.cabal sets the appropriate flag:
  if flag(base4)
      build-depends:    base>=4
      cpp-options:      -DBASE4

> I should say that I'm using this to install all these things:
> runhaskell Setup configure --user
> runhaskell Setup build
> runhaskell Setup install
> So everything is installed 'locally' and not globally.

This should be fine.

HTH Christian

More information about the Beginners mailing list