testing current 6-4-branch

Serge D. Mechveliani mechvel at botik.ru
Wed Jun 15 06:23:08 EDT 2005

Dear GHC supporters,

I am trying to do the following.

(1) to install the  current GHC of 6.4 branch from CVS
    with  ghc-6.4  for recent Debian Linux. 

(2) To test how  ghc-current  understands the field
    `hs-source-dirs' in a package for multiple subdirectories
    (is `hs-source-dirs' in the current GHC ?),
    and to test module name clash resolution between the packages. 

Could you, please, tell what is wrong here?

-- (1) -----------------------------------------------------

  ghc-6.4  pre-installed s in  /usr/bin, /usr/lib
  alex, happy  installed.

  Downloading  ghc-6-4-branch  of  June 14, 2005.

  set  $CVSROOT  to   :pserver:anoncvs at glass.cse.ogi.edu:/cvs

  cd $HOME/ghc/cvs
  cvs login
  cvs co -r ghc-6-4-branch fpconfig
  cd fptools
  cvs -z3 co -r ghc-6-4-branch ghc hslibs libraries

  ./configure --prefix=$HOME/ghc/cvs/instJune14
  make install

Among the `make' reports there occur many "Bad eta expand" messages,
like this:
/usr/bin/ghc -H16m -O  -istage1/utils ...
 -Rghc-timing  -H16M '-#include "hschooks.h"' -i../lib/compat  
 -c cmm/CmmParse.hs -o stage1/cmm/CmmPars\e.o  -ohi stage1/cmm/CmmParse.hi
Bad eta expand
    (__coerce <nt>CmmParse.HappyAbsSyn{tc r3Du}
     (zgzg{v a8rY}

Anyway, it looks to install, and the new  ghc  says  "version 6.4.1".

I moved the  ghc*  files of 6.4 from  /usr/bin, /usr/lib/  to 
`invisible' place and set the path to  ghc-current.

     which ghc  and  which ghc-pkg   

-- (2) ----------------------------------------------------------

docon.cabal  is set as 

name:            docon
version:         2.9
tested-with:     GHC
                 -- should be like  "ghc-6.4" "Hugs-5.5" ...
build-depends:   data
hs-source-dirs:  "." parse 
                 -- auxil lin residue pol pol/factor 
                 -- pol/symmfunc
        DExport DPrelude Categs SetGroup RingModule DPair Z Fraction
        VecMatr LinAlg Pol GBasis Residue Permut Partition AlgSymmF 

and apply

  runhaskell Setup configure --ghc --prefix=$doconSource/inst

It reports
             ** Exception: Line 16: Unknown field 'hs-source-dirs'

I also try  `hs-source-dir:', 
but still cannot fetch to Cabal the subdirectory list  "./parse" ... 
where DoCon keeps the source.

Also you wrote that it is fixed the feature of the module name clash
in two packages, when one of them is not needed according to the
package-deps  field.
But again, it reports
    Module `DPrelude' is a member of package dumatel-
    To compile this module, please use -ignore-package dumatel-

Please, advise,

Serge Mechveliani
mechvel at botik.ru

More information about the Glasgow-haskell-users mailing list