packages/bytestring.git
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

4 years agoUpdate Safe Haskell tags on some modules
David Terei [Fri, 21 Nov 2014 21:15:32 +0000 (13:15 -0800)] 
Update Safe Haskell tags on some modules

4 years agoMerge pull request #34 from hvr/pr-deepseq-14
Duncan Coutts [Fri, 14 Nov 2014 16:43:53 +0000 (16:43 +0000)] 
Merge pull request #34 from hvr/pr-deepseq-14

Add support for `deepseq-1.4.0.0`

4 years agoAdd support for `deepseq-1.4.0.0`
Herbert Valerio Riedel [Fri, 14 Nov 2014 16:33:35 +0000 (17:33 +0100)] 
Add support for `deepseq-1.4.0.0`

This change avoids relying on `rnf`'s default method implementation
which has changed in `deepseq-1.4.0.0`

NB: previously uploaded `bytestring` releases on Hackage need retroactive
    upper bounds on `deepseq`

4 years agoBump to development version 0.10.5.0
Duncan Coutts [Sun, 9 Nov 2014 22:10:44 +0000 (22:10 +0000)] 
Bump to development version 0.10.5.0

We do have some API additions since 0.10.4.0

4 years agoImprove the author credits
Duncan Coutts [Sun, 9 Nov 2014 22:05:52 +0000 (22:05 +0000)] 
Improve the author credits

The fusion system was never actually used.
Credit Simon Meier for the builder stuff.

4 years agoAdd a changelog
Duncan Coutts [Sun, 9 Nov 2014 22:02:02 +0000 (22:02 +0000)] 
Add a changelog

And drop Don as a listed maintainer.

4 years agoFix documented complexity of unsafePackMallocCStringLen
Duncan Coutts [Sun, 9 Nov 2014 18:44:08 +0000 (18:44 +0000)] 
Fix documented complexity of unsafePackMallocCStringLen

It is indeed O(1). Spotted by polarina.

4 years agoFix haddock references to the ASCII module
Duncan Coutts [Sun, 9 Nov 2014 16:58:04 +0000 (16:58 +0000)] 
Fix haddock references to the ASCII module

Spotted by ivanm.

4 years agoMerge pull request #25 from thomie/T5861
Duncan Coutts [Sun, 9 Nov 2014 16:34:09 +0000 (16:34 +0000)] 
Merge pull request #25 from thomie/T5861

Don't mention ISO-8859-1 in doc string for hGetContents

4 years agoMerge pull request #21 from Lemmih/master
Duncan Coutts [Sun, 9 Nov 2014 16:09:22 +0000 (16:09 +0000)] 
Merge pull request #21 from Lemmih/master

Use S.foldl' on each chunk when strictly folding a lazy bytestring.

4 years agoMerge pull request #31 from spl/patch-1
Gregory Collins [Fri, 24 Oct 2014 16:22:09 +0000 (18:22 +0200)] 
Merge pull request #31 from spl/patch-1

Fix typos: rename funtion to function

4 years agoFix typos: rename funtion to function
Sean Leather [Thu, 23 Oct 2014 21:02:51 +0000 (23:02 +0200)] 
Fix typos: rename funtion to function

5 years agoDon't mention ISO-8859-1 in doc string for hGetContents
Thomas Miedema [Mon, 14 Jul 2014 12:06:38 +0000 (14:06 +0200)] 
Don't mention ISO-8859-1 in doc string for hGetContents

Closes GHC #5861.

5 years agoUse --show-details=streaming when available
Herbert Valerio Riedel [Sat, 7 Jun 2014 10:04:19 +0000 (12:04 +0200)] 
Use --show-details=streaming when available

Travis-CI assumes the build to be stuck if there's no output for several
minutes. Which is a problem since the tests for bytestring take quite
long.

5 years agoDisable regression test and turn on test-framework
Herbert Valerio Riedel [Sat, 7 Jun 2014 09:48:44 +0000 (11:48 +0200)] 
Disable regression test and turn on test-framework

The regression test has been disabled because it seems to allocate way
too much memory to be useful for CI purposes.

Moreover, the other two test-suites have been changed to be build using
test-framework which should have more well-behaved logging output
suitable for Travis-CI

5 years agoEnable --show-details=always
Herbert Valerio Riedel [Sat, 7 Jun 2014 07:54:16 +0000 (09:54 +0200)] 
Enable --show-details=always

...so we can see better what actually goes wrong on failures

5 years agoEnable ScopedTypeVariables for tests/Regressions
Herbert Valerio Riedel [Sat, 7 Jun 2014 07:36:32 +0000 (09:36 +0200)] 
Enable ScopedTypeVariables for tests/Regressions

Otherwise the module doesn't compile

5 years agoAdd new test-framework deps to TravisCI job
Herbert Valerio Riedel [Sat, 7 Jun 2014 07:23:56 +0000 (09:23 +0200)] 
Add new test-framework deps to TravisCI job

5 years agoRemove trailing comma from build-depends
Herbert Valerio Riedel [Sat, 7 Jun 2014 06:47:27 +0000 (08:47 +0200)] 
Remove trailing comma from build-depends

This was introduced in d61dffbd19cebd20b7c9cb9a8e50b3bfb1025748
but sadly Cabal doesn't support trailing commas in build-depends just *yet*

5 years agoAdd regressions to test suite
Bryan O'Sullivan [Fri, 6 Jun 2014 21:43:53 +0000 (14:43 -0700)] 
Add regressions to test suite

5 years agoFix Int overflow in Lazy.toStrict
Bryan O'Sullivan [Fri, 6 Jun 2014 21:43:15 +0000 (14:43 -0700)] 
Fix Int overflow in Lazy.toStrict

This is the final fix for gh-22.

5 years agoRename sumP to checkedSum, and export it
Bryan O'Sullivan [Fri, 6 Jun 2014 21:42:47 +0000 (14:42 -0700)] 
Rename sumP to checkedSum, and export it

5 years agoDrop trailing whitespace
Bryan O'Sullivan [Fri, 6 Jun 2014 21:41:38 +0000 (14:41 -0700)] 
Drop trailing whitespace

5 years agoProtect against Int overflow in concat
Bryan O'Sullivan [Fri, 6 Jun 2014 21:24:38 +0000 (14:24 -0700)] 
Protect against Int overflow in concat

This partially fixes gh-22.

5 years agoIgnore Emacs files
Bryan O'Sullivan [Fri, 6 Jun 2014 21:24:18 +0000 (14:24 -0700)] 
Ignore Emacs files

5 years agoIgnore cabal sandbox fun
Bryan O'Sullivan [Fri, 6 Jun 2014 20:26:22 +0000 (13:26 -0700)] 
Ignore cabal sandbox fun

5 years agoAllow tests to use multiple cores
Bryan O'Sullivan [Fri, 6 Jun 2014 20:25:36 +0000 (13:25 -0700)] 
Allow tests to use multiple cores

5 years agoConstrain version of QuickCheck for compatibility
Bryan O'Sullivan [Fri, 6 Jun 2014 20:23:09 +0000 (13:23 -0700)] 
Constrain version of QuickCheck for compatibility

5 years agoAdd GHC 7.8.3 to the Travis build-matrix
Herbert Valerio Riedel [Wed, 4 Jun 2014 08:20:54 +0000 (10:20 +0200)] 
Add GHC 7.8.3 to the Travis build-matrix

Right now `ghc-7.8.3` is just a snapshot of the soon-to-be-7.8.3 `ghc-7.8` branch

5 years agoAdd `FlexibleContexts` to fix compilation with GHC HEAD
Herbert Valerio Riedel [Wed, 28 May 2014 08:48:21 +0000 (10:48 +0200)] 
Add `FlexibleContexts` to fix compilation with GHC HEAD

This fixes the compile error

  tests/builder/Data/ByteString/Builder/Tests.hs:210:5:
    Non type-variable argument
      in the constraint: MonadWriter (D.DList Word8) m
    (Use FlexibleContexts to permit this)
    In the context: (MonadWriter (D.DList Word8) m, MonadState Int m)
    While checking the inferred type for ‘renderAction’
    ...

See also

  http://permalink.gmane.org/gmane.comp.lang.haskell.glasgow.user/24612

for more details