-
Notifications
You must be signed in to change notification settings - Fork 29
/
package.yaml
122 lines (109 loc) · 3.02 KB
/
package.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Copyright 2019 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
name: ghc-source-gen
version: 0.4.5.0
github: "google/ghc-source-gen"
license: BSD3
author: "Judah Jacobson"
maintainer: "[email protected]"
copyright: "Google LLC"
extra-source-files:
- README.md
- ChangeLog.md
synopsis: Constructs Haskell syntax trees for the GHC API.
category: Development
description: |
@ghc-source-gen@ is a library for generating Haskell source code.
It uses the <https://hackage.haskell.org/package/ghc ghc> library
to support recent language extensions, and provides a simple, consistent
interface across several major versions of GHC.
.
To get started, take a look at the "GHC.SourceGen" module.
.
For more information, please see the <https://github.com/google/ghc-source-gen README>.
dependencies:
- base >= 4.7 && < 5
- ghc >= 8.4 && < 9.11
default-extensions:
- DataKinds
- FlexibleInstances
- TypeSynonymInstances
library:
when:
# GHC-8.10 introduced hierarchical modules.
# For compatibility, define wrapper modules for older GHC versions.
- condition: impl(ghc<8.10)
source-dirs: compat
other-modules:
- GHC.Hs
- GHC.Hs.Binds
- GHC.Hs.Decls
- GHC.Hs.Expr
- GHC.Hs.Extension
- GHC.Hs.ImpExp
- GHC.Hs.Lit
- GHC.Hs.Pat
- GHC.Hs.Utils
verbatim: |
if impl(ghc<9.0)
other-modules:
GHC.Hs.Type
GHC.Driver.Monad
GHC.Driver.Session
GHC.Utils.Outputable
GHC.Types.Basic
GHC.Plugins
GHC.Tc.Types.Evidence
if impl(ghc>=8.10) && impl(ghc<9.0)
hs-source-dirs:
compat-8.10
source-dirs: src
other-modules:
- GHC.SourceGen.Binds.Internal
- GHC.SourceGen.Expr.Internal
- GHC.SourceGen.Lit.Internal
- GHC.SourceGen.Name.Internal
- GHC.SourceGen.Syntax.Internal
- GHC.SourceGen.Type.Internal
tests:
pprint_examples:
main: pprint_examples.hs
source-dirs: tests
dependencies:
- ghc-source-gen
- ghc-paths == 0.1.*
- tasty >= 1.0 && < 1.6
- tasty-hunit == 0.10.*
when:
- condition: impl(ghc<9.0)
source-dirs: compat
other-modules:
- GHC.Utils.Outputable
# TODO: Fill out this test, and use it to replace pprint_examples.
pprint_test:
main: pprint_test.hs
source-dirs: tests
dependencies:
- ghc-source-gen
- ghc-paths == 0.1.*
- tasty >= 1.0 && < 1.6
- tasty-hunit == 0.10.*
when:
- condition: impl(ghc<9.0)
source-dirs: compat
other-modules:
- GHC.Driver.Monad
- GHC.Driver.Session
- GHC.Utils.Outputable
name_test:
main: name_test.hs
source-dirs: tests
dependencies:
- ghc-source-gen
- QuickCheck >= 2.10 && < 2.15
- tasty >= 1.0 && < 1.6
- tasty-hunit == 0.10.*
- tasty-quickcheck >= 0.9 && < 0.11