From 6f26f75064a4b16880624e62b54b9d7d912f33ca Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Wed, 18 Apr 2012 02:41:59 +0900 Subject: [PATCH 1/2] Fixed comment --- yesod-default/Yesod/Default/Util.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yesod-default/Yesod/Default/Util.hs b/yesod-default/Yesod/Default/Util.hs index 2d7dcad6..1c5019dc 100644 --- a/yesod-default/Yesod/Default/Util.hs +++ b/yesod-default/Yesod/Default/Util.hs @@ -73,8 +73,8 @@ widgetFileReload x = combine "widgetFileReload" x , whenExists x True "lucius" luciusFileReload ] -widgetFileJsCss :: (String, FilePath -> Q Exp) -- ^ Css file extenstion and loading function. example: ("cassius", cassiusFileReload) - -> (String, FilePath -> Q Exp) -- ^ Css file extenstion and loading function. example: ("julius", juliusFileReload) +widgetFileJsCss :: (String, FilePath -> Q Exp) -- ^ JavaScript file extenstion and loading function. example: ("julius", juliusFileReload) + -> (String, FilePath -> Q Exp) -- ^ Css file extenstion and loading function. example: ("cassius", cassiusFileReload) -> FilePath -> Q Exp widgetFileJsCss (jsExt, jsLoad) (csExt, csLoad) x = combine "widgetFileJsCss" x [ whenExists x False "hamlet" whamletFile From 3ea7bcacaf22bf17dc3dfc4d3db754405902c96f Mon Sep 17 00:00:00 2001 From: Luite Stegeman Date: Tue, 17 Apr 2012 22:52:09 +0300 Subject: [PATCH 2/2] add warning, this seems to bite many new users --- yesod/scaffold/Application.hs.cg | 1 + 1 file changed, 1 insertion(+) diff --git a/yesod/scaffold/Application.hs.cg b/yesod/scaffold/Application.hs.cg index 20a58b61..b843b0fc 100644 --- a/yesod/scaffold/Application.hs.cg +++ b/yesod/scaffold/Application.hs.cg @@ -21,6 +21,7 @@ import qualified Database.Persist.Store~importMigration~ import Network.HTTP.Conduit (newManager, def) -- Import all relevant handler modules here. +-- Don't forget to add new modules to your cabal file! import Handler.Home -- This line actually creates our YesodSite instance. It is the second half