packages feed

egison-pattern-src-haskell-mode-0.1.0.0: egison-pattern-src-haskell-mode.cabal

cabal-version:      2.0
name:               egison-pattern-src-haskell-mode
version:            0.1.0.0
synopsis:
  Parser and pretty printer for Egison pattern expressions in Haskell source code

description:
  @egison-pattern-src-haskell-mode@ provides a parser and pretty printer for @egison-pattern-src@ to use it in Haskell source code.
  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
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
    , haskell-src-exts    >=1.11.1 && <1.24
    , mtl                 ^>=2.2.1
    , text                >=0.1.0  && <1.3

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

  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-haskell-mode
    , haskell-src-exts
    , mtl
    , tasty
    , tasty-hunit
    , text

  default-extensions: FlexibleContexts

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

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