bird 0.0.1 → 0.0.2
raw patch · 2 files changed
+10/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- bird.cabal +1/−1
- src/Bird/Request.hs +9/−1
bird.cabal view
@@ -1,5 +1,5 @@ Name: bird-Version: 0.0.1+Version: 0.0.2 Build-type: Simple Synopsis: A simple, sinatra-inspired web framework. Description: Bird is a hack-compatible framework for simple websites.
src/Bird/Request.hs view
@@ -25,10 +25,18 @@ Request { verb = requestMethod e, path = split '/' $ pathInfo e,- params = Hash.empty,+ params = Hash.fromList $ buildParams (queryString e), protocol = hackUrlScheme e, hackEnvironment = e }++infixl 9 ==>+f ==> g = g $ f++buildParams "" = []+buildParams queryString = queryString ==> split '&' ==> map (split '=') ==> map tupleize++tupleize (a:b:[]) = (a,b) split :: Char -> String -> [String] split d s