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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Adaptation of the wreq library for the effectful ecosystem.


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.1.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:20:42Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


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)