1. 27 Oct, 2010 1 commit
  2. 16 Oct, 2010 1 commit
  3. 25 Oct, 2010 2 commits
    • simonpj@microsoft.com's avatar
      Add showMultiLineString to GHC.Show · 4041be61
      simonpj@microsoft.com authored
      This is part of the fix for #4436
      
        showMultiLineString :: String -> [String]
        -- | Like 'showLitString' (expand escape characters using Haskell
        -- escape conventions), but 
        --   * break the string into multiple lines
        --   * wrap the entire thing in double quotes
        -- Example:  @breakMultiLineString "hello\ngoodbye\nblah"@ 
        -- returns   @["\"hello\\", "\\goodbye\\", "\\blah\"" ]@
        -- where those "\\" are really just a single backslash
        -- (but I'm writing them here as Haskell literals)
      4041be61
    • Malcolm.Wallace@me.com's avatar
  4. 23 Oct, 2010 1 commit
  5. 22 Oct, 2010 1 commit
  6. 19 Oct, 2010 2 commits
    • Daniel Fischer's avatar
      FIX #4335 · 27310e0d
      Daniel Fischer authored
      fromRational :: Rational -> Ratio a produced invalid results for fixed-width
      types a. Reduce the fraction to avoid that.
      27310e0d
    • Daniel Fischer's avatar
      FIX #4337 · ca69c4ff
      Daniel Fischer authored
      Special versions for the power functions with a Rational base and rewrite rules.
      ca69c4ff
  7. 21 Oct, 2010 2 commits
  8. 26 Sep, 2010 2 commits
  9. 20 Oct, 2010 2 commits
    • Daniel Fischer's avatar
      FIX #4334 · c3c35334
      Daniel Fischer authored
      Make selector thunks visible to GHC to fix a space leak in lines.
      c3c35334
    • Daniel Fischer's avatar
      FIX #1434 · 2620fbe0
      Daniel Fischer authored
      Rewrite rules for RealFrac methods with sized Int and Word targets.
      For all types whose range is contained in Int's range, there are now
      rewrite rules for properFraction, truncate, floor, ceiling and round
      from Double and Float, going through the specialised methods for Int.
      
      Unfortunately, we can't have a rewrite rule for Word.
      2620fbe0
  10. 18 Oct, 2010 1 commit
    • simonpj@microsoft.com's avatar
      Define SpecConstrAnnotation in GHC.Exts, and import it from there · 686bce8f
      simonpj@microsoft.com authored
        
      Reason: avoid having to link the entire ghc package in modules
      that use compile-time annotations:
        
             import GHC.Exts( SpecConstrAnnotation )
             {-# ANN type T ForceSpecConstr #-}
        
      It's a kind of bug that the package exporting SpecConstrAnnotation
      is linked even though it is only needed at compile time, but putting
      the data type declaration in GHC.Exts is a simple way to sidestep
      the problem
        
      See See Note [SpecConstrAnnotation] in SpecConstr
      686bce8f
  11. 14 Oct, 2010 1 commit
  12. 13 Oct, 2010 2 commits
  13. 24 Sep, 2010 1 commit
  14. 05 Oct, 2010 1 commit
  15. 02 Oct, 2010 1 commit
    • Daniel Fischer's avatar
      Lazier intersperse · efc5f12b
      Daniel Fischer authored
      A lazier implementation of intersperse, and consequentially intercalate, to
      avoid space leaks.
      efc5f12b
  16. 16 Aug, 2010 1 commit
  17. 30 Sep, 2010 1 commit
    • Daniel Fischer's avatar
      Make intersectBy lazier · 8e812825
      Daniel Fischer authored
      Add shortcuts to intersectBy for empty list arguments.
      In addition to being faster in that case, more inputs yield defined results.
      Treats ticket #4323
      8e812825
  18. 22 Sep, 2010 1 commit
  19. 15 Sep, 2010 1 commit
  20. 22 Jul, 2010 1 commit
  21. 16 Sep, 2010 1 commit
  22. 15 Sep, 2010 1 commit
    • Simon Marlow's avatar
      Windows: map ERROR_NO_DATA to EPIPE, rather than EINVAL · deea031d
      Simon Marlow authored
      WriteFile() returns ERROR_NO_DATA when writing to a pipe that is
      "closing", however by default the write() wrapper in the CRT maps this
      to EINVAL so we get confusing things like
      
        hPutChar: invalid argument (Invalid Argumnet)
      
      when piping the output of a Haskell program into something that closes
      the pipe early.  This was happening in the testsuite in a few place.
      
      The solution is to map ERROR_NO_DATA to EPIPE correctly, as we
      explicitly check for EPIPE on stdout (in GHC.TopHandler) so we can
      exit without an error in this case.
      deea031d
  23. 13 Sep, 2010 1 commit
  24. 14 Sep, 2010 2 commits
  25. 13 Sep, 2010 5 commits
  26. 09 Sep, 2010 2 commits
  27. 08 Sep, 2010 1 commit
  28. 07 Sep, 2010 1 commit