1. 17 Jan, 2006 1 commit
  2. 16 Jan, 2006 1 commit
  3. 13 Jan, 2006 3 commits
    • Simon Marlow's avatar
      improvements to darcs-all · 6b16111d
      Simon Marlow authored
      - get from the same repo as the main GHC repo, if that was a local filesystem
      - allow darcs whatsnew
      - use --repodir if possible
    • Simon Marlow's avatar
      Add infrastructure for multiple library packages · 60d9fc0b
      Simon Marlow authored
      The ./darcs-all script at the top level is an easier way to do darcs
      pull/push/get on the whole tree (it should probably allow more
      commands; I'll fix that later).
      libraries/default-packages is a list of darcs repositories with which
      to populate the libraries tree.
    • Simon Marlow's avatar
      Add a skeleton libraries directory · 8c56903f
      Simon Marlow authored
      Adding files from libraries that aren't in the other
      packages sub-repos.  I haven't bothered to try to keep
      history for these files, for history go back to the CVS
  4. 12 Jan, 2006 7 commits
  5. 11 Jan, 2006 4 commits
  6. 10 Jan, 2006 8 commits
  7. 09 Jan, 2006 14 commits
  8. 06 Jan, 2006 2 commits
    • simonmar's avatar
      [project @ 2006-01-06 16:30:17 by simonmar] · 9d7da331
      simonmar authored
      Add support for UTF-8 source files
      GHC finally has support for full Unicode in source files.  Source
      files are now assumed to be UTF-8 encoded, and the full range of
      Unicode characters can be used, with classifications recognised using
      the implementation from Data.Char.  This incedentally means that only
      the stage2 compiler will recognise Unicode in source files, because I
      was too lazy to port the unicode classifier code into libcompat.
      Additionally, the following synonyms for keywords are now recognised:
        forall symbol 	(U+2200)	forall
        right arrow   	(U+2192)	->
        left arrow   		(U+2190)	<-
        horizontal ellipsis 	(U+22EF)	..
      there are probably more things we could add here.
      This will break some source files if Latin-1 characters are being used.
      In most cases this should result in a UTF-8 decoding error.  Later on
      if we want to support more encodings (perhaps with a pragma to specify
      the encoding), I plan to do it by recoding into UTF-8 before parsing.
      Internally, there were some pretty big changes:
        - FastStrings are now stored in UTF-8
        - Z-encoding has been moved right to the back end.  Previously we
          used to Z-encode every identifier on the way in for simplicity,
          and only decode when we needed to show something to the user.
          Instead, we now keep every string in its UTF-8 encoding, and
          Z-encode right before printing it out.  To avoid Z-encoding the
          same string multiple times, the Z-encoding is cached inside the
          FastString the first time it is requested.
          This speeds up the compiler - I've measured some definite
          improvement in parsing at least, and I expect compilations overall
          to be faster too.  It also cleans up a lot of cruft from the
          OccName interface.  Z-encoding is nicely hidden inside the
          Outputable instance for Names & OccNames now.
        - StringBuffers are UTF-8 too, and are now represented as
        - I've put together some test cases, not by any means exhaustive,
          but there are some interesting UTF-8 decoding error cases that
          aren't obvious.  Also, take a look at unicode001.hs for a demo.
    • simonmar's avatar
      [project @ 2006-01-06 11:04:07 by simonmar] · 2a2efb72
      simonmar authored
      Document -Rghc-timing