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 "heist".

The branch, master has been updated
       via  f35da09485022da4a66de0a2b6bd1a3812e9db28 (commit)
      from  7b1d368a7f1c846b8459a07143bce5e2ee7e6a44 (commit)


Summary of changes:
 src/Text/Templating/Heist.hs       |    5 +++--
 src/Text/Templating/Heist/Types.hs |   18 +++++++++---------
 2 files changed, 12 insertions(+), 11 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 f35da09485022da4a66de0a2b6bd1a3812e9db28
Author: Mighty Byte <[email protected]>
Date:   Tue Jun 8 00:01:02 2010 -0400

    Documentation updates.

diff --git a/src/Text/Templating/Heist.hs b/src/Text/Templating/Heist.hs
index d19e338..3b6228b 100644
--- a/src/Text/Templating/Heist.hs
+++ b/src/Text/Templating/Heist.hs
@@ -120,8 +120,9 @@ defaultSpliceMap = Map.fromList
 
 
 ------------------------------------------------------------------------------
--- | An empty template state, with Heist's default splices (@\<bind\>@ and
--- @\<apply\>@) mapped.
+-- | An empty template state, with Heist's default splices (@\<apply\>@,
+-- @\<bind\>@, @\<ignore\>@, and @\<markdown\>@) mapped.  The static tag is
+-- not mapped here because it must be mapped manually in your application.
 emptyTemplateState :: MonadIO m => TemplateState m
 emptyTemplateState = TemplateState defaultSpliceMap Map.empty True [] 0
                                    return return return []
diff --git a/src/Text/Templating/Heist/Types.hs 
b/src/Text/Templating/Heist/Types.hs
index e3fd9ab..b612429 100644
--- a/src/Text/Templating/Heist/Types.hs
+++ b/src/Text/Templating/Heist/Types.hs
@@ -135,9 +135,9 @@ instance Eq (TemplateState m) where
 
 
 ------------------------------------------------------------------------------
--- | TemplateMonad is a combination of the reader and state monads.  The
--- reader environment is the contents of the node being spliced.  The state is
--- the TemplateState data structure.
+-- | TemplateMonad is the monad used for 'Splice' processing.  TemplateMonad
+-- provides \"passthrough\" instances for many of the monads you might use in
+-- the inner monad.  
 newtype TemplateMonad m a = TemplateMonad {
     runTemplateMonad :: Node
                      -> TemplateState m
@@ -146,7 +146,7 @@ newtype TemplateMonad m a = TemplateMonad {
 
 
 ------------------------------------------------------------------------------
--- | Helper function for the functor instance
+-- | Evaluates a template monad as a computation in the underlying monad.
 evalTemplateMonad :: Monad m
                   => TemplateMonad m a
                   -> Node
@@ -310,7 +310,7 @@ getParamNode = TemplateMonad $ \r s -> return (r,s)
 
 
 ------------------------------------------------------------------------------
--- | 
+-- | TemplateMonad's local
 localParamNode :: Monad m
                => (Node -> Node)
                -> TemplateMonad m a
@@ -319,25 +319,25 @@ localParamNode f m = TemplateMonad $ \r s -> 
runTemplateMonad m (f r) s
 
 
 ------------------------------------------------------------------------------
--- | 
+-- | TemplateMonad's gets
 getsTS :: Monad m => (TemplateState m -> r) -> TemplateMonad m r
 getsTS f = TemplateMonad $ \_ s -> return (f s, s)
 
 
 ------------------------------------------------------------------------------
--- | 
+-- | TemplateMonad's get
 getTS :: Monad m => TemplateMonad m (TemplateState m)
 getTS = TemplateMonad $ \_ s -> return (s, s)
 
 
 ------------------------------------------------------------------------------
--- | 
+-- | TemplateMonad's put
 putTS :: Monad m => TemplateState m -> TemplateMonad m ()
 putTS s = TemplateMonad $ \_ _ -> return ((), s)
 
 
 ------------------------------------------------------------------------------
--- | 
+-- | TemplateMonad's modify
 modifyTS :: Monad m
                     => (TemplateState m -> TemplateState m)
                     -> TemplateMonad m ()
-----------------------------------------------------------------------


hooks/post-receive
-- 
heist
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap

Reply via email to