packages feed

primal-memory-0.3.0.0: primal-memory.cabal

name:                primal-memory
version:             0.3.0.0
synopsis:            Unified interface for memory managemenet.
description:         Please see the README on GitHub at <https://github.com/lehins/primal#readme>
homepage:            https://github.com/lehins/primal
license:             BSD3
license-file:        LICENSE
author:              Alexey Kuleshevich
maintainer:          alexey@kuleshevi.ch
copyright:           2020 Alexey Kuleshevich
category:            Algorithms
build-type:          Simple
extra-source-files:  README.md
                   , CHANGELOG.md
cabal-version:       1.18
tested-with:         GHC == 8.0.2
                   , GHC == 8.2.2
                   , GHC == 8.4.3
                   , GHC == 8.4.4
                   , GHC == 8.6.3
                   , GHC == 8.6.4
                   , GHC == 8.6.5
                   , GHC == 8.8.3
                   , GHC == 8.8.4
                   , GHC == 8.10.1

library
  hs-source-dirs:      src
  exposed-modules:     Data.Prim.Memory
                     , Data.Prim.Memory.Addr
                     , Data.Prim.Memory.ByteString
                     , Data.Prim.Memory.Bytes
                     , Data.Prim.Memory.ForeignPtr
                     , Data.Prim.Memory.Fold
                     , Data.Prim.Memory.PArray
                     , Data.Prim.Memory.Ptr
                     , Data.Prim.Memory.Text
                     , Data.Prim.Memory.Internal
  other-modules:       Data.Prim.Memory.Bytes.Internal
  build-depends:       base >= 4.9 && < 5
                     , bytestring >= 0.10.4
                     , deepseq
                     , primal >= 0.2
                     , text >= 1.1.1.3

  default-language:    Haskell2010
  ghc-options:         -Wall

test-suite doctests
  type:             exitcode-stdio-1.0
  hs-source-dirs:   tests
  main-is:          doctests.hs
  build-depends: base
               , bytestring
               , doctest >=0.15
               , primal
               , primal-memory
               , QuickCheck
               , template-haskell
  default-language:    Haskell2010
  ghc-options:        -Wall
                      -threaded


benchmark bench
  type:                exitcode-stdio-1.0
  hs-source-dirs:      bench
  main-is:             Bench.hs
  ghc-options:         -Wall
                       -threaded
                       -O2
  build-depends:       base
                     , criterion
                     , primal
                     , primal-memory
                     , primitive
                     , deepseq
                     , random
  default-language:    Haskell2010

benchmark convert
  type:                exitcode-stdio-1.0
  hs-source-dirs:      bench
  main-is:             Conversion.hs
  ghc-options:         -Wall
                       -threaded
                       -O2
  build-depends:       base
                     , criterion
                     , primal
                     , primal-memory
                     , primitive
                     , deepseq
                     , random
  default-language:    Haskell2010

benchmark compare
  type:                exitcode-stdio-1.0
  hs-source-dirs:      bench
  main-is:             Compare.hs
  ghc-options:         -Wall
                       -threaded
                       -O2
  build-depends:       base
                     , criterion
                     , primal
                     , primal-memory
                     , primitive
                     , deepseq
                     , random
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/lehins/primal