The wheb-redis package

[Tags:bsd3, library]

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


Dependencies base (==4.7.*), bytestring (==0.10.*), hedis (==0.6.*), mtl (==2.2.*), text (==1.1.*), Wheb (==0.3.*) [details]
License BSD3
Author Kyle
Category Web
Home page
Uploaded Wed Aug 27 04:29:59 UTC 2014 by hansonkd
Distributions NixOS:
Downloads 260 total (8 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees