packages feed

fn 0.2.0.0 → 0.2.0.1

raw patch · 3 files changed

+8/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,8 @@+* 0.2.1.0 Daniel Patterson <dbp@dbpmail.net> 2015-12-4++  - Fix bug in url routing where "/foo/bar", "/foo/bar/", and+    "/foo//bar" were all treated differently.+ * 0.2.0.0 Daniel Pattersion <dbp@dbpmail.net> 2015-11-5    - Changed to having our own `FnRequest` type, which is a WAI
fn.cabal view
@@ -1,5 +1,5 @@ name:                fn-version:             0.2.0.0+version:             0.2.0.1 synopsis:            A functional web framework. description:   A Haskell web framework where you write plain old functions.@@ -67,7 +67,7 @@   where all necessary data is passed via function arguments, and control   flow is mediated by return values. -homepage:            http://github.cxom/dbp/fn#readme+homepage:            http://github.com/dbp/fn#readme license:             ISC license-file:        LICENSE author:              Daniel Patterson <dbp@dbpmail.net>
src/Web/Fn.hs view
@@ -143,7 +143,7 @@ route ctxt pths =   do let (r,post) = getRequest ctxt          m = either (const GET) id (parseMethod (requestMethod r))-         req = (pathInfo r, queryString r, m, post)+         req = (filter (/= "") (pathInfo r), queryString r, m, post)      route' req pths   where route' _ [] = return Nothing         route' req (x:xs) =