1. 27 May, 2009 5 commits
    • simonpj@microsoft.com's avatar
      Fix Trac #3221: renamer warnings for deriving clauses · 685f6314
      simonpj@microsoft.com authored
      This patch arranges to gather the variables used by 'deriving' clauses,
      so that unused bindings are correctly reported.
      685f6314
    • simonpj@microsoft.com's avatar
      Template Haskell: allow type splices · 389cca21
      simonpj@microsoft.com authored
      At last!  Trac #1476 and #3177
      
      This patch extends Template Haskell by allowing splices in
      types.  For example
      
        f :: Int -> $(burble 3)
      
      A type splice should work anywhere a type is expected.  This feature
      has been long requested, and quite a while ago I'd re-engineered the
      type checker to make it easier, but had never got around to finishing
      the job.  With luck, this does it.
      
      There's a ToDo in the HsSpliceTy case of RnTypes.rnHsType, where I
      am not dealing properly with the used variables; but that's awaiting
      the refactoring of the way we report unused names.
      
      
      389cca21
    • simonpj@microsoft.com's avatar
      Template Haskell: improve lifting for strings · 97a8fe87
      simonpj@microsoft.com authored
      When you have a (\s::String -> ....[| s |]....), the string 
      's' is lifted.  We used to get a chain of single-character 
      Cons nodes, correct but lots and lots of code.  
      
      This patch arranges to optimise that to a string literal. It does
      so in two places:
        a) In TcExpr, if we know that s::String, we generate liftString directly
        b) In DsMeta, if we find a list of character literals, we convert to
           a string.  This catches a few cases that (a) does not
      
      There an accompanying  patch in the template-haskell package, 
      adding Language.Haskell.TH.Syntax.liftString
      
      
      97a8fe87
    • simonpj@microsoft.com's avatar
    • simonpj@microsoft.com's avatar
      Comments about wiredInIds · e598b8f9
      simonpj@microsoft.com authored
      e598b8f9
  2. 26 May, 2009 4 commits
  3. 25 May, 2009 1 commit
  4. 24 May, 2009 6 commits
  5. 23 May, 2009 8 commits
  6. 22 May, 2009 1 commit
    • Ian Lynagh's avatar
      Change how we find the host/build/target platforms · 82fbc4be
      Ian Lynagh authored
      Rather than using the autoconf built-in stuff and mangling it, we
      now just ask the bootstrapping compiler what platform we are on.
      
      When doing a port of GHC, you need to specify the platform you are
      porting to.
      
      The minimum version of GHC required is now 6.8.
      82fbc4be
  7. 20 May, 2009 2 commits
  8. 28 Mar, 2009 1 commit
  9. 06 May, 2009 2 commits
  10. 28 Mar, 2009 1 commit
  11. 22 May, 2009 1 commit
  12. 21 May, 2009 5 commits
  13. 20 May, 2009 1 commit
  14. 21 May, 2009 2 commits