packages feed

submark-0.1.0: submark.cabal

-- This file has been generated from package.yaml by hpack version 0.17.1.
--
-- see: https://github.com/sol/hpack

name:           submark
version:        0.1.0
synopsis:       Extract a part from CommonMark/Markdown docs
category:       Text
stability:      alpha
homepage:       https://github.com/dahlia/submark#readme
bug-reports:    https://github.com/dahlia/submark/issues
author:         Hong Minhee
maintainer:     hong.minhee@gmail.com
copyright:      (c) 2017 Hong Minhee
license:        GPL-3
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10

extra-source-files:
    CHANGELOG.md
    README.md

source-repository head
  type: git
  location: https://github.com/dahlia/submark

flag static
  description: Static link
  manual: True
  default: False

library
  hs-source-dirs:
      src
  ghc-options: -Wall -fwarn-incomplete-uni-patterns
  build-depends:
      base >= 4.7 && < 5
    , cmark >= 0.5.6 && < 0.6.0
    , text == 1.*
  exposed-modules:
      Text.CommonMark.Sub
  default-language: Haskell2010

executable submark
  main-is: Main.hs
  hs-source-dirs:
      app
  ghc-options: -Wall -fwarn-incomplete-uni-patterns
  build-depends:
      base >= 4.7 && < 5
    , cmark >= 0.5.6 && < 0.6.0
    , text == 1.*
    , submark
    , optparse-applicative >= 0.13.2.0 && < 0.15.0.0
  if flag(static)
    ghc-options: -Wall -fwarn-incomplete-uni-patterns -static -optl-static -optl-pthread -optc-Os -fPIC
  else
    ghc-options: -Wall -fwarn-incomplete-uni-patterns
  default-language: Haskell2010

test-suite hlint
  type: exitcode-stdio-1.0
  main-is: HLint.hs
  hs-source-dirs:
      test
  ghc-options: -Wall -fwarn-incomplete-uni-patterns
  build-depends:
      base >= 4.7 && < 5
    , cmark >= 0.5.6 && < 0.6.0
    , text == 1.*
    , hlint >= 2.0.9 && < 3
  other-modules:
      Spec
      Text.CommonMark.QQ
      Text.CommonMark.SubSpec
  default-language: Haskell2010

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  ghc-options: -Wall -fwarn-incomplete-uni-patterns
  build-depends:
      base >= 4.7 && < 5
    , cmark >= 0.5.6 && < 0.6.0
    , text == 1.*
    , hspec >= 2.4.4 && < 3.0.0
    , submark
    , template-haskell >= 2.5
  other-modules:
      HLint
      Text.CommonMark.QQ
      Text.CommonMark.SubSpec
  default-language: Haskell2010