ghc-source-gen/package.yaml
Judah Jacobson 18d1ca0338
Fix edge cases parsing qualified operators. (#32)
Also add some tests, and expose more functionality to work with names.
2019-08-18 15:03:45 -07:00

79 lines
1.9 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.2
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.2 && < 8.9
default-extensions:
- DataKinds
- FlexibleInstances
- TypeSynonymInstances
library:
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
- tasty-hunit
# 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
- tasty-hunit
name_test:
main: name_test.hs
source-dirs: tests
dependencies:
- ghc-source-gen
- QuickCheck
- tasty
- tasty-hunit
- tasty-quickcheck