[darcs-users] enfranchising darcs?

Ben Franksen benjamin.franksen at bessy.de
Fri Oct 17 17:42:26 UTC 2008


Eric Kow wrote:
> The idea is that if I do:
> 
>   runhaskell setup clean
>   ghc-pkg unregister mtl
>   runhaskell setup configure
>   runhaskell setup build
> 
> For some reason I thought the configure would pass and that the build
> would fail.  But I see this was an error, because actually the configure
> fails with:
> 
> | Error building darcs.depend:
> | 
> | src/Printer.lhs:58:7:
> |     Could not find module `Control.Monad.Reader':
> |       Use -v to see a list of the files searched for.
> | Error:  Failure building darcs.depend
> | 
> | src/Printer.lhs:58:7:
> |     Could not find module `Control.Monad.Reader':
> |       Use -v to see a list of the files searched for.
> 
> ... which is more or less reasonable since it's configure that's
> failing.  I would prefer something more informative, like "try
> installing mtl", but as you say below...

Another issue with franchise (as it stands) is this: I have a parsec-3
installed but also a parsec-2. I want darcs to build using parsec-2,
ignoring parsec-3. How do I do this?

I tried to hide parsec-3:

ben at sarun[1]: .../darcs.net/unstable > ghc-pkg list parsec   
/usr/local/lib/ghc-6.8.3/package.conf:
    parsec-2.1.0.1
/home/ben/.ghc/i386-linux-6.8.3/package.conf:
    parsec-3.0.0
ben at sarun[1]: .../darcs.net/unstable > ghc-pkg hide parsec-3.0.0 --user
Saving old package config file... done.
Writing new package config file... done.
ben at sarun[1]: .../darcs.net/unstable > ghc-pkg list parsec
/usr/local/lib/ghc-6.8.3/package.conf:
    parsec-2.1.0.1
/home/ben/.ghc/i386-linux-6.8.3/package.conf:
    (parsec-3.0.0)

but it doesn't help:

ben at sarun[1]: .../darcs.net/unstable > runghc setup.hs configure
Haskeline not found.
Configuring...
found module System.Posix.Signals in packages base unix-2.3.0.1
found library z with -lz
found module Network.HTTP in package HTTP-3001.1.3
Checking for libwww... found.
About to checkWindows...
Added packages mtl-1.1.0.2 regex-compat-0.71.0.1 old-time-1.0.0.0
network-2.2.0.0 containers-0.1.0.2 process-1.0.0.1 directory-1.0.0.1
parsec-3.0.0 random-1.0.0.0 html-1.0.1.1 array-0.1.0.0 filepath-1.1.0.0...
Added packages old-locale-1.0.0.0 haskell98...
About to checkWindows...
Configure successful.

Note that franchise choses the (hidden!) parsec-3.

Cheers
Ben



More information about the darcs-users mailing list