packages feed

hspec-megaparsec-2.0.1: hspec-megaparsec.cabal

name:                 hspec-megaparsec
version:              2.0.1
cabal-version:        1.18
tested-with:          GHC==8.2.2, GHC==8.4.4, GHC==8.6.5
license:              BSD3
license-file:         LICENSE.md
author:               Mark Karpov <markkarpov92@gmail.com>
maintainer:           Mark Karpov <markkarpov92@gmail.com>
homepage:             https://github.com/mrkkrp/hspec-megaparsec
bug-reports:          https://github.com/mrkkrp/hspec-megaparsec/issues
category:             Testing, Parsing
synopsis:             Utility functions for testing Megaparsec parsers with Hspec
build-type:           Simple
description:          Utility functions for testing Megaparsec parsers with Hspec.
extra-doc-files:      CHANGELOG.md
                    , README.md

flag dev
  description:        Turn on development settings.
  manual:             True
  default:            False

library
  build-depends:      base               >= 4.10 && < 5.0
                    , containers         >= 0.5 && < 0.7
                    , hspec-expectations >= 0.8 && < 0.9
                    , megaparsec         >= 7.0 && < 8.0
  exposed-modules:    Test.Hspec.Megaparsec
  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -Wall
  if flag(dev)
    ghc-options:      -Wcompat
                      -Wincomplete-record-updates
                      -Wincomplete-uni-patterns
                      -Wnoncanonical-monad-instances
                      -Wnoncanonical-monadfail-instances
  default-language:   Haskell2010

test-suite tests
  main-is:            Main.hs
  hs-source-dirs:     tests
  type:               exitcode-stdio-1.0
  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -Wall
  build-depends:      base               >= 4.10 && < 5.0
                    , hspec              >= 2.0 && < 3.0
                    , hspec-expectations >= 0.8 && < 0.9
                    , hspec-megaparsec
                    , megaparsec         >= 7.0 && < 8.0
  default-language:   Haskell2010

source-repository head
  type:               git
  location:           https://github.com/mrkkrp/hspec-megaparsec.git