-
Notifications
You must be signed in to change notification settings - Fork 103
/
codegen.cabal
80 lines (75 loc) · 1.89 KB
/
codegen.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: codegen
version: 2.0.0.0
synopsis: parse torch yaml spec files, generate code
-- description:
homepage: https://github.com/hasktorch/hasktorch#readme
license: BSD3
author: Austin Huang
maintainer: hasktorch@gmail.com
copyright: 2018 Austin Huang
category: Codegen
build-type: Simple
cabal-version: >=1.10
extra-source-files: test/Declarations.yaml
library
exposed-modules:
ParseDeclarations
ParseFunctionSig
ParseTuples
ParseClass
RenderDeclarations
RenderCommon
RenderTuples
RenderClass
RenderPure
hs-source-dirs: src
default-language: Haskell2010
build-depends:
base >= 4.7 && < 5
, aeson >= 1.4.2.0
, inline-c-cpp >= 0.5.0.2
, megaparsec >= 7.0.4
-- , show-prettyprint >= 0.2.2
, yaml >= 0.11.0.0
, shakespeare
, text
, string-conversions
, directory
, unordered-containers
, containers
extra-libraries: stdc++
ghc-options: -Wall
executable codegen-exe
hs-source-dirs: exe
main-is: Main.hs
default-language: Haskell2010
build-depends:
base
, codegen
, optparse-applicative >= 0.14.3.0
extra-libraries: stdc++
test-suite doctests
-- ToDo: Fix doctests
Buildable: False
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: doctests.hs
ghc-options: -Wall -threaded
build-depends:
base
, doctest
, megaparsec
test-suite spec
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
ghc-options: -Wall -threaded
build-depends: base
, codegen
, hspec
, yaml
, safe-exceptions
, directory
, megaparsec