The wheb-redis package

[ Tags: bsd3, library, web ] [ Propose Tags ]

Implements basic functionality for:

Gives instances of Auth, Session and Cache backends for Wheb.

In action:

Use with language extensions OverloadedStrings

 import Web.Wheb
 import Web.Wheb.Plugins.Redis

 data MyCtx = MyCtx RedisContainer

 instance RedisApp MyCtx where
   getRedisContainer (MyCtx rc) = rc

 main :: IO ()
 main = do
   opts <- generateOptions $ do
       r <- initRedis defaultConnectInfo
       addGET "home" rootPat ((runRedis $ get "hello") >>= (text . spack))
       return (MyCtx r, ())

   runRawHandler opts $ do
       runRedis $ set "hello" "world"

   runWhebServer opts

Properties

Versions 0.0.1.0
Dependencies base (==4.7.*), bytestring (==0.10.*), hedis (==0.6.*), mtl (==2.2.*), text (==1.1.*), Wheb (==0.3.*) [details]
License BSD3
Author Kyle
Maintainer me@khanson.io
Category Web
Home page https://github.com/hansonkd/Wheb-Framework
Uploaded Wed Aug 27 04:29:59 UTC 2014 by hansonkd
Distributions NixOS:0.0.1.0
Downloads 274 total (3 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees