packages feed

bamboo 2009.5.18.2 → 2009.5.19

raw patch · 4 files changed

+28/−6 lines, 4 filesdep ~hackdep ~hack-contrib

Dependency ranges changed: hack, hack-contrib

Files

bamboo.cabal view
@@ -1,5 +1,5 @@ Name:                 bamboo-Version:              2009.5.18.2+Version:              2009.5.19 Build-type:           Simple Synopsis:             A simple blog middleware on hack Description:          A simple blog middleware on hack@@ -15,7 +15,7 @@  library   ghc-options: -Wall -fno-warn-missing-signatures -fno-warn-name-shadowing -fno-warn-orphans -fno-warn-type-defaults-  build-depends: base, cgi, network, haskell98, old-locale, old-time, time, unix, bytestring, base64-string, zlib, directory, filepath, containers, process,parsedate >= 3000.0.0, rss >= 3000.0.1, xhtml, utf8-string >= 0.3.3, pandoc, parsec >= 2, gravatar >= 0.3, data-default >= 0.2,  mps >= 2009.5.13, hcheat >= 2009.5.13, hack >= 2009.4.52, hack-contrib >= 2009.5.13, tokyocabinet-haskell >= 0.0.5+  build-depends: base, cgi, network, haskell98, old-locale, old-time, time, unix, bytestring, base64-string, zlib, directory, filepath, containers, process,parsedate >= 3000.0.0, rss >= 3000.0.1, xhtml, utf8-string >= 0.3.3, pandoc, parsec >= 2, gravatar >= 0.3, data-default >= 0.2,  mps >= 2009.5.13, hcheat >= 2009.5.13, hack >= 2009.5.19, hack-contrib >= 2009.5.19, tokyocabinet-haskell >= 0.0.5   hs-source-dirs: src/   exposed-modules:                       Bamboo
changelog.md view
@@ -1,3 +1,10 @@+2009.5.19+---------++### Feature++* for hack 5.19+ 2009.5.18.2 ----------- 
readme.md view
@@ -52,11 +52,24 @@  [jinjing's blog config file](http://github.com/nfjinjing/jinjing-blog/blob/401a541443d88bbf8d844874c1473d4b3bc81784/config/site.txt) -## Install+## Install in 3 steps -### Install Bamboo Middleware+### 1. tokyo-cabinet (used for caching) +#### Mac +    port install tokyocabinet+    +#### Arch++    yaourt -S tokyocabinet++#### other distro+    +Just find this tokyo-cabinet package and install it :)++### 2. Bamboo Middleware+ #### update cabal      cabal update@@ -67,7 +80,7 @@     cabal install rss --reinstall     cabal install bamboo -### Pick a hack handler+### 3. Pick any hack handler  #### Happstack 
src/Bamboo/Helper/Helper.hs view
@@ -27,6 +27,8 @@ import qualified Hack.Contrib.Request as Request import Hack.Contrib.Response import Hack.Contrib.Constants+import Hack.Contrib.Utils+import qualified Data.ByteString.Lazy.Char8 as B  gt = (P.>) @@ -112,7 +114,7 @@ output_plain_html x =    def      .set_status 200-    .set_body (x.unescape_unicode_xml.u2b)+    .set_body (x.unescape_unicode_xml.u2b.B.pack)     .set_content_type _TextHtmlUTF8     .return