This project is mirrored from Pull mirroring updated .
  1. 07 Jan, 2005 1 commit
    • ijones's avatar
      fixed three bugs in the parser and pretty printer · 00bedcb7
      ijones authored
      Two of the bugs were passing the wrong accessor function to the pretty
      The third bug was that the pretty printer rendered "foo\\bar" as
      "foo\bar", but actually in order to get the slash into the string, the
      user would have to have used the quote syntax.  I think we decided
      that the quote syntax meant a haskell string, so they should input it
      as "foo\\bar", of course internally represented as "foo\bar', but when
      printed, it should show two slashes again.
  2. 03 Jan, 2005 1 commit
    • ijones's avatar
      cvs patches from Ross. mostly parser work · 3a07215f
      ijones authored
      ** add a newline to the end of the installed package description
      ** When pretty-printing free-format text fields, align the lines vertically
        (so that following lines will be seen as continuations) and replace empty
        lines with "." (so they'll be correctly re-parsed, instead of looking
        like a stanza separator).
  3. 01 Jan, 2005 1 commit
  4. 30 Dec, 2004 1 commit
    • ijones's avatar
      cvs commit blob from ross patterson · 9ef44ff2
      ijones authored
      ** haddock fixes
      ** Add the following fields to PackageDescription:
        	buildPackage   :: Bool,         -- ^ package is buildable here
        	ccOptions      :: [String],     -- ^ options for C compiler
        	ldOptions      :: [String],     -- ^ options for linker
        	frameworks     :: [String],
        When these are system dependent (as they often are), they will need to be
        overridden, but the mechanism is left to the Cabal user.
        Not that I've treated these as basic fields, so they apply to the library
        (if any) and all executables in the package.  The overriding is easier
        that way.
      ** Make the build prefix settable with the --builddir option to configure
        (in Simple), save this in the LocalBuildInfo, and use it in subsequent
        This is useful for the Hugs build, where we want to place the built
        libraries so that we can easily use them inplace.
      ** Some rearrangement, centring on changes to the definition of
        * removed the special treatment of literate source: a separate
          preprocessor can be used for these if required.
        * handlers can use package and local build info to construct the
          appropriate preprocessor.
        Also, the supplied suffix handlers list now only has entries for suffixes
        that need preprocessing (i.e. not .hs or .lhs).  Dummy entries for the
        suffixes handled by the compiler are added internally.
      **  Add a function getOptionsFromSource to fetch LANGUAGE and OPTIONS pragmas
        from the initial part of a Haskell source module (as proposed by SimonM
        on the libraries list).
        Also export the auxiliary function stripComments, which does what it says,
        optionally preserving pragmas.
  5. 07 Dec, 2004 1 commit
  6. 30 Nov, 2004 1 commit
    • simonmar's avatar
      Huge wad of changes from GHC team · d84d3728
      simonmar authored
      - Rename Compat.* modules to Distribution.Compat.*
      - Add {-# OPTIONS -cpp #-} to a few modules
      - Distribution.Compat.ReadP: use real ReadP in GHC 6.3+
      - new module: Distribution.Extension, contains Extension type
        formerly from Distribution.Misc.
      - new module: Distribution.License, contains License type
        formerly from Distribution.Misc.
      - remove Distribution.Misc
      - new module: Distribution.ParseUtils, containing various parsing utilities
        formerly from Distribution.Package, that are re-used in 
      - new module: Distribution.PackageDescription contains everything related
        to PackageDescription, which was formerly in Distribution.Package.
      - Distribution.Package now contains only PackageId-related stuff.
      - Distribution.InstalledPackageInfo: update for use in GHC, add
      - Compat.H98 is now Distribution.Compat.Error (it contained only stuff
        related to the Error monad, which isn't H98 anyway).
      - remove imports of H98 libs (use hierarchical ones instead)
      - configure now detects the GHC version (but doesn't do anything with it... yet)