packages feed

hw-string-parse-0.0.0.5: hw-string-parse.cabal

cabal-version: 2.2

name:                   hw-string-parse
version:                0.0.0.5
synopsis:               String parser
description:            Please see README.md
category:               Data, Bit
stability:              Experimental
homepage:               http://github.com/haskell-works/hw-string-parse#readme
bug-reports:            https://github.com/haskell-works/hw-string-parse/issues
author:                 John Ky
maintainer:             newhoggy@gmail.com
copyright:              2016-2021 John Ky
license:                BSD-3-Clause
license-file:           LICENSE
tested-with:            GHC == 9.2.2, GHC == 9.0.2, GHC == 8.10.7, GHC == 8.8.4, GHC == 8.6.5
build-type:             Simple
extra-source-files:     README.md

source-repository head
  type: git
  location: https://github.com/haskell-works/hw-string-parse

common base                       { build-depends: base                       >= 4.11       && < 5      }

common doctest                    { build-depends: doctest                    >= 0.16.2     && < 0.21   }
common doctest-discover           { build-depends: doctest-discover           >= 0.2        && < 0.3    }
common QuickCheck                 { build-depends: QuickCheck                                           }
common bytestring                 { build-depends: bytestring                                           }
common hspec                      { build-depends: hspec                                                }
common vector                     { build-depends: vector                                               }

common config
  default-language:     Haskell2010

common hw-string-parse
  build-depends:        hw-string-parse

library
  import:               base, config
  exposed-modules:      HaskellWorks.Data.String.Parse
  other-modules:        Paths_hw_string_parse
  autogen-modules:      Paths_hw_string_parse
  hs-source-dirs:       src
  ghc-options:          -Wall -O2 -msse4.2

test-suite hw-string-parse-test
  import:               base, config
                      , QuickCheck
                      , bytestring
                      , hspec
                      , vector
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  hs-source-dirs:       test
  ghc-options:          -Wall -threaded -rtsopts -with-rtsopts=-N
  build-tool-depends:   hspec-discover:hspec-discover
  build-depends:        hw-string-parse

test-suite doctest
  import:               base, config
                      , doctest
                      , doctest-discover
                      , hw-string-parse
  type:                 exitcode-stdio-1.0
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  main-is:              DoctestDriver.hs
  HS-Source-Dirs:       doctest
  build-tool-depends:   doctest-discover:doctest-discover