Permalink
Commits on May 29, 2008
  1. Put spaces round || and && when displaying version range expressions

    This makes them much more readable.
    dcoutts committed May 29, 2008
  2. Change the PackageIndex invariant so the buckets are ordered

    Each bucket holds packages with the same name case-insensitively.
    Previously each buckets was internally unordered. Now they're
    ordered by the full package id which means first by package name
    case-sensitively and then by version.
    dcoutts committed May 29, 2008
  3. Add thisPackageVersion and notThisPackageVersion

    Util functions for makeing dependencies from package identifiers.
    thisPackageVersion    (foo-1.0) = foo ==1.0
    notThisPackageVersion (foo-1.0) = foo /=1.0
    The latter is handy as a constraint in dependency resolution.
    dcoutts committed May 29, 2008
  4. Add notThisVersion :: Version -> VersionRange

    Opposite of ThisVersion, it means /= x.y but is actually implemented
    as > x.y || < x.y as we do not have not or not equal as primitives.
    dcoutts committed May 29, 2008
  5. Merge the addition of the distpref flag with the verbosity changes

    The Cabal-1.4 branch happened to have the verbosity flag changes in
    exactly the same place where distpref change landed.
    dcoutts committed May 29, 2008
Commits on May 21, 2008
  1. Write out Bool config values correctly

    Used by cabal-install when writing the default ~/.cabal/config file.
    Previously it was using show for type Maybe Bool and writing out
    "Just True" when of course it should just be "True".
    dcoutts committed May 21, 2008
Commits on May 20, 2008
  1. Rename doc/fptools.css to avoid the ghc build system cleaning it

    The user guide gets built in two different ways. There's a target
    in Cabal's the top level Makefile and there is also the stuff that
    the ghc build system uses. The ghc build system expects to copy in
    doc/fptools.css and then delete it again on make clean. We want a
    persistent copy so that we can make the docs when we've just got a
    standalone Cabal build tree, so that's now kept as doc/Cabal.css.
    dcoutts committed May 20, 2008
Commits on May 19, 2008
  1. Allow the bindir, libdir and libexec dir to be specified via env vars…

    … too
    
    Same as for the datadir. Eg for package Foo, you'd use
    Foo_bindir=... Foo_datadir=... Foo_libexecdir=... ./Foo
    The next step would be generating a wrapper script that allows
    running the program inplace. It should also work for a library.
    dcoutts committed May 19, 2008
Commits on May 14, 2008
  1. Remove redundant Char test in parseBuildToolName

    It was made redundant after the isSymbol test was removed.
    Spotted by Igloo.
    dcoutts committed May 14, 2008
  2. Eliminate use of bracketOnError, use handle instead

    It's actually more appropriate anyway.
    This means we don't need any Distribution.Compat.Exception.
    dcoutts committed May 14, 2008
  3. Add in {-# OPTIONS #-} for the benefit of ghc-6.4.x

    Which do not grok OPTIONS_GHC or LANGUAGE pragmas
    dcoutts committed May 14, 2008
  4. fix scope errors in non-GHC branch of an #ifdef

    Malcolm.Wallace committed May 14, 2008
  5. Prefix the datadir env var with the package name

    Partly as it is more likely not to clash with other users and since
    in general different libs within a program may need different paths.
    dcoutts committed May 14, 2008
  6. Don't use Data.Char.isSymbol as it doesn't exist in base-1.0

    This is an alternative fix to creating a Distribution.Compat.Char
    dcoutts committed May 14, 2008
  7. Modules that use cpp have to have cpp language prama to say so

    Otherwise we cannot compile with just ghc --make
    which is actually essential for bootstrapping.
    dcoutts committed May 14, 2008
  8. Hack around lack of Read for Map in GHC 6.4

    This is made worse by Show on Map being strange in GHC 6.4.
    The code could be better, but it works, and all the ugliness is in
    #if's that we can remove at some point down the line.
    igfoo committed May 14, 2008
Commits on May 13, 2008
  1. Remove unused import

    dcoutts committed May 13, 2008
  2. Print exit code and stderr for failing progs at debug level verbosity

    Also adjust the verbosity level we get during configure at -v3
    Should make it a bit easier to track down failing calls.
    dcoutts committed May 13, 2008
Commits on May 11, 2008
  1. Remove a hardcoded "dist"

    igfoo committed May 11, 2008
Commits on May 9, 2008
  1. document data-dir field

    int-e committed May 9, 2008
  2. add data-dir field to package config

    Cabal will look for data files to install relative to the directory given
    in the data-dir field, allowing package authors to better structure their
    source tree. There's no behavioural change by default.
    int-e committed May 9, 2008
  3. Display Cabal version in configure output with -v

    eg "Using Cabal-1.5.1 compiled by ghc-6.8"
    Annoyingly ghc doesn't give us its full version number.
    dcoutts committed May 9, 2008
  4. Do not display version tags

    dcoutts committed May 9, 2008
Commits on Apr 13, 2008
  1. Made it possible to run executeables with data files in place.

    Added an environment variable, DATA_DIR, that is checked before the
    installation data directory is used.
    tibbe committed Apr 13, 2008