packages feed

restman-0.7.6.0: restman.cabal

cabal-version:   3.0
name:            restman
version:         0.7.6.0
license:         BSD-2-Clause
license-file:    LICENSE
copyright:       Zac Slade or Boyd Stephen Smith Jr, 2024
maintainer:      krakrjak@gmail.com, boyd.stephen.smith.jr@gmail.com
author:          Zac Slade
homepage:        https://gitlab.com/krakrjak/restman#readme
bug-reports:     https://gitlab.com/krakrjak/restman/issues
synopsis:        Web request TUI program.
description:
    A Brick-based TUI HTTP client powered by wreq. restman lets you compose
    and send HTTP requests from the terminal, with support for custom methods,
    headers, and inline syntax-highlighted response rendering via Skylighting.

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

source-repository head
    type:     git
    location: https://gitlab.com/krakrjak/restman

flag echo-server
    description: Build the standalone restman-echo diagnostic server
    default:     False
    manual:      True

library
    exposed-modules:
        HTTP.Client
        Skylighting.Format.Vty
        Lib
        Types
        UI

    hs-source-dirs:   src
    other-modules:    Paths_restman
    autogen-modules:  Paths_restman
    default-language: GHC2024
    ghc-options:      -Wall
    build-depends:
        ansi-terminal-types >=1.1.3 && <1.2,
        base >=4.7 && <5,
        binary >=0.8.9.3 && <0.9,
        brick >=2.9 && <2.10,
        bytestring >=0.12.2.0 && <0.13,
        case-insensitive >=1.2.1.0 && <1.3,
        containers >=0.7 && <0.8,
        http-client >=0.7.19 && <0.8,
        http-client-tls >=0.3.6.4 && <0.4,
        http-types >=0.12.4 && <0.13,
        lens >=5.3.6 && <5.4,
        microlens-mtl >=0.2.1.0 && <0.3,
        mime-types >=0.1.2.2 && <0.2,
        mtl >=2.3.1 && <2.4,
        skylighting >=0.14.7 && <0.15,
        text >=2.1.3 && <2.2,
        text-zipper >=0.13 && <0.14,
        unliftio >=0.2.25.1 && <0.3,
        vector >=0.13.2.0 && <0.14,
        vty >=6.4 && <6.5,
        wreq >=0.5.4.4 && <0.6

executable restman
    main-is:          Main.hs
    hs-source-dirs:   app
    other-modules:
        TUI
        Paths_restman

    autogen-modules:  Paths_restman
    default-language: GHC2024
    ghc-options:      -threaded -rtsopts -with-rtsopts=-N -Wall
    build-depends:
        base >=4.7 && <5,
        brick >=2.9 && <2.10,
        bytestring >=0.12.2.0 && <0.13,
        case-insensitive >=1.2.1.0 && <1.3,
        http-client >=0.7.19 && <0.8,
        http-types >=0.12.4 && <0.13,
        microlens >=0.4.14.0 && <0.5,
        optparse-applicative >=0.18.1.0 && <0.19,
        restman,
        text >=2.1.3 && <2.2,
        utf8-string >=1.0.2 && <1.1,
        wreq >=0.5.4.4 && <0.6

executable restman-echo
    main-is:          Main.hs
    hs-source-dirs:   echo
    default-language: GHC2024
    ghc-options:      -threaded -rtsopts -with-rtsopts=-N -Wall
    build-depends:
        base >=4.7 && <5,
        aeson >=2.2.4.1 && <2.3,
        aeson-pretty >=0.8.10 && <0.9,
        bytestring >=0.12.2.0 && <0.13,
        case-insensitive >=1.2.1.0 && <1.3,
        containers >=0.7 && <0.8,
        http-types >=0.12.4 && <0.13,
        text >=2.1.3 && <2.2,
        time >=1.12.2 && <1.13,
        wai >=3.2.4 && <3.3,
        warp >=3.4.9 && <3.5

    if !flag(echo-server)
        buildable: False

test-suite restman-test
    type:             exitcode-stdio-1.0
    main-is:          Spec.hs
    hs-source-dirs:   test
    other-modules:
        BinarySpec
        HTTP.ClientIntegrationSpec
        HTTP.ClientSpec
        HTTP.EchoServer
        LibSpec
        TypesSpec
        UISpec
        Props.HTTPClientProps
        Props.LibProps
        Props.SkylightingProps
        Props.TypesProps
        Paths_restman

    autogen-modules:  Paths_restman
    default-language: GHC2024
    ghc-options:      -threaded -rtsopts -with-rtsopts=-N -Wall
    build-depends:
        base >=4.7 && <5,
        aeson >=2.2.4.1 && <2.3,
        brick >=2.9 && <2.10,
        bytestring >=0.12.2.0 && <0.13,
        case-insensitive >=1.2.1.0 && <1.3,
        containers >=0.7 && <0.8,
        directory >=1.3.8.5 && <1.4,
        hedgehog >=1.5 && <1.6,
        http-client >=0.7.19 && <0.8,
        http-types >=0.12.4 && <0.13,
        process >=1.6.26.1 && <1.7,
        restman,
        skylighting >=0.14.7 && <0.15,
        tasty >=1.5.4 && <1.6,
        tasty-ant-xml >=1.1.9 && <1.2,
        tasty-hedgehog >=1.4.0.2 && <1.5,
        tasty-hunit >=0.10.2 && <0.11,
        text >=2.1.3 && <2.2,
        vty >=6.4 && <6.5,
        wai >=3.2.4 && <3.3,
        warp >=3.4.9 && <3.5