packages feed

Cabal revisions of byteslice-0.2.5.1

Hackage metadata revisions edit the .cabal file after upload; each diff below is one revision.

revision 1
-cabal-version: 2.2-name: byteslice-version: 0.2.5.1-synopsis: Slicing managed and unmanaged memory-description:-  This library provides types that allow the user to talk about a slice of-  a ByteArray or a MutableByteArray. It also offers UnmanagedBytes, which-  is kind of like a slice into unmanaged memory. However, it is just an-  address and a length.-homepage: https://github.com/andrewthad/byteslice-bug-reports: https://github.com/andrewthad/byteslice/issues-license: BSD-3-Clause-license-file: LICENSE-author: Andrew Martin-maintainer: andrew.thaddeus@gmail.com-copyright: 2020 Andrew Martin-category: Data-extra-source-files: CHANGELOG.md--flag avoid-rawmemchr-    default: True-    description: Avoid using rawmemchr which is non-portable GNU libc only--library-  exposed-modules:-    Data.Bytes-    Data.Bytes.Chunks-    Data.Bytes.Mutable-    Data.Bytes.Types-  other-modules:-    Data.Bytes.Byte-    Data.Bytes.Pure-    Data.Bytes.IO-    UnliftedBytes-  build-depends:-    , base >=4.11.1 && <5-    , bytestring >=0.10.8 && <0.11-    , primitive >=0.7 && <0.8-    , primitive-unlifted >=0.1.2 && <0.2-    , primitive-addr >=0.1 && <0.2-    , run-st >=0.1.1 && <0.2-    , tuples >=0.1 && <0.2-    , vector >=0.12 && <0.13-  hs-source-dirs: src-  ghc-options: -Wall -O2-  if impl(ghc>=8.10)-    hs-source-dirs: src-unlifted-newtypes-  else-    hs-source-dirs: src-no-unlifted-newtypes-    ghc-options: -fno-warn-dodgy-imports -fno-warn-dodgy-exports-  default-language: Haskell2010-  include-dirs: include-  includes: bs_custom.h-  install-includes: bs_custom.h-  c-sources: cbits/bs_custom.c-  if flag(avoid-rawmemchr)-    cc-options: -DAVOID_RAWMEMCHR=1--test-suite test-  default-language: Haskell2010-  type: exitcode-stdio-1.0-  hs-source-dirs: test-  main-is: Main.hs-  ghc-options: -Wall -O2-  build-depends:-    , base >=4.11.1 && <5-    , byteslice-    , bytestring-    , primitive-    , quickcheck-classes >=0.6.4-    , tasty-    , tasty-hunit-    , tasty-quickcheck--benchmark bench-  type: exitcode-stdio-1.0-  build-depends:-    , base-    , byteslice-    , gauge-    , primitive-  ghc-options: -Wall -O2-  default-language: Haskell2010-  hs-source-dirs: bench-  main-is: Main.hs+cabal-version: 2.2
+name: byteslice
+version: 0.2.5.1
+x-revision: 1
+synopsis: Slicing managed and unmanaged memory
+description:
+  This library provides types that allow the user to talk about a slice of
+  a ByteArray or a MutableByteArray. It also offers UnmanagedBytes, which
+  is kind of like a slice into unmanaged memory. However, it is just an
+  address and a length.
+homepage: https://github.com/andrewthad/byteslice
+bug-reports: https://github.com/andrewthad/byteslice/issues
+license: BSD-3-Clause
+license-file: LICENSE
+author: Andrew Martin
+maintainer: andrew.thaddeus@gmail.com
+copyright: 2020 Andrew Martin
+category: Data
+extra-source-files: CHANGELOG.md
+
+flag avoid-rawmemchr
+    default: True
+    description: Avoid using rawmemchr which is non-portable GNU libc only
+
+library
+  exposed-modules:
+    Data.Bytes
+    Data.Bytes.Chunks
+    Data.Bytes.Mutable
+    Data.Bytes.Types
+  other-modules:
+    Data.Bytes.Byte
+    Data.Bytes.Pure
+    Data.Bytes.IO
+    UnliftedBytes
+  build-depends:
+    , base >=4.11.1 && <4.15
+    , bytestring >=0.10.8 && <0.11
+    , primitive >=0.7 && <0.8
+    , primitive-unlifted >=0.1.2 && <0.2
+    , primitive-addr >=0.1 && <0.2
+    , run-st >=0.1.1 && <0.2
+    , tuples >=0.1 && <0.2
+    , vector >=0.12 && <0.13
+  hs-source-dirs: src
+  ghc-options: -Wall -O2
+  if impl(ghc>=8.10)
+    hs-source-dirs: src-unlifted-newtypes
+  else
+    hs-source-dirs: src-no-unlifted-newtypes
+    ghc-options: -fno-warn-dodgy-imports -fno-warn-dodgy-exports
+  default-language: Haskell2010
+  include-dirs: include
+  includes: bs_custom.h
+  install-includes: bs_custom.h
+  c-sources: cbits/bs_custom.c
+  if flag(avoid-rawmemchr)
+    cc-options: -DAVOID_RAWMEMCHR=1
+
+test-suite test
+  default-language: Haskell2010
+  type: exitcode-stdio-1.0
+  hs-source-dirs: test
+  main-is: Main.hs
+  ghc-options: -Wall -O2
+  build-depends:
+    , base >=4.11.1 && <5
+    , byteslice
+    , bytestring
+    , primitive
+    , quickcheck-classes >=0.6.4
+    , tasty
+    , tasty-hunit
+    , tasty-quickcheck
+
+benchmark bench
+  type: exitcode-stdio-1.0
+  build-depends:
+    , base
+    , byteslice
+    , gauge
+    , primitive
+  ghc-options: -Wall -O2
+  default-language: Haskell2010
+  hs-source-dirs: bench
+  main-is: Main.hs