This project is mirrored from https://github.com/haskell/bytestring. Pull mirroring updated .
  1. 25 Jul, 2022 1 commit
  2. 14 Jul, 2022 1 commit
  3. 06 Jul, 2022 1 commit
  4. 02 Jul, 2022 1 commit
  5. 19 Jun, 2022 1 commit
  6. 15 Jun, 2022 1 commit
  7. 18 May, 2022 1 commit
  8. 04 May, 2022 1 commit
  9. 28 Apr, 2022 1 commit
  10. 14 Apr, 2022 1 commit
  11. 08 Apr, 2022 1 commit
  12. 07 Apr, 2022 1 commit
  13. 22 Mar, 2022 1 commit
  14. 16 Mar, 2022 1 commit
  15. 14 Mar, 2022 2 commits
  16. 13 Mar, 2022 1 commit
  17. 09 Mar, 2022 2 commits
  18. 28 Feb, 2022 2 commits
    • Matthew Craven's avatar
      Improve memory-safety of Semigroup instances (#443) · 12563781
      Matthew Craven authored
      * Improve memory-safety of Semigroup instances
      
      Some nearby low-hanging fruit are also gathered.
      
      * Add tests for Int overflows in concat-like functions
      
      * Incorporate cosmetic suggestions from review
      
      * Adjust conversion and overflow detection for stimes
      
      * Implement checked multiplication for older GHCs
      
      The 'timesInt2#' primop just doesn't exist before 9.0.1.
      
      * 'Fix' poor specialization behavior of strict stimes
      
      This causes GHC 9.2.1 to panic, for reasons I do not understand.
      
      * More stimes-related cleanup and bug fixes
      
      * Remove safety-unrelated changes to other instances
      
      * Make several essentially cosmetic adjustments
      
      * Subtly adjust the negative-input check for stimes
      
      * Add basic benchmark for strict stimes
      
      * Remove efforts to avoid Integer in stimes
      
      * Add comments for 'checkedIntegerToInt'
      
      * Move/add INLINE pragmas for checked arithmetic
      
      * Reduce arity of stimesPolymorphic
      
      Its ByteString argument is also marked as strict. This doesn't change
      the optimized code produced by GHC, but allows it to be consistent
      with the published imprecise exception semantics.
      12563781
    • Bodigrim's avatar
      Update changelog for bytestring-0.11.3.0 (#491) · 6cc078d9
      Bodigrim authored
      
      
      * Update changelog for bytestring-0.11.3.0
      
      * Update Changelog.md
      Co-authored-by: Simon Jakobi's avatarSimon Jakobi <simon.jakobi@gmail.com>
      Co-authored-by: Simon Jakobi's avatarSimon Jakobi <simon.jakobi@gmail.com>
      6cc078d9
  19. 27 Feb, 2022 1 commit
  20. 24 Feb, 2022 2 commits
  21. 17 Feb, 2022 1 commit
  22. 16 Feb, 2022 1 commit
  23. 15 Feb, 2022 1 commit
    • Julian Ospald's avatar
      Merge `shortbytestring` package back into `bytestring` wrt #444 (#471) · 731caea2
      Julian Ospald authored
      * Merge `shortbytestring` package back into `bytestring` wrt #444
      
      * Fix build on ARM
      
      Reusing compareByteArrays and avoiding
      excessive pointer arithmetic.
      
      * Speed up reverse by using byteSwap64 tricks
      
      * Remove phase control from inlines
      
      * Improve performance of elemIndex
      
      * Use setByteArray in replicate
      
      * Implement intercalate manually
      
      * Annotate partial functions with HasCallStack
      
      * Fix build on base < 4.12.0.0
      
      * Add uncons/unsnoc
      
      * Correct complexities
      
      * Exclude reverse optimization path from ARM
      
      It seems to cause segfaults on armv7, suggesting
      there are issues with 'indexWord8ArrayAsWord64#'.
      
      All other platforms are fine and tests pass.
      
      * Add benchmarks for ShortByteString
      
      * Improve inlining
      
      * Adjust haddock identifiers
      
      * Get rid of writeCharArray#
      
      * Haddock fixes
      
      * Clean up tests
      
      * Use -fexpose-all-unfoldings
      
      * Improve reverse
      
      * Cleanup 'reverse'
      
      * Fix possible GC race with foreign imports
      
      For more information, see
        https://github.com/haskell/bytestring/pull/471#issuecomment-1022674981
      
      * Disable asserts in shortbytestring.c
      
      * Remove redundant import
      
      * Add documentation about partial functions
      
      * Fold ShortByteString prop tests into ByteString
      
      * Restore previous INLINEs
      
      * Improve naming of bindings
      
      * Consolidate error handling functions
      
      * Remove trailing whitespace
      
      * Fix uncons in documentation
      
      * Rename indexWord64Array to indexWord8ArrayAsWord64
      
      * Improve error message
      
      * Clean up incorrect documentation
      
      * Use div/mod instead of quot/rem
      
      * Simplify branching in reverse
      
      * Move asserts to Haskell
      
      * Prefix C functions
      
      * Fix return type of c_elem_index
      
      * Fix documentation in unfoldrN
      
      * Make unfoldrN more efficient
      
      * Fix maintainer field
      
      * Fix formatting
      
      * Implement takeEnd, dropeEnd and splitAt manually
      
      * Fix some haddock identifiers
      
      * Fix unfoldrN doc
      
      * Add a primops bounds-checking job to CI
      
      * Document and clean up createAndTrim
      
      * Rename errorEmptyList to errorEmptySBS
      
      * Improve documentation for findFromEndUntil
      
      * Improve documentation and naming
      
      * Optimize out quotRem
      
      * Document compareByteArraysOff
      
      * Simplify findIndexOrLength and findFromEndUntil
      
      * Use c_count for count
      
      * Simplify elemIndex
      
      * Remove use of 'mempty'
      
      * Make sure breakSubstring is inlined into isInfixOf
      
      * Simplify stripSuffix and stripPrefix
      
      * Fix redundant import warnings
      
      * Improve 'take'
      
      * Use existing bounnds check in 'drop'
      
      * Avoid 'create' when bytestring is empty
      
      * Optimize filter
      
      * Remove redundant INLINABLE
      
      * Use shorter 'createAndTrim' in 'filter'
      
      * Simplify 'take'
      
      * Simplify 'drop'
      
      * Better formatting
      
      * Add comment to explain DNDEBUG
      
      * Refactor elemIndex
      
      * Optimize 'partition'
      
      * Optimize hot loop in 'partition'
      731caea2
  24. 06 Feb, 2022 1 commit
  25. 03 Feb, 2022 1 commit
  26. 30 Jan, 2022 1 commit
    • Jaro Reinders's avatar
      Lazier unlines (#477) · 0badf975
      Jaro Reinders authored
      * Add benchmark for lazy unlines
      
      * Make unlines lazier
      
      * Add strict unlines benchmark
      
      * Simplify strict unlines
      
      * Test laziness of unlines
      0badf975
  27. 22 Jan, 2022 1 commit
  28. 20 Jan, 2022 1 commit
    • Matthew Craven's avatar
      intercalate-related cleanup (#468) · 6ff6ed4b
      Matthew Craven authored
      * Use overflow-checked arithmetic in intercalate
      
      * Clean up intercalate-related INLINE pragmas
      
      * Revert subtle increase in intercalate's strictness
      
      * Mark intercalate as inlinable
      6ff6ed4b
  29. 13 Jan, 2022 1 commit
  30. 11 Jan, 2022 1 commit
  31. 05 Jan, 2022 1 commit
  32. 16 Dec, 2021 1 commit
    • Viktor Dukhovni's avatar
      New sized and unsigned variants of reaInt/Integer (#438) · b701111c
      Viktor Dukhovni authored
      
      
      Some applications want to read either unsigned or explicitly 64-bit integers
      (e.g. warp).  Provide all the missing overflow-checked interfaces.
      
          * readInt8, readInt16, readInt32, readInt64
          * readWord, readWord8, readWord16, readWord32, readWord64
          * readNatural
      
      Cleaned up the code and improved tests.  Uses Word as the accumular
      for all types other than Int64 and Word64, which use Word64.  When
      words are 64 bit uses base 10^19 rather than 10^9 when assembling
      Natural and Integer values.
      Co-authored-by: vdukhovni's avatarViktor Dukhovni <ietf-dane@dukhovni.org>
      b701111c
  33. 13 Dec, 2021 2 commits
  34. 12 Dec, 2021 1 commit
  35. 07 Dec, 2021 1 commit
    • Bodigrim's avatar
      Release 0.11.2.0 (#446) · f6065fae
      Bodigrim authored
      * Fix Word64# in GHC HEAD
      
      See ghc/ghc#20777
      
      * Update changelog
      
      * Do not expose Data.ByteString.Builder.RealFloat.Internal
      
      * Add since pragmas for 0.11.2.0
      f6065fae