1. 18 Sep, 2008 7 commits
    • Jedai's avatar
      RichTokenStream support · 36104d7a
      Jedai authored
      This patch adds support for raw token streams, that contain more
      information than normal token streams (they contains comments at
      least). The "lexTokenStream" function brings this support to the
      Lexer module. In addition to that, functions have been added to
      the GHC module to make easier to recover of the token stream of 
      a module ("getTokenStream").
      
      Building on that, I added what could be called "rich token
      stream": token stream to which have been added the source string
      corresponding to each token, the function addSourceToToken takes
      a StringBuffer and a starting SrcLoc and a token stream and build
      this rich token stream. getRichTokenStream is a convenience
      function to get a module rich token stream. "showRichTokenStream"
      use the SrcLoc information in such a token stream to get a string
      similar to the original source (except unsignificant
      whitespaces). Thus "putStrLn . showRichTokenStream =<<
      getRichTokenStream s mod" should print a valid module source, the
      interesting part being to modify the token stream between the get
      and the show of course.
      36104d7a
    • Ian Lynagh's avatar
    • Ian Lynagh's avatar
      Be more forceful when cleaning in compiler/ and ghc/ · 894775f0
      Ian Lynagh authored
      Now that the Cabal file is generated by configure, it would be nice
      if clean worked even if the cabal file is missing. So now we just rm -rf
      the dist directory.
      894775f0
    • Ian Lynagh's avatar
      Generate ghc.cabal and ghc-bin.cabal with configure · 51d7126e
      Ian Lynagh authored
      This allows us to put the proper version number into them
      51d7126e
    • simonpj@microsoft.com's avatar
      Fix Trac #1470: improve handling of recursive instances (needed for SYB3) · 5045af31
      simonpj@microsoft.com authored
      This bug has been hanging around for a long time, as you'll see by its
      number. The fix implements a feature that is really needed by SYB3, to
      allow an instance to (rather indirectly) refer to itself.  The trickiness
      comes when solving the superclass constraints.
      
      The whoel issue is explained in Note [Recursive instances and superclases]
      in TcSimplify.
      
      In cracking this one I found I could remove the WantSCs argument to the
      ReduceMe flag, which is a worthwhile simplification.  Good!
      5045af31
    • simonpj@microsoft.com's avatar
      Replace ASSERT with WARN, and explain why · 81c8d88a
      simonpj@microsoft.com authored
      The DPH library tripped an ASSERT.  The code is actually OK, but it's
      badly-optimised so I changed it to WARN.  The issue here is explained
      in ClosureInfo, Note [Unsafe coerce complications].
      81c8d88a
    • simonpj@microsoft.com's avatar
  2. 17 Sep, 2008 7 commits
  3. 18 Sep, 2008 1 commit
  4. 17 Sep, 2008 2 commits
  5. 16 Sep, 2008 3 commits
  6. 15 Sep, 2008 2 commits
  7. 14 Sep, 2008 2 commits
  8. 13 Sep, 2008 1 commit
    • chak@cse.unsw.edu.au.'s avatar
      Type families: completed the new equality solver · e8917205
      chak@cse.unsw.edu.au. authored
      - Implements normalisation of class constraints containing synonym family
        applications or skolems refined by local equalities.
      - Clean up of TcSimplify.reduceContext by using the new equality solver.
      - Removed all the now unused code of the old algorithm.
      - This completes the implementation of the new algorithm, but it is largely
        untested => many regressions.
      e8917205
  9. 16 Sep, 2008 5 commits
  10. 15 Sep, 2008 1 commit
  11. 12 Sep, 2008 3 commits
  12. 11 Sep, 2008 1 commit
  13. 10 Sep, 2008 1 commit
  14. 15 Sep, 2008 4 commits