Fix add-handler for multipiece routes (closes #640)

This commit is contained in:
Michael Snoyman 2013-12-29 09:47:18 +02:00
parent f76b09856b
commit 14fbd3860c
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ mkHandler name pattern methods = unlines
getTypes "" = []
getTypes ('/':rest) = getTypes rest
getTypes ('#':rest) =
getTypes (c:rest) | c `elem` "#*" =
typ : getTypes rest'
where
(typ, rest') = break (== '/') rest

View File

@ -1,5 +1,5 @@
name: yesod-bin
version: 1.2.5.4
version: 1.2.5.5
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>