packages feed

json-feed-1.0.11: json-feed.cabal

cabal-version: 2.2

name: json-feed
version: 1.0.11

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-source-files:
  README.markdown
  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.markdown
license: MIT
maintainer: Taylor Fausak

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

common basics
  default-language: Haskell2010
  ghc-options:
    -Weverything
    -Wno-all-missed-specialisations
    -Wno-implicit-prelude
    -Wno-missing-exported-signatures
    -Wno-missing-import-lists
    -Wno-safe
    -Wno-unsafe

  if impl(ghc >= 8.8)
    ghc-options:
      -Wno-missing-deriving-strategies

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

library
  import: basics

  build-depends:
      aeson >= 0.11.2 && < 0.12 || >= 1.0.2 && < 1.6
    , base >= 4.9.0 && < 4.15
    , bytestring >= 0.10.8 && < 0.11
    , mime-types >= 0.1.0 && < 0.2
    , network-uri >= 2.6.1 && < 2.8
    , tagsoup >= 0.14 && < 0.15
    , text >= 1.2.2 && < 1.3
    , time >= 1.6.0 && < 1.10
  exposed-modules: JsonFeed
  hs-source-dirs: src/lib

test-suite test
  import: basics

  build-depends:
    base -any
    , bytestring -any
    , filepath >= 1.4.1 && < 1.5
    , hspec >= 2.2.3 && < 2.8
    , json-feed -any
  hs-source-dirs: src/test
  main-is: Main.hs
  type: exitcode-stdio-1.0