packages feed

blas-hs-0.1.0.2: blas-hs.cabal

name:                blas-hs
version:             0.1.0.2
synopsis:            Low-level Haskell bindings to Blas.
description:         This package provides a complete low-level binding to
                     Blas via the foreign function interface, allowing Haskell
                     programs to take advantage of optimized routines for
                     vector and matrix operations in Haskell.  See the source
                     repository for more info.
homepage:            https://github.com/Rufflewind/blas-hs
bug-reports:         https://github.com/Rufflewind/blas-hs/issues
license:             MIT
license-file:        LICENSE
author:              Phil Ruffwind
maintainer:          rf@rufflewind.com
category:            Math
build-type:          Simple
cabal-version:       >=1.16
                     -- tested: 1.16 [hard] to 1.21 [soft]
                     -- (limited by the test suite requirement on Cabal)

source-repository head
  type:                git
  location:            https://github.com/Rufflewind/blas-hs


library
  exposed-modules:     Blas.Primitive.Types
                       Blas.Primitive.Safe
                       Blas.Primitive.Unsafe
                       Blas.Generic.Safe
                       Blas.Generic.Unsafe
  other-modules:       BlasCTypes
                       FFI
  other-extensions:    FlexibleInstances
                     , ForeignFunctionInterface
                     , TypeFamilies
  build-depends:       base >=4.5 && <5
                       -- tested: 4.5 [hard] to 4.8 [soft]
                       -- (4.4 does not export constructors for CFloat et al)
                     , storable-complex >=0.2 && <1
                       -- tested: 0.2 [hard] to 0.3 [soft]
                       -- (0.1 is buggy)
  ghc-options:         -Wall
  hs-source-dirs:      src
  default-language:    Haskell98

  -- Use the following flags if you want `blas-hs` to be directly linked
  -- against an existing Blas implementation (e.g. ACML, OpenBLAS, MKL).  This
  -- will relieve the `blas-hs` user of the responsibility of specifying the
  -- flags for linking to the Blas implementation.
  --
  -- The flags have no effect on the static version of `blas-hs`.
  --
  -- Note: If these flags are specified and a shared library is built, omit
  --       the corresponding flags in the test-suite (see below).
  extra-libraries:
  ld-options:

test-suite test
  type:                detailed-0.9
  test-module:         MainTest
  other-extensions:    Rank2Types
  build-depends:       base
                     , blas-hs

                     , Cabal >=1.16
                       -- tested: 1.16 [hard] to 1.21 [soft]
                       -- (0.15 does not have Progress)

                     , vector >=0.8
                       -- tested: 0.8 [hard] to 0.11 [soft]
                       -- (0.7 has a different definition of MVector)

  hs-source-dirs:      tests
  default-language:    Haskell98

  -- Note: Omit these flags if they are specified by the library and a shared
  --       library is built (see above).
  extra-libraries:     blas
  ld-options: