1. 27 Apr, 2012 2 commits
  2. 12 Apr, 2012 1 commit
  3. 04 Apr, 2012 1 commit
  4. 28 Mar, 2012 1 commit
  5. 23 Mar, 2012 4 commits
  6. 27 Feb, 2012 2 commits
  7. 10 Feb, 2012 1 commit
  8. 12 Jan, 2012 1 commit
    • Simon Peyton Jones's avatar
      Implememt -fdefer-type-errors (Trac #5624) · 5508ada4
      Simon Peyton Jones authored
      This patch implements the idea of deferring (most) type errors to
      runtime, instead emitting only a warning at compile time.  The
      basic idea is very simple:
      
       * The on-the-fly unifier in TcUnify never fails; instead if it
         gets stuck it emits a constraint.
      
       * The constraint solver tries to solve the constraints (and is
         entirely unchanged, hooray).
      
       * The remaining, unsolved constraints (if any) are passed to
         TcErrors.reportUnsolved.  With -fdefer-type-errors, instead of
         emitting an error message, TcErrors emits a warning, AND emits
         a binding for the constraint witness, binding it
         to (error "the error message"), via the new form of evidence
         TcEvidence.EvDelayedError.  So, when the program is run,
         when (and only when) that witness is needed, the program will
         crash with the exact same error message that would have been
         given at compile time.
      
      Simple really.  But, needless to say, the exercise forced me
      into some major refactoring.
      
       * TcErrors is almost entirely rewritten
      
       * EvVarX and WantedEvVar have gone away entirely
      
       * ErrUtils is changed a bit:
           * New Severity field in ErrMsg
           * Renamed the type Message to MsgDoc (this change
             touches a lot of files trivially)
      
       * One minor change is that in the constraint solver we try
         NOT to combine insoluble constraints, like Int~Bool, else
         all such type errors get combined together and result in
         only one error message!
      
       * I moved some definitions from TcSMonad to TcRnTypes,
         where they seem to belong more
      5508ada4
  9. 07 Jan, 2012 1 commit
  10. 03 Jan, 2012 1 commit
  11. 06 Dec, 2011 1 commit
  12. 22 Nov, 2011 1 commit
  13. 21 Nov, 2011 2 commits
  14. 16 Nov, 2011 1 commit
  15. 09 Nov, 2011 1 commit
  16. 29 Sep, 2011 1 commit
  17. 31 May, 2011 3 commits
  18. 25 May, 2011 1 commit
  19. 16 Apr, 2011 1 commit
  20. 04 Apr, 2011 1 commit
  21. 29 Mar, 2011 1 commit
  22. 01 Feb, 2011 1 commit
  23. 28 Jan, 2011 1 commit
  24. 27 Jan, 2011 1 commit
    • simonpj@microsoft.com's avatar
      Refine incomplete-pattern checks (Trac #4905) · a0f6d307
      simonpj@microsoft.com authored
      The changes are:
      
      * New flag -fwarn-incomplete-uni-patterns, which checks for
        incomplete patterns in (a) lambdas, (b) pattern bindings
      
      * New flag is not implied by -W or -Wall (too noisy; and many
        libraries use incomplete pattern bindings)
      
      * Actually do the incomplete-pattern check for pattern bindings
        (previously simply omitted)
      
      * Documentation for new flag
      a0f6d307
  25. 01 Dec, 2010 1 commit
  26. 06 Mar, 2011 2 commits
  27. 16 Nov, 2010 2 commits
  28. 14 Nov, 2010 1 commit
    • Ian Lynagh's avatar
      Remove -Ofile docs · 1edc287a
      Ian Lynagh authored
      They said:
          (NOTE: not supported since GHC 4.x.  Please ask if you're interested
          in this.)
      1edc287a
  29. 13 Oct, 2010 1 commit
  30. 22 Sep, 2010 1 commit