cabal-version:      2.4
name:               array-chunks
version:            0.1.4.2
synopsis:           Lists of chunks
description:
  Lists of chunks. This is similar to the Cons List provided
  by `Data.List`, but it is more useful as a target for a
  builder since the chunks are cache coherent.

homepage:           https://github.com/byteverse/array-chunks
bug-reports:        https://github.com/byteverse/array-chunks/issues
license:            BSD-3-Clause
license-file:       LICENSE
author:             Andrew Martin
maintainer:         amartin@layer3com.com
copyright:          2019 Andrew Martin
category:           Data
extra-doc-files:    CHANGELOG.md
extra-source-files: cabal.project
tested-with:        GHC ==9.4.8 || ==9.6.3 || ==9.8.1

common build-settings
  default-language: Haskell2010
  ghc-options:      -Wall -Wunused-packages

library
  import:          build-settings
  exposed-modules: Data.Chunks
  build-depends:
    , base       >=4.12  && <5
    , primitive  >=0.6.4 && <0.10
    , run-st     >=0.1   && <0.2

  hs-source-dirs:  src
  ghc-options:     -O2

test-suite test
  import:         build-settings
  type:           exitcode-stdio-1.0
  hs-source-dirs: test
  main-is:        Main.hs
  build-depends:
    , array-chunks
    , base
    , primitive
    , QuickCheck
    , quickcheck-classes  >=0.6.3 && <0.7
    , tasty
    , tasty-hunit
    , tasty-quickcheck

source-repository head
  type:     git
  location: git://github.com/byteverse/array-chunks.git