Err, is there some reason you don't have simpler interfaces like:<div>plaintext :: String -> Application</div><div>plaintext text = \env -> return $ Response<br> { status = 200<br> , headers = [ ("Content-Type", "text/plain") ]<br>
, body = text<br>}<br><div><br><div class="gmail_quote">On Mon, Apr 20, 2009 at 12:30 PM, Joe Fredette <span dir="ltr"><<a href="mailto:jfredett@gmail.com">jfredett@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
We need to start referring to more haskell packages as "sexy"<br>
<br>
/Joe<br>
<br>
Jinjing Wang wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Simplest app should look like this<br>
<br>
module Main where<br>
<br>
import Hack<br>
import Hack.Handler.Kibro<br>
<br>
hello :: Application<br>
hello = \env -> return $ Response<br>
{ status = 200<br>
, headers = [ ("Content-Type", "text/plain") ]<br>
, body = "Hello World"<br>
}<br>
<br>
main = run hello<br>
<br>
Hack is a brainless port of the brilliant Ruby Rack framework. Rack is<br>
very modular and that's<br>
very important.<br>
<br>
Rack utilities and middlewares should be able to be ported with<br>
minimal effort, I hope.<br>
<br>
link / source: <a href="http://github.com/nfjinjing/hack/tree/master" target="_blank">http://github.com/nfjinjing/hack/tree/master</a><br>
<br>
<br>
</blockquote>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div></div>