packages feed

storablevector-0.1.2.2: storablevector.cabal

Name:                storablevector
Version:             0.1.2.2
Category:            Data
Synopsis:            Fast, packed, strict storable arrays with a list interface like ByteString
Description:
    Fast, packed, strict storable arrays with a list interface.
    This is much like bytestring but can be used for every Storable type.
License:             BSD3
License-file:        LICENSE
Author:              Spencer Janssen <sjanssen@cse.unl.edu>
Maintainer:          Henning Thielemann <storablevector@henning-thielemann.de>
Homepage:            http://darcs.haskell.org/storablevector
Package-URL:         http://code.haskell.org/~sjanssen/storablevector
Build-Type:          Simple
Tested-With:         GHC==6.4.1, GHC==6.8.2
Cabal-Version:       >=1.2

Flag splitBase
  description: Choose the new smaller, split-up base package.

Flag buildTests
  description: Build test executables
  default:     False

Library
  Build-Depends:   mtl >= 1 && <2
  If flag(splitBase)
    Build-Depends: base >= 3
  Else
    Build-Depends: base >= 1.0 && < 2

  Extensions:          CPP, ForeignFunctionInterface
  GHC-Options:         -Wall -funbox-strict-fields
  Hs-Source-Dirs:      ., slow-foreign-ptr

  Exposed-Modules:
    Data.StorableVector
    Data.StorableVector.Base

  Other-Modules:
    Data.StorableVector.Memory


Executable test
  GHC-Options:         -Wall -funbox-strict-fields
  Hs-Source-Dirs:      ., slow-foreign-ptr, tests
  Main-Is:             tests.hs
  Other-Modules:       QuickCheckUtils, Instances
  Build-Depends:       bytestring >= 0.9 && < 0.10, QuickCheck >= 1 && < 2
  Extensions:          CPP, ForeignFunctionInterface
  If flag(splitBase)
    Hs-Source-Dirs:    tests-2
    Build-Depends:     base >= 3, random >= 1.0 && < 1.1
  Else
    Hs-Source-Dirs:    tests-1
    Build-Depends:     base >= 1.0 && < 2
  if !flag(buildTests)
    buildable:         False

Executable speedtest
  GHC-Options:         -Wall -funbox-strict-fields
  Main-Is:             SpeedTestLazy.hs
  Extensions:          CPP, ForeignFunctionInterface
  Hs-Source-Dirs:      ., slow-foreign-ptr, speedtest
  If flag(splitBase)
    Build-Depends:     base >= 3
  Else
    Build-Depends:     base >= 1.0 && < 2
  if !flag(buildTests)
    buildable:         False