packages feed

json-feed-2.0.0.14: json-feed.cabal

cabal-version: 2.2
name: json-feed
version: 2.0.0.14
synopsis: JSON Feed
description:
  This is an implementation of the JSON Feed spec in Haskell. The spec is
  available at <https://jsonfeed.org>. JSON Feed is similar to the Atom and RSS
  feed formats, but it is serialized as JSON rather than XML.

build-type: Simple
category: Web
extra-doc-files:
  CHANGELOG.md
  README.md

extra-source-files:
  feeds/allenpike.com.json
  feeds/daringfireball.net.json
  feeds/flyingmeat.com.json
  feeds/hypercritical.co.json
  feeds/inessential.com.json
  feeds/jsonfeed.org.json
  feeds/manton.org.json
  feeds/maybepizza.com.json
  feeds/shapeof.com.json
  feeds/therecord.co.json
  feeds/timetable.manton.org.json

license-file: LICENSE.txt
license: MIT
maintainer: Taylor Fausak

source-repository head
  location: https://github.com/tfausak/json-feed
  type: git

flag pedantic
  default: False
  manual: True

common library
  build-depends: base ^>=4.19.0.0 || ^>=4.20.0.0 || ^>=4.21.0.0
  default-language: Haskell2010
  ghc-options:
    -Weverything
    -Wno-all-missed-specialisations
    -Wno-implicit-prelude
    -Wno-missed-specialisations
    -Wno-missing-deriving-strategies
    -Wno-missing-exported-signatures
    -Wno-missing-kind-signatures
    -Wno-missing-safe-haskell-mode
    -Wno-prepositive-qualified-module
    -Wno-unsafe

  if flag(pedantic)
    ghc-options: -Werror

common executable
  import: library
  build-depends: json-feed
  ghc-options:
    -rtsopts
    -threaded

library
  import: library
  build-depends:
    aeson ^>=2.1.2.1 || ^>=2.2.2.0,
    bytestring ^>=0.11.4.0 || ^>=0.12.0.2,
    mime-types ^>=0.1.2.0,
    network-uri ^>=2.6.4.2 || ^>=2.7.0.0,
    tagsoup ^>=0.14.8,
    text ^>=2.0.2 || ^>=2.1,
    time ^>=1.12.2 || ^>=1.14,

  -- cabal-gild: discover source/library
  exposed-modules: JsonFeed
  hs-source-dirs: source/library

test-suite json-feed-test-suite
  import: executable
  build-depends:
    bytestring,
    filepath ^>=1.4.100.1 || ^>=1.5.2.0,
    hspec ^>=2.11.8,

  hs-source-dirs: source/test-suite
  main-is: Main.hs
  type: exitcode-stdio-1.0