| 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 05:05:34 GMT
X-Served-By: cache-dfw-kdal2120118-DFW, cache-bom-vanm7210027-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768626334.097364,VS0,VE789
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
syncthing-hs: Haskell bindings for the Syncthing REST API
[Skip to Readme]
syncthing-hs: Haskell bindings for the Syncthing REST API
see: https://github.com/syncthing/syncthing/wiki/REST-Interface
A short tutorial is available at: https://jetho.org/posts/2015-03-07-syncthing-hs-tutorial.html
[Skip to Readme]
Modules
[Index]
Downloads
- syncthing-hs-0.3.0.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.1.1.0, 0.1.2.0, 0.2.0.0, 0.3.0.0 |
|---|---|
| Change log | changelog.md |
| Dependencies | aeson (>=0.7.0.5), base (>=4.5 && <5), bytestring (>=0.9), connection (>=0.2.2), containers (>=0.5.5.1), either (>=4.0), exceptions (>=0.5), http-client (>=0.4.6), http-client-tls (>=0.2.2), lens (>=4.5), regex-posix (>=0.95.2), text (>=1.1.1.0), time, time-locale-compat, transformers (>=0.2.2.1), unordered-containers (>=0.2.3.3), vector (>=0.10.12.3), wreq (>=0.4.0.0) [details] |
| License | BSD-3-Clause |
| Author | Jens Thomas |
| Maintainer | jetho@gmx.de |
| Uploaded | by JensThomas at 2015-05-20T00:43:16Z |
| Category | Network |
| Home page | https://github.com/jetho/syncthing-hs |
| Bug tracker | https://github.com/jetho/syncthing-hs/issues |
| Source repo | head: git clone https://github.com/jetho/syncthing-hs |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 3177 total (18 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 syncthing-hs-0.3.0.0
[back to package description]syncthing-hs
Haskell bindings for the Syncthing REST API.
Tutorial
A short tutorial is available at: https://jetho.org/posts/2015-03-07-syncthing-hs-tutorial.html
Installation
cabal update
cabal install syncthing-hs
Usage Example
{-# LANGUAGE OverloadedStrings #-}
import Control.Lens ((&), (.~), (?~))
import Control.Monad (liftM2)
import qualified Network.Wreq as Wreq
import Network.Syncthing
import qualified Network.Syncthing.Get as Get
-- A single Syncthing request.
single = syncthing defaultConfig Get.ping
-- Connection sharing for multiple Syncthing requests.
multiple1 = withManager $ \cfg ->
syncthing cfg $ do
p <- Get.ping
v <- Get.version
return (p, v)
-- Multiple Syncthing requests with connection sharing and customized configuration.
multiple2 = withManager $ \cfg -> do
let cfg' = cfg & pServer .~ "192.168.0.10:8080"
& pHttps .~ True
& pAuth ?~ Wreq.basicAuth "user" "pass"
syncthing cfg' $ liftM2 (,) Get.ping Get.version