Skip to content

Change setBit behaviour#3

Open
clample wants to merge 2 commits intozimurgh:masterfrom
clample:issue-2
Open

Change setBit behaviour#3
clample wants to merge 2 commits intozimurgh:masterfrom
clample:issue-2

Conversation

@clample
Copy link
Copy Markdown

@clample clample commented Feb 7, 2017

addresses the issues mentioned in issue #2

chrislample added 2 commits February 7, 2017 12:19
Issues building bits with the latest cabal have been resolved in the latest bits commit: ekmett/lens#709. Updating the bits dependency resolves issues building bits-bytestring.
Closes #2

Add padding when performing setBit to ensure that the length of the
bytestring isn't changed. The rightmost bit has index 0, consistent with the bit operation.

If the index is outside the bytestring, we return the same ByteString rather than error. This is consistent with the Word8 instance for Bits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant