packages feed

vector-bytestring-0.0.0.0: vector-bytestring.cabal

name:          vector-bytestring
version:       0.0.0.0
cabal-version: >=1.9.2
build-type:    Simple
license:       BSD3
license-file:  LICENSE
copyright:     2011 Bas van Dijk <v.dijk.bas@gmail.com>
author:        Bas van Dijk <v.dijk.bas@gmail.com>
maintainer:    Bas van Dijk <v.dijk.bas@gmail.com>
homepage:      https://github.com/basvandijk/vector-bytestring/
bug-reports:   https://github.com/basvandijk/vector-bytestring/issues
stability:     experimental
category:      Data
synopsis:      ByteStrings as type synonyms of Storable Vectors of Word8s
description:
  ByteStrings as type synonyms of Storable Vectors of Word8s

extra-source-files: README.markdown

                    tests/*.hs
                    tests/data
                    tests/macros.m4
                    tests/Makefile
                    tests/spellcheck-input.txt
                    tests/Usr.Dict.Words

source-repository head
  Type:     git
  Location: git://github.com/basvandijk/vector-bytestring.git

flag benchmark
  Description: Build the benchmark executable
  Default:     False

Library
  build-depends: base       >= 4     && < 4.5
               , primitive  >= 0.3.1 && < 0.5
               , ghc-prim   >= 0.2   && < 0.3
               , vector     >= 0.9   && < 0.10
               , deepseq    >= 1.1   && < 1.3
               , bytestring >= 0.9   && < 0.10

  exposed-modules: Data.Vector.Storable.ByteString
                   Data.Vector.Storable.ByteString.Internal
                   Data.Vector.Storable.ByteString.Unsafe
                   Data.Vector.Storable.ByteString.Char8
                   Data.Vector.Storable.ByteString.Legacy
                   Data.Vector.Storable.ByteString.Lazy
                   Data.Vector.Storable.ByteString.Lazy.Internal
                   Data.Vector.Storable.ByteString.Lazy.Char8
                   Data.Vector.Storable.ByteString.Lazy.Legacy

  other-modules: Utils

  ghc-options: -Wall -O2 -funbox-strict-fields

  c-sources:        cbits/bytestring.c
  include-dirs:     include
  includes:         bytestring.h
  install-includes: bytestring.h

test-suite prop-compiled
  type:          exitcode-stdio-1.0
  main-is:       Properties.hs
  hs-source-dirs: . tests

  build-depends: base       >= 4     && < 4.5
               , primitive  >= 0.3.1 && < 0.5
               , ghc-prim   >= 0.2   && < 0.3
               , vector     >= 0.9   && < 0.10
               , deepseq    >= 1.1   && < 1.3
               , random     >= 1.0   && < 1.1
               , directory  >= 1.0   && < 1.2
               , QuickCheck >= 2.3   && < 3

  ghc-options:   -fno-enable-rewrite-rules
  c-sources:     cbits/bytestring.c
  include-dirs:  include

executable bench
  if !flag(benchmark)
    buildable: False

  main-is:       bench.hs

  build-depends: base       >= 4     && < 4.5
               , primitive  >= 0.3.1 && < 0.5
               , ghc-prim   >= 0.2   && < 0.3
               , vector     >= 0.9   && < 0.10
               , deepseq    >= 1.1   && < 1.3
               , bytestring >= 0.9   && < 0.10
               , criterion  >= 0.5   && < 0.6

  ghc-options:   -Wall -O2 -funbox-strict-fields
  c-sources:     cbits/bytestring.c
  include-dirs:  include