mirror of
https://github.com/google/ghc-source-gen.git
synced 2024-09-11 22:07:09 +03:00
* Add missing signature for overloaded `withEpAnnNotUsed` * Fixed issued caused by #112 * Stack support for GHC 9.8 * Add stack-9.8.yaml * Bump Tasty to `< 1.6`
123 lines
3.0 KiB
YAML
123 lines
3.0 KiB
YAML
# 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.4.1
|
|
github: "google/ghc-source-gen"
|
|
license: BSD3
|
|
author: "Judah Jacobson"
|
|
maintainer: "judahjacobson@google.com"
|
|
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.9
|
|
|
|
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
|