Permalink
Switch branches/tags
Commits on Jan 9, 2015
  1. Bump version to 0.5

    kolmodin committed Jan 9, 2015
  2. travis: don't run 'cabal check'

    kolmodin committed Jan 9, 2015
    It fails due to -O2 warning.
  3. Add .gitignore

    kolmodin committed Jan 9, 2015
  4. Add Travis CI

    kolmodin committed Jan 9, 2015
  5. Bump version to 0.4

    kolmodin committed Jan 9, 2015
Commits on Apr 9, 2013
  1. Merge pull request #5 from polachok/bit-put

    kolmodin committed Apr 9, 2013
    Don't leak higher bits in putWord8 and putWord16be
Commits on Apr 8, 2013
  1. Don't leak higher bits in putWord8 and putWord16be

    polachok committed Apr 8, 2013
     - copy-paste make_mask from Get.hs
     - use it
Commits on Apr 6, 2013
  1. Expose long hidden bug.

    kolmodin committed Apr 6, 2013
    Bug discovered by Alexander Polakov.
    We change how putBool works to expose it, making it easier to fix,
    lots of tests in the test suite breaks by this change,
    but they shouldn't.
    putWord8 is broken, as it may let bits we want to be unused leak into
    the output. If some high bits are set in a Word8, but we don't want to
    output them, they will anyway leak and corrupt previously written bits.
    The following program is now broken with this commit;
    
    broken = do
     putBool False
     putBool True
    
    It'll output a byte: 11000000
    instead of the expected: 01000000
Commits on Apr 1, 2013
Commits on Mar 31, 2013
  1. Merge pull request #2 from polachok/master

    kolmodin committed Mar 31, 2013
    getLazyByteString: read current byte + isEmpty
  2. isEmpty: check bs first

    polachok committed Mar 31, 2013
     suggested by @kolmodin
  3. Fix isEmpty tests

    polachok committed Mar 31, 2013
     - remove stupid Bool comparisons
     - no need for numeric parameter in prop_isEmptyOfConsumedEmpty
    
     suggested by @kolmodin
Commits on Mar 30, 2013
Commits on Mar 29, 2013
  1. Add isEmpty

    polachok committed Mar 28, 2013
Commits on Mar 14, 2013
  1. Bump version to 0.3.

    kolmodin committed Mar 14, 2013
  2. Export getLazyByteString.

    kolmodin committed Mar 14, 2013
  3. Add getLazyByteString.

    kolmodin committed Mar 14, 2013
    Don't allow block merging for this function, as
    blocks are always done on strict bytestrings.
Commits on Oct 28, 2012
  1. Bump version to 0.2.

    kolmodin committed Oct 28, 2012
  2. Fix to compile package with GHC 7.6.1

    kolmodin committed Oct 28, 2012
    Issue reported by Eugene Kirpichov <ekirpichov@gmail.com>.
Commits on Apr 25, 2012
  1. Another 3% speedup.

    kolmodin committed Apr 25, 2012
  2. Keep the current chunk within the BitGet monad.

    kolmodin committed Apr 25, 2012
    Using the ensureN, get and put methods from binary-0.6.0.0 we
    can keep the current chunk within the BitGet monad and put what
    remains of the chunk when the monad has finished executing or
    if we encounter an error.
Commits on Mar 1, 2012
  1. Guard getByteString for negative numbers.

    kolmodin committed Mar 1, 2012
    Return the empty string if n<=0.
  2. Comment out Random instances.

    kolmodin committed Mar 1, 2012
    We should do this conditionally, only not needed if random>=1.0.1.0.
  3. Test for trying to read negative length with getByteString.

    kolmodin committed Mar 1, 2012
    If not checking the requested read length, we're most likely to
    segfault.
Commits on Jan 26, 2012
Commits on Oct 22, 2011
  1. Add test for Applicative BitGet.

    kolmodin committed Oct 22, 2011
    What's more interesting is Applicative Block, but we don't have a class for
    Block reads yet, so we can't make the test polymorphic.