[Hackage] #538: --constraint= is not respected for base

Hackage trac at galois.com
Thu Apr 2 21:02:36 EDT 2009

#538: --constraint= is not respected for base
  Reporter:  Saizan         |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:
  Severity:  normal         |     Keywords:         
Difficulty:  unknown        |   Ghcversion:         
  Platform:                 |  
 the --constraint= flag apparently does nothing when the constraint
 involves base.
 e.g. to install directory-, that imports Control.Exception.Base and
 only lists "base" in build-depends, you need to add "base >= 4", but cabal
 install directory --constraint="base >= 4"  picks base- anyway.
 saizan at astarte:~/trash/directory-$ cabal configure
 --constraint="base >= 4"
 Resolving dependencies...
 Configuring directory-
 checking for gcc... gcc
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ISO C89... none needed
 checking how to run the C preprocessor... gcc -E
 checking for grep that handles long lines and -e... /bin/grep
 checking for egrep... /bin/grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking for sys/types.h... (cached) yes
 checking for unistd.h... (cached) yes
 checking for sys/stat.h... (cached) yes
 configure: creating ./config.status
 config.status: creating include/HsDirectoryConfig.h
 config.status: include/HsDirectoryConfig.h is unchanged
 saizan at astarte:~/trash/directory-$ cabal build -v
 Creating dist/build (and its parents)
 Creating dist/build/autogen (and its parents)
 Preprocessing library directory-
 Building directory-
 Building library...
 Creating dist/build (and its parents)
 /usr/local/bin/ghc -package-name directory- --make -hide-all-
 packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen
 -Idist/build -Iinclude -optP-include
 -optPdist/build/autogen/cabal_macros.h -#include "HsDirectory.h" -odir
 dist/build -hidir dist/build -stubdir dist/build -package base-
 -package filepath- -package old-time- -package unix-
 -O -XCPP -XForeignFunctionInterface System.Directory

     Could not find module `Control.Exception.Base':
       it is a member of package base, which is hidden

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/538>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list