packages feed

mathflow-0.1.0.0: mathflow.cabal

name:                mathflow
version:             0.1.0.0
synopsis:            Dependently typed tensorflow modeler
-- description:
homepage:            https://github.com/junjihashimoto/mathflow#readme
license:             BSD3
license-file:        LICENSE
author:              Junji Hashimoto
maintainer:          junji.hashimoto@gmail.com
copyright:           2017 Junji Hashimoto
category:            Math
build-type:          Simple
extra-source-files:  README.md
                   , util/gen_function_list.py
cabal-version:       >=1.10
stability:           Experimental

source-repository head
  type:     git
  location: https://github.com/junjihashimoto/mathflow
                     
Flag usepython
   Description: Use Python for test
   Default: False

library
  hs-source-dirs:      src
  exposed-modules:     MathFlow
                     , MathFlow.Core
                     , MathFlow.PyString
                     , MathFlow.TF
                     , MathFlow.TF.NN
                     , MathFlow.TF.Train
  build-depends:       base >= 4.7 && < 5
                     , singletons
--                     , tensorflow
                     , process
                     , template-haskell
  default-language:    Haskell2010
  ghc-options:         -Wall

test-suite mathflow-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  other-modules:       MathFlow.CoreSpec
                     , MathFlow.PyStringSpec
                     , MathFlow.PythonSpec
  build-depends:       base
                     , mathflow
                     , singletons
                     , hspec
                     , QuickCheck
                     , hspec-server
                     , shakespeare
                     , text
                     , template-haskell
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  if flag(usepython)
    cpp-options: -DUSE_PYTHON
  default-language:    Haskell2010

test-suite doctests
  type:            exitcode-stdio-1.0
  hs-source-dirs:  test
  main-is:         doctests.hs
  ghc-options:     -Wall -threaded
  build-depends:   base,
                   doctest
  default-language:    Haskell2010