1. 25 Oct, 2012 1 commit
  2. 23 Sep, 2012 1 commit
  3. 21 May, 2012 1 commit
  4. 16 Feb, 2012 1 commit
  5. 14 Feb, 2012 2 commits
  6. 14 Jan, 2012 1 commit
  7. 08 Nov, 2011 1 commit
    • tibbe's avatar
      Add unsafeShift to Data.Bits · f1c593e0
      tibbe authored
      This allows shifting by a non-statically known amount without
      introducing a branch (to check for "overflow").
      f1c593e0
  8. 26 Oct, 2011 1 commit
  9. 27 Aug, 2011 2 commits
  10. 25 Aug, 2011 1 commit
  11. 24 Aug, 2011 1 commit
  12. 28 Jul, 2011 1 commit
  13. 23 Jul, 2011 1 commit
  14. 26 Jun, 2011 1 commit
  15. 18 Jun, 2011 1 commit
  16. 03 May, 2011 1 commit
  17. 02 May, 2011 1 commit
  18. 30 Apr, 2011 2 commits
  19. 29 Apr, 2011 1 commit
  20. 28 Jan, 2011 1 commit
  21. 12 Nov, 2010 1 commit
  22. 20 Oct, 2010 1 commit
    • 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
  23. 29 Oct, 2009 1 commit
  24. 24 Apr, 2009 2 commits
  25. 03 Apr, 2009 1 commit
    • simonpj@microsoft.com's avatar
      Import GHC.Err so we see bottoming functions properly · e3abe558
      simonpj@microsoft.com authored
      Before this patch, GHC/Err.lhs-boot exported divZeroError and overflowError,
      as well as plain 'error'.  The latter has a wired-in defn in GHC (MkId.lhs),
      but the former two do not.  As a result GHC doesn't see that overflowError
      is a bottoming function at a crucial moment when compiling GHC.Real, and
      that means that divMod wasn't getting the CPR property.
      
      The fix is easy:
        - GHC/Err.lhs-boot should export only 'error'
      
        - GHC.Real, GHC.Int, and GHC.Word should import GHC.Err
          directly.  They can do this nowadays without creating
          a module loop, thanks to the new exception story
      e3abe558
  26. 05 Aug, 2008 1 commit
  27. 30 Jul, 2008 1 commit
    • Simon Marlow's avatar
      FIX #2376: inline shiftR · f3b135c7
      Simon Marlow authored
      Duplicating the default definition for shiftR doesn't seem quite right
      to me, but it gets the right results when compiling the example
      program, and I couldn't find a better way to do it.
      f3b135c7
  28. 16 Jun, 2008 1 commit
  29. 25 Mar, 2008 1 commit
  30. 23 Mar, 2008 1 commit
    • Ian Lynagh's avatar
      Move Integer out into its own package · 175e0450
      Ian Lynagh authored
      We now depend on the new integer package.
      We also depend on a new ghc-prim package, which has GHC.Prim,
      GHC.PrimopWrappers, and new modules GHC.Bool and GHC.Generics,
      containing Bool and Unit/Inl/Inr respectively.
      175e0450
  31. 20 Jan, 2008 1 commit
  32. 04 Jan, 2008 1 commit
    • simonpj@microsoft.com's avatar
      Remove redundant imports of GHC.Err · ca6fcaad
      simonpj@microsoft.com authored
      GHC.Base SOURCE-imports GHC.Err, and re-exports 'error'.  So 
      other modules need only import GHC.Base.
      
      This doesn't change the fact that these other modules are all compiled
      before GHC.Err, so they are all part of the module loop that starts with
      GHC.Base and finishes with GHC.Err.  But it does reduce the occurrence
      of those SOURCE imports.
      ca6fcaad
  33. 23 Aug, 2007 1 commit
    • Simon Marlow's avatar
      FIX #1282: 64-bit unchecked shifts are not exported from base · 4fa06d9b
      Simon Marlow authored
      I've exported these functions from GHC.Exts.  They are still
      implemented using the FFI underneath, though.
      
      To avoid conditional exports, on a 64-bit build:
      
        uncheckedShiftL64# = uncheckShiftL#
      
      (etc.) which has a different type than the 32-bit version of
      uncheckedShiftL64#, but at least GHC.Exts exports the same names.
      4fa06d9b
  34. 03 Apr, 2007 1 commit
  35. 15 Jan, 2007 1 commit
  36. 12 Oct, 2006 1 commit