name:                fft
version:             0.1.8.7
synopsis:            Bindings to the FFTW library.
description:
                     Bindings to the FFTW library.
                     .
                     Provides high performance discrete fourier transforms in
                     arbitrary dimensions.  Include transforms of complex data,
                     real data, and real to real transforms.
                     .
category:            Math
license:             BSD3
license-file:        LICENSE
author:              Jed Brown
maintainer:          Jed Brown <jed@59A2.org>, Henning Thielemann <fft@henning-thielemann.de>
build-type:          Simple
cabal-version:       1.14
extra-source-files:
  flatpak/fftw-3.3.8.json
  flatpak/fftwf-3.3.8.json

flag splitBase
flag base4

source-repository this
  tag:         0.1.8.7
  type:        darcs
  location:    https://hub.darcs.net/thielema/fft/

source-repository head
  type:        darcs
  location:    https://hub.darcs.net/thielema/fft/

library
  build-depends:
    transformers >=0.3 && <0.6,
    carray >=0.1.5 && <0.2,
    storable-complex >=0.2.1 && <0.3,
    ix-shapable >=0.1 && <0.2
  if flag(splitBase)
    build-depends: base >=3, array >=0.1 && <0.6
  else
    build-depends: base <3
  if flag(base4)
    build-depends: base >=4 && <5, syb >=0.1 && <0.8
  else
    build-depends: base <4

  hs-source-dirs:  src
  exposed-modules: Math.FFT
                   Math.FFT.Base
  other-modules:   Math.FFT.FFI
                   Math.FFT.Mask
  if impl(ghc >= 7.0)
    other-modules: Math.FFT.MaskTF
  pkgconfig-depends:
                   fftw3f >=3.3 && <4,
                   fftw3 >=3.3 && <4
  ghc-options:     -Wall
  default-language: Haskell98

test-suite test-fft
  type: exitcode-stdio-1.0
  build-depends:
    fft,
    carray,
    storable-complex,
    QuickCheck >=2.5 && <3,
    base
  ghc-options:     -Wall
  main-is: tests.hs
  hs-source-dirs: tests
  default-language: Haskell98