packages feed

shellwords-0.1.3.0: shellwords.cabal

cabal-version:   1.18
name:            shellwords
version:         0.1.3.0
license:         MIT
license-file:    LICENSE
copyright:       2018 Patrick Brisbin
maintainer:      pbrisbin@gmail.com
author:          Patrick Brisbin
homepage:        https://github.com/pbrisbin/hs-shellwords#readme
bug-reports:     https://github.com/pbrisbin/hs-shellwords/issues
synopsis:        Parse strings into words, like a shell would
description:     See https://github.com/pbrisbin/hs-shellwords#readme
category:        Text
build-type:      Simple
extra-doc-files:
    README.md
    CHANGELOG.md

source-repository head
    type:     git
    location: https://github.com/pbrisbin/hs-shellwords

library
    exposed-modules:
        ShellWords
        Text.Megaparsec.Compat

    hs-source-dirs:     src
    other-modules:      Paths_shellwords
    default-language:   Haskell2010
    default-extensions: NoImplicitPrelude
    ghc-options:
        -Weverything -Wno-missing-exported-signatures
        -Wno-missing-import-lists -Wno-missing-local-signatures
        -Wno-monomorphism-restriction -Wno-unsafe -Wno-safe

    build-depends:
        base >=4.7 && <5,
        megaparsec >=6.5.0,
        text >=1.2.3.1

    if impl(ghc >=9.2)
        ghc-options: -Wno-missing-kind-signatures

    if impl(ghc >=8.10)
        ghc-options:
            -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module

test-suite hspec
    type:               exitcode-stdio-1.0
    main-is:            Spec.hs
    hs-source-dirs:     test
    other-modules:
        ShellWordsSpec
        Paths_shellwords

    default-language:   Haskell2010
    default-extensions: NoImplicitPrelude
    ghc-options:
        -Weverything -Wno-missing-exported-signatures
        -Wno-missing-import-lists -Wno-missing-local-signatures
        -Wno-monomorphism-restriction -Wno-unsafe -Wno-safe -threaded
        -rtsopts -with-rtsopts=-N

    build-depends:
        base >=4.7 && <5,
        hspec >=2.5.5,
        megaparsec >=6.5.0,
        shellwords -any

    if impl(ghc >=9.2)
        ghc-options: -Wno-missing-kind-signatures

    if impl(ghc >=8.10)
        ghc-options:
            -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module