[Haskell-cafe] [ANN] Hack: a sexy Haskell Webserver Interface ^^
Joe Fredette
jfredett at gmail.com
Mon Apr 20 12:30:47 EDT 2009
We need to start referring to more haskell packages as "sexy"
/Joe
Jinjing Wang wrote:
> Simplest app should look like this
>
> module Main where
>
> import Hack
> import Hack.Handler.Kibro
>
> hello :: Application
> hello = \env -> return $ Response
> { status = 200
> , headers = [ ("Content-Type", "text/plain") ]
> , body = "Hello World"
> }
>
> main = run hello
>
> Hack is a brainless port of the brilliant Ruby Rack framework. Rack is
> very modular and that's
> very important.
>
> Rack utilities and middlewares should be able to be ported with
> minimal effort, I hope.
>
> link / source: http://github.com/nfjinjing/hack/tree/master
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jfredett.vcf
Type: text/x-vcard
Size: 307 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090420/7e9124ce/jfredett.vcf
More information about the Haskell-Cafe
mailing list