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".
The branch, master has been updated
via 035f8513b18720cc672dd1337efa7d0ca854e3c6 (commit)
from 8937d0e9c5dd0a04f9eaf48a047dcfcebc53fddf (commit)
Summary of changes:
project_template/hint/src/Main.hs | 12 ++++++++++++
1 files changed, 12 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 035f8513b18720cc672dd1337efa7d0ca854e3c6
Author: Carl Howells <[email protected]>
Date: Wed Jun 30 16:16:34 2010 -0700
More documentation for hint skeleton Main
diff --git a/project_template/hint/src/Main.hs
b/project_template/hint/src/Main.hs
index a8f7b38..27502da 100644
--- a/project_template/hint/src/Main.hs
+++ b/project_template/hint/src/Main.hs
@@ -41,6 +41,18 @@ main = do
-- and a Snap handler. The specific behavior of each depends on
-- whether the Hint loader or the Static loader is imported. This
-- interface abstracts across the differences between them.
+ --
+ -- The most significant behavioral differences between the two
+ -- loaders are how the action is determined, and when the
+ -- getConfig and cleanupConfig functions are killed.
+ --
+ -- The Hint loader uses the ghc api to interpret the sources when
+ -- pages are loaded. It also runs getConfig and cleanupConfig
+ -- for each request it handles.
+ --
+ -- The Static loader compiles all the actions when the app is
+ -- compiled. It runs getConfig once, at the start of the program,
+ -- and cleanupConfig once, at the end of the program.
(cleanup, snap) <- $(loadSnapTH 'getConfig 'cleanupConfig 'site)
-- Run the server
-----------------------------------------------------------------------
hooks/post-receive
--
snap
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap