packages feed

FAI-0.1.0.10: FAI.cabal

-- Initial FAI.cabal generated by cabal init.  For further documentation, 
-- see http://haskell.org/cabal/users-guide/

name:                FAI
version:             0.1.0.10
synopsis:            Haskell Foreign Accelerate Interface
description:         The haskell interface for foreign accelerate framework.
homepage:            https://github.com/Qinka/HaskellFAI
license:             LGPL-3
license-file:        LICENSE
author:              Johann Lee
maintainer:          me@qinka.pro
copyright:           (C) 2018 Johann Lee <me@qinka.pro>
category:            Accelerate
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.21

flag enable-cuda
      default:             True
      description:         Enable the Nvidia's CUDA platform.

library
  exposed-modules:    Foreign.FAI.Types
                    , Foreign.FAI.Platform.Host
  -- other-modules:
  other-extensions:    MultiParamTypeClasses
                     , GADTs
                     , TypeFamilies
                     , QuasiQuotes
                     , TemplateHaskell
  reexported-modules:  Language.C.Inline
  build-depends:       base >= 4 && < 5
                     , inline-c >= 0.6 
  hs-source-dirs:      src
  default-language:    Haskell2010

  if(flag(enable-cuda))
     extra-libraries:     cudart
     exposed-modules:     Foreign.FAI.Platform.CUDA


test-suite spec
  type:                exitcode-stdio-1.0
  main-is:             Spec.hs
  hs-source-dirs:      test
  ghc-options:         -Wall
  build-depends:       base
                     , FAI
                     , inline-c
                     , hspec
  other-modules:       Foreign.FAI.Platform.HostSpec
                     , Foreign.FAI.Platform.CUDASpec
  other-extensions:    CPP
                     , TypeFamilies

  default-language:    Haskell2010
  if(flag(enable-cuda))
     cpp-options: -DENABLE_CUDA