packages feed

shortbytestring-0.2.0.0: shortbytestring.cabal

cabal-version:      3.0
name:               shortbytestring
version:            0.2.0.0
license:            MIT
license-file:       LICENSE
maintainer:         hasufell@posteo.de
author:             Julian Ospald
bug-reports:        https://github.com/hasufell/shortbytestring/issues
synopsis:           Additional ShortByteString API
description:
  Additional ShortByteString API, as well as a Word16 based UTF-16LE module.

tested-with:
  GHC ==8.0.2
   || ==8.2.2
   || ==8.4.4
   || ==8.6.5
   || ==8.8.4
   || ==8.10.6
   || ==9.0.1

category:           System
extra-doc-files:    CHANGELOG.md
extra-source-files: tests/Properties/ByteString/Common.hs

library
  exposed-modules:
    Data.ByteString.Short
    Data.ByteString.Short.Decode
    Data.ByteString.Short.Encode
    Data.ByteString.Short.Internal
    Data.ByteString.Short.Word16

  hs-source-dirs:           lib
  default-language:         Haskell2010
  ghc-options: -Wall -Wextra
  build-depends:
    , base              >=4.9.1.0  && <5
    , bytestring        ^>=0.10.8.1
    , exceptions        ^>=0.10
    , primitive         ^>=0.7
    , template-haskell  >=2.10     && <2.20
    , text              >=1.2.3.0  && <1.2.6
    , word16
    , word8             ^>=0.1

  x-docspec-extra-packages: QuickCheck

benchmark bench
  main-is:          Bench.hs
  other-modules:
    Short.BenchAll
    Short.BenchIndices
    Short.Word16.BenchAll
    Short.Word16.BenchIndices

  type:             exitcode-stdio-1.0
  hs-source-dirs:   bench
  default-language: Haskell2010
  ghc-options:      -O2 -with-rtsopts=-A32m
  build-depends:
    , base             >=4.9.1.0  && <5
    , bytestring       ^>=0.10.8.1
    , deepseq          ^>=1.4
    , random           >=1.1      && <1.3
    , shortbytestring
    , tasty-bench      ^>=0.3

test-suite prop-compiled
  type:             exitcode-stdio-1.0
  main-is:          Properties.hs
  other-modules:
    Properties.ByteString.Short
    Properties.ByteString.Short.Word16

  hs-source-dirs:   tests
  include-dirs:     tests/Properties
  build-depends:
    , base              >=4.9.1.0  && <5
    , bytestring        ^>=0.10.8.1
    , deepseq
    , ghc-prim
    , shortbytestring
    , tasty
    , tasty-quickcheck
    , word16
    , word8
    , QuickCheck

  ghc-options:      -fwarn-unused-binds -threaded -rtsopts
  default-language: Haskell2010

source-repository head
  type:     git
  location: https://github.com/hasufell/shortbytestring.git