packages feed

hack2 2012.1.19 → 2014.11.17

raw patch · 2 files changed

+5/−11 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

hack2.cabal view
@@ -1,5 +1,5 @@ Name:                 hack2-Version:              2012.1.19+Version:              2014.11.17 Build-type:           Simple Synopsis:             a Haskell Webserver Interface (V2) Description:@@ -14,7 +14,7 @@ Cabal-version:        >= 1.2 category:             Web homepage:             https://github.com/nfjinjing/hack2-data-files:           readme.md, changelog.md+extra-doc-files:      readme.md, changelog.md  library   ghc-options: -Wall
readme.md view
@@ -3,11 +3,6 @@  Hack2 is a port of Ruby's [Rack](http://rack.rubyforge.org/) webserver interface. -Version----------> 2011.6.19- Introduction ------------ @@ -30,13 +25,12 @@     import Hack2     import Hack2.Contrib.Response (set_body_bytestring)     import Hack2.Handler.SnapServer-    import Data.Default (def)      app :: Application     app = \env ->        return $ -        set_body_bytestring "Hello World" $-          Response 200 [ ("Content-Type", "text/plain") ] def+        Response +          200 [ ("Content-Type", "text/plain") ] "Hello World"      main = run app     @@ -131,7 +125,7 @@     import Hack2.Handler.SnapServer     import Data.Default (def) -    import Data.ByteString.Lazy.Char8 (pack)+    import Data.ByteString.Char8 (pack)     import Hack2.Contrib.Utils (empty_app)     import Hack2.Contrib.Middleware.URLMap