This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 23 Jan, 2008 1 commit
  2. 08 Jan, 2008 1 commit
  3. 06 Sep, 2007 1 commit
  4. 05 Sep, 2007 1 commit
    • Duncan Coutts's avatar
      Rewrite the parser for the configuration structure to allow laout or braces · d95e4b59
      Duncan Coutts authored
      Joint work with Thomas Schilling.
      The sections and indeed fields (and if/else) can now use either explicit
      brace {} style layout or indentation eg:
      > library
      >   exposed-modules: Blah
      or
      > library {
      >   exposed-modules:
      > }
      layout style can be nested within explict braces style and vica versa.
      Also add some more checks and relax the tab checks.
      Unrecognised sections, like unrecognised fields, are not fatal errors,
      so we could add sections in future without breaking old cabal.
      d95e4b59
  5. 31 Aug, 2007 1 commit
  6. 25 Aug, 2007 1 commit
  7. 24 Aug, 2007 1 commit
  8. 03 Aug, 2007 1 commit
  9. 29 Jul, 2007 1 commit
    • Ian Lynagh's avatar
      Fix haddock markup · 0b06e400
      Ian Lynagh authored
      I haven't checked that it looks right, but it is now accepted by haddock.
      0b06e400
  10. 28 Jul, 2007 1 commit
  11. 23 Jun, 2007 1 commit
  12. 18 Jun, 2007 1 commit
  13. 13 Jun, 2007 4 commits
  14. 29 May, 2007 1 commit
  15. 28 May, 2007 1 commit
  16. 21 May, 2007 1 commit
  17. 11 Mar, 2007 1 commit
  18. 14 Jan, 2007 1 commit
    • Simon Marlow's avatar
      Refactorings only · 49e3cdae
      Simon Marlow authored
      Here are a batch of refactorings to clean up parsing and parts of the
      simple build system.  This patch originated in a patch sent to
      cabal-devel@haskell.org with an intial implementation of
      configurations.  Since then we decided to go a different route with
      configurations, so I have separated the refactoring from the
      configurations patch.
      
      At this point, 2 tests fail for me, but I get the same 2 failures
      without this patch.
      49e3cdae
  19. 11 Jan, 2007 1 commit
    • Ross Paterson's avatar
      add a Build-Type field, and use it in setupWrapper · cb7aa1ef
      Ross Paterson authored
      As discussed on the libraries list (Nov 2006), add a field Build-Type
      which can be used to declare that this package uses one of the boilerplate
      setup scripts.  This allows setupWrapper (used by cabal-setup and
      cabal-install) to bypass the setup script in this case and perform
      the setup actions itself.
      cb7aa1ef
  20. 20 Nov, 2006 1 commit
  21. 27 Aug, 2006 1 commit
  22. 01 Feb, 2006 1 commit
  23. 05 Dec, 2005 1 commit
    • ijones's avatar
      check for correct cabal version during parsing · 8be4bb77
      ijones authored
      I throw a parse error if this package has the wrong cabal version.
      This is so that the user can get this error before getting an error
      for eg. an unknown field.  Also check it in the sanity checker.
      
      I just hard-code the cabal version in the source, it would be nicer if
      we got it from the .cabal file.  cabal could include the version in
      the cpp flags, but cabal's setup file needs to build without cabal, so
      that wouldn't actually work for us ahem.
      8be4bb77
  24. 16 Aug, 2005 1 commit
  25. 30 Jul, 2005 1 commit
    • ijones's avatar
      lots of cvs changes from Ross · 580183e0
      ijones authored
        tweak SHGetFolderPath
        preprocess: Hugs+MinGW: remove special case
        test *_HOST_OS (as well as *_TARGET_OS, which is there for old GHC's)
        take care of string literals while stripping comments
        rearrange so that we print "Compiling FFI stubs" at most once
        only run ffihugs on Main module if required
        add comment about older Windows versions
        Hugs only: avoid SHGetFolderPath for now
        convert input file paths to platform form (from Brian Smith)
        convert paths to native form at entry
        rename --builddir as --scratchdir to avoid clash with autoconf --build flag.
      
        doc: consolidate descriptions of preprocessors
      580183e0
  26. 19 Jul, 2005 1 commit
  27. 16 Jul, 2005 1 commit
  28. 28 Jun, 2005 1 commit
    • ijones's avatar
      lots of changes, mostly from ross · 454e0e9d
      ijones authored
        documentation updates from ross paterson
        - more accurate specification of package names
        - hs-source-dir -> hs-source-dirs in examples
        - setup clean removes a bit more
        - rearrange description of fields
      
        Version.hs: allow more spaces in version constraints
      
        Install.hs: add the exe extension when installing executables (reported by Brian Smith)
       
        test directory: add explicit dependencies on base
      
        Misc:
        Prefix error messages and warnings with the program name, and send them
        to stderr.  (Also moved some stuff from Distribution.Simple.Utils to
        Distribution.Simple.Build to avoid circular dependencies.)
      
        refactoring only: split Compiler type from Distribution.Setup,
        to reduce dependencies.
      
        Exclude DefaultSetup.lhs from the GHC build
      
        add JHC to the Compiler type
      
        refactored argument processing
      
        setup sdist --snapshot: append YYYYMMDD to the version for the bundle
      
        improved error messages (from Brian Smith):
        
        * attach source locations to messages when available
        
        * change some remaining error's do die.
      
        refactor defaultMainWorker
      
        split Distribution.Extension between Language.Haskell.Extension (just
        the type, which will also be useful when haskell-src-exts is merged)
        and Distribution.Compiler (mappings to compiler options).
      
        add Language.Haskell.Extension
      
        Simon marlow:  update defaults for prefix/libdir/bindir
      
      454e0e9d
  29. 15 May, 2005 1 commit
    • ijones's avatar
      hs-source-dirs, other-files · cffc027b
      ijones authored
      Krasimir:
        added hs-source-dirs (ross added docs)
      
        Add other-files field to PackageDescription. This is a list files
        which belong to the package but aren't compiled. These files are
        copied and packaged from sdist command.
      
      Ross:
        fixes to buildHugs and sdist after hs-source-dirs changes.
        
        Also simplified smartCopySources a bit.
      
        document sdist and new other-files field.
      cffc027b
  30. 17 Mar, 2005 1 commit
    • ijones's avatar
      fixes to parser from krasimir, fixes to sdist from ross · 0b3d4691
      ijones authored
      Krasimir says:
        Small fixes in the parser/printer. When there is a package description with
        executables only then the old implementation of pretty printer was written
        to print empty "exposed-modules" field while there isn`t any library. After
        that the parser will generate PackageDescription with (Just emptyLibrary)
        instead of Nothing. Now exposed-modules field is printed only if
        library /= Nothing
      
      Ross says:
        In smartCopySources, don't try to strip the prefix if it was ".",
        because joinFileName "." x == x
        (fixes bug reported by Iavor Diatchki)
      
        Improve sdist a bit: copy files named in main-is, license-file and c-sources.
        Also supply a default Setup.hs if none is present.
        
        This will get it working for only the simplest of packages.  It omits
        header files, configure stuff and files named in the buildinfo file.
        To do it properly, we'd need a field in the package description listing
        extra files to copy into a source distribution.
      0b3d4691
  31. 18 Feb, 2005 1 commit
    • ijones's avatar
      cvs pull from Simon Marlow · 1658ad8b
      ijones authored
        Clean up parsing & pretty-printing.
        
        Most list fields now have consistent syntax:
        
          - commas are optional
          - each element of the list is either
        	- a sequence of one or more non-space non-comma characters
        	- a quoted string in Haskell 98 lexical syntax
        
        The build-depends field still requires commas, because the elements
        can contain whitespace.
        
        I merged fieldGet/fieldShow in StanzaField into a single field for
        simplicity.
      1658ad8b
  32. 13 Feb, 2005 1 commit
  33. 11 Feb, 2005 1 commit
    • ijones's avatar
      cvs pull from ross · edd436ab
      ijones authored
        add flags arguments to post-hooks, and have defaultUserHooks use postConf
        instead of preConf.
      
        changes to package description fields, as discussed on the libraries list:
        
        * allow both License and License-File, which now correspond to different
          fields of Package Description.
        
        * add Synopsis.
        
        * rename Hidden-Modules as Other-Modules.
      edd436ab
  34. 28 Jan, 2005 1 commit
  35. 16 Jan, 2005 1 commit
    • ijones's avatar
      CVS commits from Krasimir and Ross · c4f7b2b3
      ijones authored
      ** libraries/Cabal/Distribution ParseUtils.hs 
      ** minor local refactoring of unionBuildInfo
      ** build-package -> buildable
      c4f7b2b3
  36. 12 Jan, 2005 1 commit
    • ijones's avatar
      glob of CVS changes; PError, NHC options, system.directory, NHC builds · d1975ee2
      ijones authored
      Authors: Malcolm Wallace, Ross Paterson, Krasimir Angelov
      
        move createIfNotExists and removeFileRecursive functions from
        Distribution.Simple.Utils to System.Directory. The functions are renamed
        to createDirectoryIfMissing and removeDirectoryRecursive.
      
        avoid a few GHC warnings
      
        get IOError stuff from System.IO.Error instead of System.IO
      
        Minor tweaks to build with nhc98.
      
        OPTIONS pragma stuff for nhc98 and compat w/ ghc
      
        Use a custom monad ParseResult for parse results instead of Either PError,
        removing the need for Distribution.Compat.Error and the dependency on mtl.
        
      
      d1975ee2
  37. 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
      printer.
      
      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.
      00bedcb7