This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "snap-core".
The branch, 0.3 has been updated
via 4e5e8eb4cb744dc48b7888bcd8609e30b76688e3 (commit)
from 9cf1a6796eff6e386b0528e10c71a5e2ed087e4a (commit)
Summary of changes:
src/Snap/Internal/Types.hs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4e5e8eb4cb744dc48b7888bcd8609e30b76688e3
Author: Gregory Collins <[email protected]>
Date: Tue Jul 6 19:39:50 2010 -0400
Add a little preamble documentation for MonadSnap
diff --git a/src/Snap/Internal/Types.hs b/src/Snap/Internal/Types.hs
index 63add4f..10a7a71 100644
--- a/src/Snap/Internal/Types.hs
+++ b/src/Snap/Internal/Types.hs
@@ -92,6 +92,15 @@ import Snap.Iteratee hiding
(Enumerator)
> a :: Snap ()
> a = liftIO fireTheMissiles
+
+You may notice that most of the type signatures in this module contain a
+@(MonadSnap m) => ...@ typeclass constraint. 'MonadSnap' is a typeclass which,
+in essence, says \"you can get back to the 'Snap' monad from here\". Using
+'MonadSnap' you can extend the 'Snap' monad with additional functionality and
+still have access to most of the 'Snap' functions without writing 'lift'
+everywhere. Instances are already provided for most of the common monad
+transformers ('ReaderT', 'WriterT', 'StateT', etc.).
+
-}
------------------------------------------------------------------------------
-----------------------------------------------------------------------
hooks/post-receive
--
snap-core
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap