This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 27 Mar, 2008 4 commits
    • Duncan Coutts's avatar
      Rename various *Verbose fields to *Verbosity instead · 556b9877
      Duncan Coutts authored
      Despite appearances this is actually not completely pointless.
      For the Cabal-1.4 branch we need the *Verbose fields to have the
      same types as they did in Cabal-1.2, becuase lots of Setup.hs
      scripts use them and our change to make them all have type Flag
      makes many Setup.hs scripts fail. A solution for the 1.4 branch
      is to rename the real field and to add the old field back in.
      To keep as much similarity as possible between the HEAD and 1.4
      branches I'm applying the name change in both.
      On the plus side it's a better name anyway.
      556b9877
    • Duncan Coutts's avatar
      Make UTF-8 decoding errors in .cabal files non-fatal · c4f0e7ca
      Duncan Coutts authored
      Previously we checked for invalid UTF-8 in the first phase of the
      parser, which splitting the file up into nested sections and fields.
      This meant the whole parser falls over if there is invalid UTF-8
      anywhere in the file. Sadly there are already packages on hackage
      with invalid UTF-8 so we would fail when parsing the hackage index.
      The solution is to move the check into the parsing of the individual
      fields and making it a warning not an error. We most typically get
      invalid UTF-8 in free text fields like author name, copyright,
      description etc so this should work out ok usually.
      We now get pretty decent error messages, like:
        Warning: hsx.cabal:5: Invalid UTF-8 text in the 'author' field.
      The warning type is now structured so that hackage will be able to
      distinguish general non-fatal warnings from UTF-8 decoding problems
      which really should be fatal errors for package uploads. 
      c4f0e7ca
    • Duncan Coutts's avatar
      Separate the OS/Arch classifiation used for different purposes · 507ed739
      Duncan Coutts authored
      We have to classify System.Info.{os,arch} strings into the OS and Arch
      enums. For that purpose we have to be quite permissive since there are
      lots of ailases that the various Haskell implementations use. However
      for parsing os and arch names in .cabal files we'd prefer to use
      canonical names, though we do have to allow the couple aliases already
      in common use.
      507ed739
    • Duncan Coutts's avatar
      Arch and OS names were previously allowed to contain "_-", restore that. · 0f45e192
      Duncan Coutts authored
      That is the arch and os strings in conditionals in .cabal files, like:
        if arch(x86_64)
      Previously the parser used isAlphaNum c || (c `elem` "_-"). This is
      crucial for arch names like "x86_64". So make the new parser for OS
      and Arch types use the same string parser as before (there is a string
      parse part and a separate classification of known OS/Arch values).
      0f45e192
  2. 26 Mar, 2008 5 commits
  3. 25 Mar, 2008 10 commits
  4. 24 Mar, 2008 11 commits
  5. 23 Mar, 2008 1 commit
  6. 21 Mar, 2008 3 commits
    • Duncan Coutts's avatar
      Make parsing of licenses more robust · 0f3d5966
      Duncan Coutts authored
      Added an UnknownLicense String constructor so that we can remember
      unknown license names and report them and prevent them from being
      uploaded to hackage, but not fail hard with a parse error upon
      encountering an unknown license. This does not add any new licesnes
      or and new valid parses of existing licenses. The parsing phase
      now allows an optional version like "GPL-3" however that would still
      be classified as an unknown license at the moment. The point is it's
      no longer a parse error but a semantic error instead.
      0f3d5966
    • Duncan Coutts's avatar
      -Wall police · 51538e89
      Duncan Coutts authored
      51538e89
    • mnislaih's avatar
      Automatically highlight default options of a CommandUI when converting it to a list of GetOpts · 77235603
      mnislaih authored
      I shamelessly stole some code from GHCi for the highlighting.
      77235603
  7. 20 Mar, 2008 1 commit
  8. 19 Mar, 2008 1 commit
  9. 21 Mar, 2008 4 commits