packages feed

jev-0.1.0.0: jev.cabal

cabal-version:      3.4
name:               jev
version:            0.1.0.0
synopsis: Typed decisions with Jev through TypeSafe and OpenRouter
description: Typed, composable Jev questions with reusable HTTPS clients.
homepage:           https://github.com/realbogart/jev
bug-reports:        https://github.com/realbogart/jev/issues
license:            MIT
license-file:       LICENSE
tested-with:        GHC == 9.10.1
author:             Johan Yngman
maintainer:         johan.yngman@gmail.com
-- copyright:
category:           Web
build-type:         Simple
extra-doc-files: README.md, CHANGELOG.md
extra-source-files: scripts/format.sh, scripts/verify.sh, scripts/check-sdist.sh

source-repository head
    type: git
    location: https://github.com/realbogart/jev.git

common dependencies
    build-depends: base >= 4.20 && < 4.21,
                   text >= 2.1 && < 2.2

common warnings
    ghc-options:      -Weverything -Wno-missing-signatures -Wno-missing-exported-signatures
                      -Wno-implicit-prelude -Wno-missing-export-lists -Wno-missing-import-lists
                      -Wno-monomorphism-restriction -Wno-type-defaults -Wno-missing-safe-haskell-mode
                      -Wno-unsafe -Wno-missing-local-signatures -Wno-missing-kind-signatures
                      -Wno-all-missed-specialisations -Wno-missed-specialisations -Wno-ambiguous-fields
                      -Wno-missing-deriving-strategies -Wno-prepositive-qualified-module
                      -Wno-unused-top-binds

common extensions
    default-extensions: RoleAnnotations,
                        OverloadedStrings,
                        DuplicateRecordFields,
                        NoFieldSelectors,
                        StrictData,
                        OverloadedRecordDot,
                        AllowAmbiguousTypes,
                        DataKinds,
                        TypeFamilies,
                        RecordWildCards,
                        DeriveDataTypeable

library
    import: warnings, extensions, dependencies
    hs-source-dirs: lib
    exposed-modules: Jev, Jev.Types, Jev.Question, Jev.Client
    other-modules: Jev.Internal.Protocol
    build-depends: bytestring >= 0.12 && < 0.13,
                   containers >= 0.7 && < 0.8,
                   aeson >= 2.2 && < 2.3,
                   http-client >= 0.7.18 && < 0.8,
                   http-client-tls >= 0.3.6 && < 0.4,
                   http-types >= 0.12.4 && < 0.13
    default-language: GHC2021

executable jev-choice
    import: warnings, extensions, dependencies
    main-is: Choice.hs
    hs-source-dirs: examples
    build-depends: jev
    default-language: GHC2021
    ghc-options: -threaded

executable jev-triage
    import: warnings, extensions, dependencies
    main-is: Triage.hs
    hs-source-dirs: examples
    build-depends: jev
    default-language: GHC2021
    ghc-options: -threaded

test-suite jev-test
    import: warnings, extensions, dependencies
    type: exitcode-stdio-1.0
    main-is: Main.hs
    other-modules: JevSpec
    hs-source-dirs: test
    build-depends: bytestring >= 0.12 && < 0.13,
                   containers >= 0.7 && < 0.8,
                   aeson >= 2.2 && < 2.3,
                   jev,
                   hspec >= 2.11 && < 2.12,
                   http-client >= 0.7.18 && < 0.8,
                   http-types >= 0.12.4 && < 0.13,
                   wai >= 3.2 && < 3.3,
                   warp >= 3.4 && < 3.5
    default-language: GHC2021
    ghc-options: -threaded