[ANN] Hack: a sexy Haskell Webserver Interface ^^

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 -- jinjing

Can you stick this on Hackage? I'd love to play with it...
On Mon, Apr 20, 2009 at 11:46 AM, Jinjing Wang
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
-- jinjing _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- /jve

Oh look:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hack-2009.4.20
*slinks away*
On Mon, Apr 20, 2009 at 11:48 AM, John Van Enk
Can you stick this on Hackage? I'd love to play with it...
On Mon, Apr 20, 2009 at 11:46 AM, 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
-- jinjing _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- /jve
-- /jve

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

Err, is there some reason you don't have simpler interfaces like:plaintext
:: String -> Application
plaintext text = \env -> return $ Response
{ status = 200
, headers = [ ("Content-Type", "text/plain") ]
, body = text
}
On Mon, Apr 20, 2009 at 12:30 PM, Joe Fredette
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
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Andrew Coppin wrote:
Joe Fredette wrote:
We need to start referring to more haskell packages as "sexy"
Would *you* want to copulate with it? ;-)
Hey, it's a safe and pure language, right? ;-)
Hmm, no documentation... GHC log is complaining that "mps" is missing. Pitty.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (6)
-
Andrew Coppin
-
Andrew Wagner
-
Jinjing Wang
-
Joe Fredette
-
John Goerzen
-
John Van Enk