packages feed

egison-pattern-src-th-mode-0.1.1.0: egison-pattern-src-th-mode.cabal

cabal-version:      2.0
name:               egison-pattern-src-th-mode
version:            0.1.1.0
synopsis:
  Parser and pretty printer for Egison pattern expressions to use with TH

description:
  @egison-pattern-src-th-mode@ provides a parser and pretty printer for @egison-pattern-src@ to use it with Template Haskell.
  See <https://github.com/egison/egison-pattern-src> for more information.

bug-reports:        https://github.com/egison/egison-pattern-src/issues
homepage:           https://github.com/egison/egison-pattern-src#readme
license:            BSD3
license-file:       LICENSE
author:             coord_e
maintainer:         coord_e <me@coord-e.com>, Satoshi Egi <egi@egison.org>
copyright:          Copyright 2020 coord_e
category:           Language, Parser, Pretty Printer, Template Haskell
build-type:         Simple
extra-source-files:
  README.md
  CHANGELOG.md

-- see .github/workflows
tested-with:        GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.1

source-repository head
  type:     git
  location: https://github.com/egison/egison-pattern-src

library
  build-depends:
      base                             >=4.7    && <5
    , egison-pattern-src               ^>=0.1.0
    , egison-pattern-src-haskell-mode  ^>=0.1.1
    , haskell-src-exts                 >=1.11.1 && <1.24
    , haskell-src-meta                 >=0.0.0  && <0.9
    , mtl                              ^>=2.2.1
    , pretty                           >=1.0.0  && <1.2
    , template-haskell                 >=2.2.0  && <2.16
    , text                             >=0.1.0  && <1.3

  hs-source-dirs:     src
  exposed-modules:
    Language.Egison.Parser.Pattern.Mode.Haskell.TH
    Language.Egison.Pretty.Pattern.Mode.Haskell.TH

  if impl(ghc >=8)
    ghc-options: -Wredundant-constraints

  ghc-options:
    -Wall -Wcompat -Widentities -Wincomplete-record-updates
    -Wincomplete-uni-patterns

  default-language:   Haskell2010
  default-extensions:
    FlexibleContexts
    NamedFieldPuns

test-suite test
  type:               exitcode-stdio-1.0
  hs-source-dirs:     test
  main-is:            test.hs
  ghc-options:        -Wall -threaded -rtsopts -with-rtsopts=-N
  default-language:   Haskell2010
  build-depends:
      base
    , egison-pattern-src
    , egison-pattern-src-th-mode
    , haskell-src-exts
    , mtl
    , tasty
    , tasty-hunit
    , template-haskell            >=2.6.0 && <2.15
    , text

  default-extensions: FlexibleContexts

  -- cabal-fmt: expand test
  other-modules:
    Language.Egison.Parser.Pattern.Mode.Haskell.THSpec
    Language.Egison.Pretty.Pattern.Mode.Haskell.THSpec
    TestImport

  build-tool-depends: tasty-discover:tasty-discover -any