wreq-effectful: Adaptation of the wreq library for the effectful ecosystem.

[ library, mit, web ] [ Propose Tags ] [ Report a vulnerability ]

Adaptation of the wreq library for the effectful ecosystem.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.1.1
Change log CHANGELOG.md
Dependencies base (>=4.18.1.0 && <5), bytestring (>=0.11.5 && <0.13), effectful-core (>=2.3.1 && <3.0), http-client (>=0.7.17 && <0.9), wreq (>=0.5.4 && <0.7) [details]
License MIT
Author Nor Führ
Maintainer nor@acorneroftheweb.com
Category Web
Bug tracker https://github.com/The1Penguin/wreq-effectful/issues
Source repo head: git clone https://github.com/The1Penguin/wreq-effectful
Uploaded by Pingu at 2025-08-31T15:21:19Z
Distributions
Downloads 80 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-08-31 [all 1 reports]

Readme for wreq-effectful-0.1.1.1

[back to package description]

wreq-effectful

Adaptation of the wreq library for the effectful ecosystem.

Example

A sample usage for logging to both standard output and Elasticsearch:

{-# LANGUAGE OverloadedStrings #-}
module Main where

import Effectful
import Effectful.Wreq
import Control.Lens

main :: IO ()
main = runEff . runWreq $
    getWith (defaults & header "Accept" .~ ["application/json"]) "https://hackage.haskell.org/users/" >>=
    asValue >>=
    liftIO . print . (^. responseBody)