| 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 23:14:56 GMT
X-Served-By: cache-dfw-kdal2120120-DFW, cache-bom-vanm7210089-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768691696.318884,VS0,VE305
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
haskell-tyrant: Haskell implementation of the Tokyo Tyrant binary protocol
[Skip to Readme]
haskell-tyrant: Haskell implementation of the Tokyo Tyrant binary protocol
A pure Haskell implementation of the Tokyo Tyrant binary protocol. Tokyo Tyrant is a database server for the Tokyo Cabinet database library. https://tokyocabinet.sourceforge.net/tyrantdoc/
[Skip to Readme]
Downloads
- haskell-tyrant-0.4.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.2, 0.4 |
|---|---|
| Dependencies | base (>=4 && <5), binary, bytestring, network (>=2.3) [details] |
| License | BSD-3-Clause |
| Author | Travis Brady <travis.brady@gmail.com> |
| Maintainer | Peter Scott <peter@greplin.com> |
| Uploaded | by PeterScott at 2011-07-02T03:38:45Z |
| Category | Database |
| Home page | https://github.com/PeterScott/haskell-tyrant |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 2673 total (9 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 haskell-tyrant-0.4
[back to package description]Pure Haskell interface to Tokyo Tyrant
Haskell-tyrant is a client library for Tokyo Tyrant. It uses the binary protocol for efficiency.
Example
A simple example assuming you've got ttserver running at the default location
module Main where
import Database.TokyoTyrant
import Data.ByteString.Lazy.Char8 (pack)
defaultHost = "localhost"
defaultPort = "1978"
main = do
let k = pack "mykey"
let v = pack "myval"
conn <- openConnection defaultHost defaultPort
result <- putValue conn k v
--should be "success"
print result
g <- getValue conn k
print g
-- remove the record created above
out conn k
-- close connection to server
closeConnection conn