Skip to content

Commit

Permalink
Merge pull request #45 from adinapoli/0.10
Browse files Browse the repository at this point in the history
Removed any trace of wrapHandlers from Tutorial.lhs
  • Loading branch information
mightybyte committed Sep 22, 2012
2 parents efd03a1 + 48466e3 commit db86d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project_template/tutorial/src/Tutorial.lhs
Expand Up @@ -103,7 +103,7 @@ The next thing we need to do is define an initializer.
> , ("/barname", with bar namePage)
> , ("/company", companyHandler)
> ]
> wrapHandlers (<|> heistServe)
> wrapSite (<|> heistServe)
> ref <- liftIO $ newIORef "fooCorp"
> return $ App hs fs bs ref

Expand Down Expand Up @@ -167,10 +167,10 @@ monad. It has a `MonadState` instance that lets you access and modify the
current snaplet's state, and a `MonadSnap` instance providing the
request-processing functions defined in Snap.Types.

wrapHandlers
wrapSite
------------

`wrapHandlers` allows you to apply an arbitrary `Handler` transformation to
`wrapSite` allows you to apply an arbitrary `Handler` transformation to
the top-level handler. This is useful if you want to do some generic
processing at the beginning or end of every request. For instance, a session
snaplet might use it to touch a session activity token before routing happens.
Expand Down

0 comments on commit db86d69

Please sign in to comment.