| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 18:33:49 GMT
X-Served-By: cache-dfw-kdfw8210119-DFW, cache-bom-vanm7210027-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768674830.586618,VS0,VE376
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
toxiproxy-haskell: Client library for Toxiproxy: a TCP failure testing proxy.
[Skip to Readme]
toxiproxy-haskell: Client library for Toxiproxy: a TCP failure testing proxy.
Please see the README on Github at https://github.com/jpittis/toxiproxy-haskell#readme
[Skip to Readme]
Downloads
- toxiproxy-haskell-0.2.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.2.1.0 |
|---|---|
| Dependencies | aeson, base (>=4.7 && <5), containers, http-client, servant, servant-client, text [details] |
| License | BSD-3-Clause |
| Copyright | 2018 Jake Pittis |
| Author | Jake Pittis |
| Maintainer | jakepittis@gmail.com |
| Uploaded | by jpittis at 2018-03-10T01:36:25Z |
| Category | web |
| Home page | https://github.com/jpittis/toxiproxy-haskell#readme |
| Bug tracker | https://github.com/jpittis/toxiproxy-haskell/issues |
| Source repo | head: git clone https://github.com/jpittis/toxiproxy-haskell |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 1649 total (8 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs uploaded by user Build status unknown [no reports yet] |
Readme for toxiproxy-haskell-0.2.1.0
[back to package description]A complete Haskell client for Toxiproxy.
(Requires Toxiproxy version 2.1.3 and above.)
Example
import Toxiproxy
main :: IO ()
main = do
let proxy = Proxy
{ proxyName = "myProxy"
, proxyListen = myProxyHost
, proxyUpstream = myUpstreamHost
, proxyEnabled = True
, proxyToxics = []
}
let latency = Toxic
{ toxicName = "latency"
, toxicType = "latency"
, toxicStream = "upstream"
, toxicToxicity = 1
, toxicAttributes = Map.fromList [("latency", 1000), ("jitter", 0)]
}
withProxy proxy $ \proxy -> do
withToxic proxy latency $ do
getRequestToMyProxyHost -- This will take > 1 second