1. 14 Jun, 2011 6 commits
  2. 13 Jun, 2011 14 commits
  3. 12 Jun, 2011 3 commits
  4. 11 Jun, 2011 8 commits
  5. 10 Jun, 2011 7 commits
  6. 09 Jun, 2011 2 commits
    • Ian Lynagh's avatar
      77ffb1af
    • Ian Lynagh's avatar
      Refactor SrcLoc and SrcSpan · b2bd63f9
      Ian Lynagh authored
      The "Unhelpful" cases are now in a separate type. This allows us to
      improve various things, e.g.:
      * Most of the panic's in SrcLoc are now gone
      * The Lexer now works with RealSrcSpans rather than SrcSpans, i.e. it
        knows that it has real locations and thus can assume that the line
        number etc really exists
      * Some of the more suspicious cases are no longer necessary, e.g.
        we no longer need this case in advanceSrcLoc:
            advanceSrcLoc loc _ = loc -- Better than nothing
      
      More improvements can probably be made, e.g. tick locations can
      probably use RealSrcSpans too.
      b2bd63f9