packages/bytestring.git
2 years agoMerge pull request #99 from ezyang/pr/haddock-fix
Duncan Coutts [Wed, 8 Feb 2017 22:14:37 +0000 (22:14 +0000)] 
Merge pull request #99 from ezyang/pr/haddock-fix

Haddock fixup.

2 years agoHaddock fixup.
Edward Z. Yang [Wed, 7 Dec 2016 19:26:13 +0000 (11:26 -0800)] 
Haddock fixup.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
2 years agoBump to 0.10.8.2 and update changelog
Duncan Coutts [Sun, 13 Nov 2016 21:13:24 +0000 (21:13 +0000)] 
Bump to 0.10.8.2 and update changelog

2 years agoMerge pull request #96 from mrkkrp/add-since-notes
Duncan Coutts [Sun, 13 Nov 2016 21:03:39 +0000 (21:03 +0000)] 
Merge pull request #96 from mrkkrp/add-since-notes

Add ‘since’ notes to relatively new functions

2 years agoMerge branch 'bgamari-needless-copies'
Duncan Coutts [Sun, 13 Nov 2016 20:59:34 +0000 (20:59 +0000)] 
Merge branch 'bgamari-needless-copies'

2 years agoAvoid copying if possible in `concat`
Ben Gamari [Sun, 15 May 2016 21:37:51 +0000 (23:37 +0200)] 
Avoid copying if possible in `concat`

The `binary` package revealed a rather obvious missing optimization here
when it forced extraneous copies with the evaluation of `concat [a,b]`
where `a` is empty and `b` is large.

Here we rework `Data.ByteString.concat` and `Data.ByteString.Lazy.concat`
to more aggressively avoid unnecessary copies in the face of
concatentations of lists with empty chunks. This rework has the nice
advantage of avoiding allocation during computation of the final buffer
length in the case where a copy is necessary (whereas previously
`checkedSum` would fail to fuse and therefore require allocation for its
list argument).

2 years agoAdd ‘since’ notes to relatively new functions
mrkkrp [Thu, 3 Nov 2016 21:37:51 +0000 (00:37 +0300)] 
Add ‘since’ notes to relatively new functions

2 years agoMerge pull request #79 from oherrala/fix-issue67
Duncan Coutts [Tue, 11 Oct 2016 20:59:29 +0000 (21:59 +0100)] 
Merge pull request #79 from oherrala/fix-issue67

Catch IOException from hFileSize in readFile

2 years agoMerge pull request #89 from oherrala/travis-ghc710
Duncan Coutts [Tue, 11 Oct 2016 20:48:29 +0000 (21:48 +0100)] 
Merge pull request #89 from oherrala/travis-ghc710

Update .travis.yml

2 years agoMerge pull request #91 from RyanGlScott/master
Duncan Coutts [Tue, 11 Oct 2016 20:47:58 +0000 (21:47 +0100)] 
Merge pull request #91 from RyanGlScott/master

Fix GHC 7.0.1 build by working around Trac #4498

2 years agoMerge pull request #90 from ezyang/pr/cstring-docs
Duncan Coutts [Tue, 11 Oct 2016 20:36:56 +0000 (21:36 +0100)] 
Merge pull request #90 from ezyang/pr/cstring-docs

Fix #86, remark on lifetime properties of CString.

2 years agoMerge pull request #93 from TravisWhitaker/char8_readfile_fix
Duncan Coutts [Tue, 11 Oct 2016 20:36:00 +0000 (21:36 +0100)] 
Merge pull request #93 from TravisWhitaker/char8_readfile_fix

Data.ByteString.Char8 uses IO functions exported from Data.ByteString

2 years agoData.ByteString.Char8 uses IO functions exported from Data.ByteString
Travis Whitaker [Tue, 20 Sep 2016 21:09:59 +0000 (17:09 -0400)] 
Data.ByteString.Char8 uses IO functions exported from Data.ByteString

2 years agoFix GHC 7.0.1 build by working around Trac #4498
Ryan Scott [Sun, 4 Sep 2016 16:05:24 +0000 (12:05 -0400)] 
Fix GHC 7.0.1 build by working around Trac #4498

2 years agoFix #86, remark on lifetime properties of CString.
Edward Z. Yang [Fri, 2 Sep 2016 04:36:57 +0000 (21:36 -0700)] 
Fix #86, remark on lifetime properties of CString.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
2 years agoAdd GHC 7.10.3 and GHC 7.8.4 to Travis. Drop other GHC 7.8.x
Ossi Herrala [Thu, 1 Sep 2016 17:28:19 +0000 (20:28 +0300)] 
Add GHC 7.10.3 and GHC 7.8.4 to Travis. Drop other GHC 7.8.x

2 years agoCatch IOException from hFileSize in readFile
Ossi Herrala [Thu, 1 Sep 2016 14:16:34 +0000 (17:16 +0300)] 
Catch IOException from hFileSize in readFile

hFileSize only works for regular files and fails for example with
/dev/null. However, hFileSize is only used as a hint for how much to
read. It should be safe to ignore the exception and try reading the
given file anyway.

Fixes #67

2 years agoMerge branch 'SeanRBurton-master'
Duncan Coutts [Thu, 1 Sep 2016 13:31:24 +0000 (14:31 +0100)] 
Merge branch 'SeanRBurton-master'

2 years agoVarious small refactorings.
Sean [Mon, 23 May 2016 13:21:52 +0000 (14:21 +0100)] 
Various small refactorings.

Including:
Fix tests.
Incorporate feedback.

2 years agoMerge pull request #82 from nmattia/document-concurrent-hput
Duncan Coutts [Thu, 1 Sep 2016 13:17:35 +0000 (14:17 +0100)] 
Merge pull request #82 from nmattia/document-concurrent-hput

Add documentation for Lazy hPut

2 years agoMerge pull request #85 from spl/patch-2
Duncan Coutts [Thu, 1 Sep 2016 13:16:07 +0000 (14:16 +0100)] 
Merge pull request #85 from spl/patch-2

travis: Fix for newer GHC/Cabal

2 years agoMerge pull request #84 from spl/patch-1
Duncan Coutts [Thu, 1 Sep 2016 13:14:33 +0000 (14:14 +0100)] 
Merge pull request #84 from spl/patch-1

Bump test-builder dlist upper bound to 0.9

3 years agotravis: Add GHC 8.0.1
Sean Leather [Mon, 18 Jul 2016 08:48:39 +0000 (10:48 +0200)] 
travis: Add GHC 8.0.1

3 years agotravis: Fix for newer GHC/Cabal
Sean Leather [Mon, 18 Jul 2016 07:34:10 +0000 (09:34 +0200)] 
travis: Fix for newer GHC/Cabal

3 years agoBump test-builder dlist upper bound to 0.9
Sean Leather [Mon, 18 Jul 2016 06:36:32 +0000 (08:36 +0200)] 
Bump test-builder dlist upper bound to 0.9

3 years agoAdd documentation for Lazy hPut
Nicolas Mattia [Sun, 12 Jun 2016 20:30:35 +0000 (21:30 +0100)] 
Add documentation for Lazy hPut

3 years agoMerge pull request #76 from Seraphime/trac-fix-12084
Duncan Coutts [Wed, 1 Jun 2016 13:07:18 +0000 (14:07 +0100)] 
Merge pull request #76 from Seraphime/trac-fix-12084

Fix: #12084 deprecate old profiling flags

3 years agoFix: #12084 deprecate old profiling flags
Seraphime Kirkovski [Sun, 22 May 2016 15:43:14 +0000 (17:43 +0200)] 
Fix: #12084 deprecate old profiling flags

3 years agoMerge pull request #75 from bgamari/fix-travis-head
Duncan Coutts [Mon, 16 May 2016 14:45:17 +0000 (15:45 +0100)] 
Merge pull request #75 from bgamari/fix-travis-head

travis: Use Cabal 1.24 when building for GHC HEAD

3 years agotravis: Use Cabal 1.24 when building for GHC HEAD
Ben Gamari [Mon, 16 May 2016 11:32:23 +0000 (13:32 +0200)] 
travis: Use Cabal 1.24 when building for GHC HEAD

3 years agoBump version to 0.10.8.1 0.10.8.1
Duncan Coutts [Sun, 15 May 2016 20:59:50 +0000 (21:59 +0100)] 
Bump version to 0.10.8.1

And update changelog

3 years agoFix misspelled WORDS_BIGENDIAN macro
Herbert Valerio Riedel [Thu, 12 May 2016 18:36:34 +0000 (20:36 +0200)] 
Fix misspelled WORDS_BIGENDIAN macro

This was causing word{16,32,64}{le,be} primitives to break
on big endian archs (such as `powerpc`/`powerpc64`) with
serious consequences such as
https://github.com/TomMD/pureMD5/issues/5

3 years agoAdd missing operator import (fixes #72)
Michael Snoyman [Wed, 4 May 2016 04:34:25 +0000 (07:34 +0300)] 
Add missing operator import (fixes #72)

3 years agoUpdate changelog for 0.10.8.0 0.10.8.0
Duncan Coutts [Tue, 3 May 2016 22:40:35 +0000 (23:40 +0100)] 
Update changelog for 0.10.8.0

3 years agoBump version to "even" 0.10.8.0 version
Herbert Valerio Riedel [Wed, 20 Apr 2016 21:08:55 +0000 (23:08 +0200)] 
Bump version to "even" 0.10.8.0 version

This is done now in order for GHC 8.0.1 RC4 (which is about to be
cut) to advertise the proper even version of `bytestring`

3 years agoCleanup whitespace and dead code
Ben Gamari [Thu, 24 Mar 2016 11:24:12 +0000 (12:24 +0100)] 
Cleanup whitespace and dead code

3 years agoFix breakByte and spanByte rewrite rules
Ben Gamari [Tue, 8 Mar 2016 16:53:50 +0000 (17:53 +0100)] 
Fix breakByte and spanByte rewrite rules

Previously these were matching on (==), which was rewritten by the class
op rule before the breakByte rule had an opportunity to fire (#70).
Unfortunately fixing this requires that we change the Eq instances
provided by GHC. This has been done in GHC 8.0.1 (base-4.9.0).

3 years agoAllow newer versions of dlist/mtl for testsuite
Herbert Valerio Riedel [Mon, 28 Mar 2016 14:42:42 +0000 (16:42 +0200)] 
Allow newer versions of dlist/mtl for testsuite

3 years agoImplement `stripPrefix`/`stripSuffix`
Mario Blažević [Mon, 21 Sep 2015 23:46:21 +0000 (19:46 -0400)] 
Implement `stripPrefix`/`stripSuffix`

This fixes #49 and closes #60

3 years agoMerge pull request #66 from haskell/revert-46-patch-1
Duncan Coutts [Wed, 2 Dec 2015 11:40:38 +0000 (11:40 +0000)] 
Merge pull request #66 from haskell/revert-46-patch-1

Revert "`cabal repl` error"

Turns out it breaks the GHC testsuite.

3 years agoRevert "`cabal repl` error" revert-46-patch-1
Duncan Coutts [Wed, 2 Dec 2015 11:39:52 +0000 (11:39 +0000)] 
Revert "`cabal repl` error"

3 years agoBump to odd 0.10.7.0 version
Herbert Valerio Riedel [Mon, 30 Nov 2015 11:23:37 +0000 (12:23 +0100)] 
Bump to odd 0.10.7.0 version

This way snapshot builds of GHC HEAD will advertise clearly that `bytestring` is a dev snapshot

3 years agoMerge pull request #64 from hvr/pr/semigroups
Duncan Coutts [Mon, 30 Nov 2015 11:13:03 +0000 (11:13 +0000)] 
Merge pull request #64 from hvr/pr/semigroups

Define Semigroup instances for base>=4.9

3 years agoDefine Semigroup instances for base>=4.9
Herbert Valerio Riedel [Sat, 28 Nov 2015 20:39:19 +0000 (21:39 +0100)] 
Define Semigroup instances for base>=4.9

See https://github.com/ekmett/semigroups/issues/56 for more details

3 years agosilence redundant import warning
Herbert Valerio Riedel [Sat, 28 Nov 2015 20:17:34 +0000 (21:17 +0100)] 
silence redundant import warning

3 years agoMerge pull request #57 from SeanRBurton/master
Gregory Collins [Mon, 2 Nov 2015 19:46:16 +0000 (11:46 -0800)] 
Merge pull request #57 from SeanRBurton/master

Implement Rabin-Karp substring search.

3 years agoFix import issue.
Sean [Mon, 2 Nov 2015 16:33:57 +0000 (16:33 +0000)] 
Fix import issue.

3 years agoimport `Bits` typeclass.
Sean [Mon, 2 Nov 2015 16:19:43 +0000 (16:19 +0000)] 
import `Bits` typeclass.

3 years agoFurther fix.
Sean [Mon, 2 Nov 2015 16:09:58 +0000 (16:09 +0000)] 
Further fix.

3 years agoFix build breakage.
Sean [Mon, 2 Nov 2015 15:58:01 +0000 (15:58 +0000)] 
Fix build breakage.

3 years agoMerge https://github.com/haskell/bytestring
Sean [Mon, 2 Nov 2015 15:33:27 +0000 (15:33 +0000)] 
Merge https://github.com/haskell/bytestring

Conflicts:
Data/ByteString.hs
bench/BenchAll.hs

3 years agoMerge pull request #63 from hvr/pr-de-cpp
Duncan Coutts [Tue, 20 Oct 2015 11:18:32 +0000 (12:18 +0100)] 
Merge pull request #63 from hvr/pr-de-cpp

Radically reduce #ifdefs

3 years agoRadically reduce #ifdefs
Herbert Valerio Riedel [Sun, 18 Oct 2015 08:35:07 +0000 (10:35 +0200)] 
Radically reduce #ifdefs

This assumes that __GLASGOW_HASKELL__ is 612 or later, as well as
`base >= 4.2` (c.f. `bytestring.cabal`).

3 years agoMerge pull request #62 from SeanRBurton/partition
Gregory Collins [Sat, 10 Oct 2015 15:41:50 +0000 (08:41 -0700)] 
Merge pull request #62 from SeanRBurton/partition

Improve the performance of `partition` for lazy and strict bytestrings

3 years agoMerge pull request #46 from athanclark/patch-1
Duncan Coutts [Wed, 30 Sep 2015 12:08:24 +0000 (13:08 +0100)] 
Merge pull request #46 from athanclark/patch-1

`cabal repl` error

3 years agoMerge pull request #53 from trofi/master
Duncan Coutts [Wed, 30 Sep 2015 12:07:24 +0000 (13:07 +0100)] 
Merge pull request #53 from trofi/master

fix Char8.unwords type in module's comment

3 years agoBenchmark the new partition implementations.
Sean [Wed, 30 Sep 2015 10:03:37 +0000 (11:03 +0100)] 
Benchmark the new partition implementations.

3 years agoImprove the performance of `partition` for lazy and strict bytestrings
Sean [Fri, 18 Sep 2015 08:14:01 +0000 (09:14 +0100)] 
Improve the performance of `partition` for lazy and strict bytestrings

3 years agoUndo whitespace changes.
Sean [Mon, 28 Sep 2015 21:26:21 +0000 (22:26 +0100)] 
Undo whitespace changes.

3 years agoFix spelling error.
Sean [Mon, 28 Sep 2015 21:04:21 +0000 (22:04 +0100)] 
Fix spelling error.

3 years agoTiny performance tweak.
Sean [Mon, 28 Sep 2015 15:10:51 +0000 (16:10 +0100)] 
Tiny performance tweak.

3 years agoMerge https://github.com/haskell/bytestring
Sean [Mon, 28 Sep 2015 14:46:23 +0000 (15:46 +0100)] 
Merge https://github.com/haskell/bytestring

3 years agoAdd benchmarks and improve substring matching performance.
Sean [Mon, 28 Sep 2015 13:42:15 +0000 (14:42 +0100)] 
Add benchmarks and improve substring matching performance.

3 years agoMerge pull request #59 from SeanRBurton/fix-tests2
Gregory Collins [Mon, 28 Sep 2015 13:54:50 +0000 (06:54 -0700)] 
Merge pull request #59 from SeanRBurton/fix-tests2

Fix test performance to stop Travis CI timing out.

3 years agoChange bounds again.
Sean [Thu, 24 Sep 2015 22:52:48 +0000 (23:52 +0100)] 
Change bounds again.

3 years agoSigh... Trying again.
Sean [Thu, 24 Sep 2015 22:47:30 +0000 (23:47 +0100)] 
Sigh... Trying again.

3 years agoRejigger .travis.yml
Sean [Thu, 24 Sep 2015 22:42:03 +0000 (23:42 +0100)] 
Rejigger .travis.yml

3 years agoForce reinstalls; last ditch effort to get this working.
Sean [Thu, 24 Sep 2015 21:36:11 +0000 (22:36 +0100)] 
Force reinstalls; last ditch effort to get this working.

3 years agoRefresh sandbox
Sean [Thu, 24 Sep 2015 21:28:19 +0000 (22:28 +0100)] 
Refresh sandbox

3 years agofix cabal bounds in .travis.yml
Sean [Thu, 24 Sep 2015 21:23:31 +0000 (22:23 +0100)] 
fix cabal bounds in .travis.yml

3 years agoUpdate cabal bounds
Sean [Thu, 24 Sep 2015 21:17:02 +0000 (22:17 +0100)] 
Update cabal bounds

3 years agoSmall adjustments
Sean [Thu, 24 Sep 2015 18:59:43 +0000 (19:59 +0100)] 
Small adjustments

3 years agoFix type error in previous commit.
Sean [Thu, 24 Sep 2015 17:51:49 +0000 (18:51 +0100)] 
Fix type error in previous commit.

3 years agoFix test performance to stop Travis CI timing out.
Sean [Thu, 24 Sep 2015 17:39:01 +0000 (18:39 +0100)] 
Fix test performance to stop Travis CI timing out.

3 years agoImplement Rabin-Karp substring search.
Sean [Fri, 18 Sep 2015 08:14:01 +0000 (09:14 +0100)] 
Implement Rabin-Karp substring search.

Conflicts:
Data/ByteString.hs

4 years agofix Char8.unwords type in module's comment
Sergei Trofimovich [Sun, 9 Aug 2015 15:40:46 +0000 (16:40 +0100)] 
fix Char8.unwords type in module's comment

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
4 years agoFix the testsuite 0.10.6.0
Duncan Coutts [Fri, 20 Mar 2015 18:45:38 +0000 (18:45 +0000)] 
Fix the testsuite

4 years agoUpdate changelog and add it to the tarball
Duncan Coutts [Fri, 20 Mar 2015 16:54:35 +0000 (16:54 +0000)] 
Update changelog and add it to the tarball

4 years agoUpdate builds with list, dates and drop old TODO
Duncan Coutts [Fri, 20 Mar 2015 16:50:57 +0000 (16:50 +0000)] 
Update builds with list, dates and drop old TODO

4 years agoFix warnings for ghc-7.10
Duncan Coutts [Fri, 20 Mar 2015 16:45:38 +0000 (16:45 +0000)] 
Fix warnings for ghc-7.10

4 years agoFix build for ghc 6.12
Duncan Coutts [Fri, 20 Mar 2015 16:45:19 +0000 (16:45 +0000)] 
Fix build for ghc 6.12

4 years ago`cabal repl` error
Athan Clark [Thu, 19 Mar 2015 17:18:21 +0000 (11:18 -0600)] 
`cabal repl` error

I'm not sure if this is an intended issue or flaw, but on GHC-7.8.3 running on an Intel i7 in linux, I could not seem to get into an interactive repl unless `-fobject-code` was also added - the `Data.ByteString.Builder.ASCII` module wasn't compiling. Here is the error for more detail: http://lpaste.net/128004

4 years agoMerge pull request #38 from DaveCTurner/patch-1
Duncan Coutts [Thu, 15 Jan 2015 19:23:43 +0000 (19:23 +0000)] 
Merge pull request #38 from DaveCTurner/patch-1

hGet returns 'empty' not 'null' at EOF

4 years agoMerge pull request #40 from bgamari/builder-opt
Duncan Coutts [Thu, 15 Jan 2015 19:22:38 +0000 (19:22 +0000)] 
Merge pull request #40 from bgamari/builder-opt

Eta expand continuation of empty

4 years agoEta expand continuation of empty
Ben Gamari [Thu, 15 Jan 2015 16:54:21 +0000 (11:54 -0500)] 
Eta expand continuation of empty

4 years agohGet returns 'empty' not 'null' at EOF
David Turner [Fri, 19 Dec 2014 15:26:30 +0000 (15:26 +0000)] 
hGet returns 'empty' not 'null' at EOF

4 years agoBump version to 0.10.6.0
Duncan Coutts [Thu, 18 Dec 2014 19:30:16 +0000 (19:30 +0000)] 
Bump version to 0.10.6.0

4 years agoUpdate changelog
Duncan Coutts [Sun, 14 Dec 2014 18:53:50 +0000 (18:53 +0000)] 
Update changelog

4 years agoFix readFile for files with incorrectly reported file sizes
Duncan Coutts [Sun, 14 Dec 2014 18:52:16 +0000 (18:52 +0000)] 
Fix readFile for files with incorrectly reported file sizes

This situation can arise when the file is changed concurrently with the
file read, or for files where the OS reports the size as 0, such as for
certain device file or proc virtual file system files.

This should fix issue #10

4 years agoFix unfoldrN to call the predicate at most n times.
Duncan Coutts [Sun, 14 Dec 2014 16:19:24 +0000 (16:19 +0000)] 
Fix unfoldrN to call the predicate at most n times.

As a consequence unfoldrN 0 (const Nothing) 0 is now ("", Just 0) where
before it was ("", Nothing). The other tests still pass.

This fixes issue #11.

4 years agoRemove old fusion related stuff
Duncan Coutts [Sun, 14 Dec 2014 14:55:14 +0000 (14:55 +0000)] 
Remove old fusion related stuff

We never used array fusion in a released version.

4 years agoRemove various old commented-out implementations
Duncan Coutts [Sun, 14 Dec 2014 14:51:21 +0000 (14:51 +0000)] 
Remove various old commented-out implementations

4 years agoAdd -fwarn-tabs
Duncan Coutts [Sun, 14 Dec 2014 14:44:26 +0000 (14:44 +0000)] 
Add -fwarn-tabs

4 years agoReplace STRICT macros with bang patterns
Duncan Coutts [Sun, 14 Dec 2014 14:43:48 +0000 (14:43 +0000)] 
Replace STRICT macros with bang patterns

4 years agoRe-export isSuffixOf from D.B.L.Char8
Duncan Coutts [Sun, 14 Dec 2014 14:12:47 +0000 (14:12 +0000)] 
Re-export isSuffixOf from D.B.L.Char8

As requested in issue 30

4 years agoAdd required CPP language pragmas
Duncan Coutts [Sun, 14 Dec 2014 14:11:21 +0000 (14:11 +0000)] 
Add required CPP language pragmas

4 years agoWe should not have exported breakByte, add a deprecation message
Duncan Coutts [Sun, 14 Dec 2014 14:10:44 +0000 (14:10 +0000)] 
We should not have exported breakByte, add a deprecation message

4 years agoReplace explicit uses of seq with bang patterns
Duncan Coutts [Sun, 14 Dec 2014 13:15:45 +0000 (13:15 +0000)] 
Replace explicit uses of seq with bang patterns

4 years agoMerge pull request #12 from DaveCTurner/master
Duncan Coutts [Sun, 14 Dec 2014 12:41:25 +0000 (12:41 +0000)] 
Merge pull request #12 from DaveCTurner/master

Added Data.ByteString.Lazy.elemIndexEnd implementation

4 years agoMerge pull request #36 from dterei/more-safe-haskell
Duncan Coutts [Thu, 4 Dec 2014 17:51:09 +0000 (17:51 +0000)] 
Merge pull request #36 from dterei/more-safe-haskell

Update Safe Haskell tags on some modules