name:                 bitvec
version:              1.1.3.0
visibility:           public
id:                   bitvec-1.1.3.0-LkCbUb3LJiRAsCOxzAjeuJ
key:                  bitvec-1.1.3.0-LkCbUb3LJiRAsCOxzAjeuJ
license:              BSD-3-Clause
copyright:            2019-2022 Andrew Lelechenko, 2012-2016 James Cook
maintainer:           Andrew Lelechenko <andrew.lelechenko@gmail.com>
author:
    Andrew Lelechenko <andrew.lelechenko@gmail.com>,
    James Cook <mokus@deepbondi.net>

homepage:             https://github.com/Bodigrim/bitvec
synopsis:             Space-efficient bit vectors
description:
    A newtype over 'Bool' with a better 'Vector' instance: 8x less memory, up to 1000x faster.

    The <https://hackage.haskell.org/package/vector vector>
    package represents unboxed arrays of 'Bool's
    spending 1 byte (8 bits) per boolean.
    This library provides a newtype wrapper 'Bit' and a custom instance
    of an unboxed 'Vector', which packs bits densely,
    achieving an __8x smaller memory footprint.__
    The performance stays mostly the same;
    the most significant degradation happens for random writes
    (up to 10% slower).
    On the other hand, for certain bulk bit operations
    'Vector' 'Bit' is up to 1000x faster than 'Vector' 'Bool'.

    === Thread safety

    * "Data.Bit" is faster, but writes and flips are thread-unsafe.
    This is because naive updates are not atomic:
    they read the whole word from memory,
    then modify a bit, then write the whole word back.
    * "Data.Bit.ThreadSafe" is slower (up to 20%),
    but writes and flips are thread-safe.

    === Similar packages

    * <https://hackage.haskell.org/package/bv bv> and
    <https://hackage.haskell.org/package/bv-little bv-little>
    do not offer mutable vectors.

    * <https://hackage.haskell.org/package/array array>
    is memory-efficient for 'Bool', but lacks
    a handy 'Vector' interface and is not thread-safe.

category:             Data, Bit Vectors
abi:                  469a0e1a587bfea56bf76cbda443187c
exposed:              True
exposed-modules:      Data.Bit Data.Bit.ThreadSafe
hidden-modules:
    Data.Bit.F2Poly Data.Bit.F2PolyTS Data.Bit.Gmp Data.Bit.Immutable
    Data.Bit.ImmutableTS Data.Bit.Internal Data.Bit.InternalTS
    Data.Bit.Mutable Data.Bit.MutableTS Data.Bit.PdepPext
    Data.Bit.Utils

import-dirs:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.4.4/bitvec-1.1.3.0-LkCbUb3LJiRAsCOxzAjeuJ

library-dirs:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.4.4/bitvec-1.1.3.0-LkCbUb3LJiRAsCOxzAjeuJ

library-dirs-static:
    /usr/pkg/lib/x86_64-netbsd-ghc-9.4.4/bitvec-1.1.3.0-LkCbUb3LJiRAsCOxzAjeuJ

dynamic-library-dirs: /usr/pkg/lib/x86_64-netbsd-ghc-9.4.4
data-dir:             /usr/pkg/share/x86_64-netbsd-ghc-9.4.4/bitvec-1.1.3.0
hs-libraries:         HSbitvec-1.1.3.0-LkCbUb3LJiRAsCOxzAjeuJ
depends:
    base-4.17.0.0 bytestring-0.11.3.1 deepseq-1.4.8.0 ghc-bignum-1.3
    primitive-0.7.4.0-F0fP468f3Bl6qhcpC3mefe
    vector-0.13.0.0-LyA2XMZv4x4BPxS40j7A1r

haddock-interfaces:
    /usr/pkg/share/doc/x86_64-netbsd-ghc-9.4.4/bitvec-1.1.3.0/html/bitvec.haddock

haddock-html:
    /usr/pkg/share/doc/x86_64-netbsd-ghc-9.4.4/bitvec-1.1.3.0/html
