1. 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
  2. 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
  3. 14 Oct, 2010 1 commit
  4. 13 Oct, 2010 2 commits
  5. 24 Sep, 2010 1 commit
  6. 05 Oct, 2010 1 commit
  7. 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
  8. 16 Aug, 2010 1 commit
  9. 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
  10. 22 Sep, 2010 1 commit
  11. 15 Sep, 2010 1 commit
  12. 22 Jul, 2010 1 commit
  13. 16 Sep, 2010 1 commit
  14. 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
  15. 13 Sep, 2010 1 commit
  16. 14 Sep, 2010 2 commits
  17. 13 Sep, 2010 5 commits
  18. 09 Sep, 2010 2 commits
  19. 08 Sep, 2010 1 commit
  20. 07 Sep, 2010 1 commit
  21. 04 Sep, 2010 1 commit
  22. 30 Aug, 2010 1 commit
  23. 19 Aug, 2010 1 commit
  24. 15 Aug, 2010 1 commit
  25. 13 Aug, 2010 1 commit
  26. 12 Aug, 2010 1 commit
  27. 05 Jul, 2010 1 commit
  28. 28 Jul, 2010 1 commit
  29. 27 Jul, 2010 1 commit
  30. 10 Aug, 2010 1 commit
  31. 17 Sep, 2009 1 commit
  32. 29 Jul, 2010 1 commit
    • Ross Paterson's avatar
      move Monad and MonadFix instances for Either from mtl (proposal #4159) · 6583bc7b
      Ross Paterson authored
      The Monad and MonadFix instances for Either (formerly in the mtl
      package) are moved to Control.Monad.Instances and Control.Monad.Fix
      respectively.  The Monad instance is still an orphan, to retain Haskell
      98 compatibility, but the MonadFix instance is together with its class.
      The Error constraint is removed from both instances, and the default
      definition of fail is used.
      6583bc7b