Skip to content

Commit

Permalink
Merge pull request #135 from rgrinberg/master
Browse files Browse the repository at this point in the history
Remove redundant lambda
  • Loading branch information
Andrew Farmer committed Dec 8, 2014
2 parents 82d0b87 + c2710d6 commit 56e11d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web/Scotty/Trans.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ scottyAppT :: (Monad m, Monad n)
-> n Application
scottyAppT runM runActionToIO defs = do
s <- runM $ execStateT (runS defs) def
let rapp = \ req callback -> runActionToIO (foldl (flip ($)) notFoundApp (routes s) req) >>= callback
let rapp req callback = runActionToIO (foldl (flip ($)) notFoundApp (routes s) req) >>= callback
return $ foldl (flip ($)) rapp (middlewares s)

notFoundApp :: Monad m => Scotty.Application m
Expand Down

0 comments on commit 56e11d5

Please sign in to comment.