packages feed

menoh-0.2.0: menoh.cabal

name: menoh
version: 0.2.0
license: MIT
license-file: LICENSE
author: Masahiro Sakai <sakai@preferred.jp>
maintainer: Masahiro Sakai <sakai@preferred.jp>
copyright: Copyright 2018 Preferred Networks, Inc.
category: Machine Learning, Deep Learning
synopsis: Haskell binding for Menoh DNN inference library
description: Menoh is a MKL-DNN based DNN inference library for ONNX models. See https://github.com/pfnet-research/menoh/ for details.
build-type: Simple
cabal-version: >=1.10
extra-source-files:
   README.md
   retrieve_data.hs
   retrieve_data.sh
data-files:
   data/*.png
   data/mnist.onnx
tested-with:
   GHC ==7.8.4
   GHC ==7.10.3
   GHC ==8.0.2
   GHC ==8.2.2
   GHC ==8.4.3

source-repository head
  type: git
  location: https://github.com/pfnet-research/menoh-haskell/

flag buildexamples
  description: build example programs
  default: True
  manual: True

library
  hs-source-dirs: src
  exposed-modules:
    Menoh
    Menoh.Base
  other-modules:
    Paths_menoh
  other-extensions:
      CPP
    , DeriveDataTypeable
    , FlexibleContexts
    , ForeignFunctionInterface
    , ScopedTypeVariables
  build-depends:
      base >=4.7 && <5
    , aeson >=0.8 && <1.5
    , bytestring >=0.10 && <0.11
    , containers >=0.5 && <0.7
    , monad-control >=1.0 && <1.1
    , transformers >=0.3 && <0.6
    , vector >=0.10 && <0.13
  pkgconfig-depends:
      menoh >=1.0.0 && <2.0.0
  default-language: Haskell2010

executable vgg16_example
  hs-source-dirs: app
  main-is: vgg16_example.hs
  build-depends:
      base
      -- convertRGB8 requires JuicyPixels >=3.2.7
    , JuicyPixels >=3.2.7 && <3.4
    , optparse-applicative >=0.11 && <0.15
    , menoh
    , vector
  default-language: Haskell2010
  If !flag(buildexamples)
    buildable: False

executable mnist_example
  hs-source-dirs: app
  other-modules: Paths_menoh
  main-is: mnist_example.hs
  build-depends:
      base
    , filepath >=1.3 && <1.5
    , JuicyPixels
    , optparse-applicative
    , menoh
    , vector
  default-language: Haskell2010
  If !flag(buildexamples)
    buildable: False

Test-suite Test
  type:              exitcode-stdio-1.0
  hs-source-dirs:    test
  main-is:           test.hs
  other-modules:
    Paths_menoh
  build-depends:
      base >=4 && <5
    , async >=2.0.2
    , filepath >=1.3 && <1.5
    , JuicyPixels
    , menoh
    , vector
    , tasty >=0.10.1
    , tasty-hunit >=0.9 && <0.11
    , tasty-th
  default-language: Haskell2010
  ghc-options: -threaded