Scaffolding update

This commit is contained in:
Michael Snoyman 2015-08-04 16:43:46 +03:00
parent 0bab753ada
commit 4c7dc5caaf
7 changed files with 68 additions and 30 deletions

View File

@ -32,13 +32,17 @@ config/client_session_key.aes
*.hi *.hi
*.o *.o
*.sqlite3 *.sqlite3
*.sqlite3-shm
*.sqlite3-wal
.hsenv* .hsenv*
cabal-dev/ cabal-dev/
.stack-work/
yesod-devel/ yesod-devel/
.cabal-sandbox .cabal-sandbox
cabal.sandbox.config cabal.sandbox.config
.DS_Store .DS_Store
*.swp *.swp
*.keter
{-# START_FILE Add.hs #-} {-# START_FILE Add.hs #-}
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}

View File

@ -32,13 +32,17 @@ config/client_session_key.aes
*.hi *.hi
*.o *.o
*.sqlite3 *.sqlite3
*.sqlite3-shm
*.sqlite3-wal
.hsenv* .hsenv*
cabal-dev/ cabal-dev/
.stack-work/
yesod-devel/ yesod-devel/
.cabal-sandbox .cabal-sandbox
cabal.sandbox.config cabal.sandbox.config
.DS_Store .DS_Store
*.swp *.swp
*.keter
{-# START_FILE Application.hs #-} {-# START_FILE Application.hs #-}
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# OPTIONS_GHC -fno-warn-orphans #-}
@ -81,7 +85,7 @@ import Handler.Home
mkYesodDispatch "App" resourcesApp mkYesodDispatch "App" resourcesApp
-- | This function allocates resources (such as a database connection pool), -- | This function allocates resources (such as a database connection pool),
-- performs initialization and return a foundation datatype value. This is also -- performs initialization and returns a foundation datatype value. This is also
-- the place to put your migrate statements to have automatic database -- the place to put your migrate statements to have automatic database
-- migrations handled by Yesod. -- migrations handled by Yesod.
makeFoundation :: AppSettings -> IO App makeFoundation :: AppSettings -> IO App
@ -101,7 +105,7 @@ makeFoundation appSettings = do
return App {..} return App {..}
-- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and -- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and
-- applyng some additional middlewares. -- applying some additional middlewares.
makeApplication :: App -> IO Application makeApplication :: App -> IO Application
makeApplication foundation = do makeApplication foundation = do
logWare <- mkRequestLogger def logWare <- mkRequestLogger def
@ -496,6 +500,7 @@ library
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -507,7 +512,7 @@ library
, yesod >= 1.4.1 && < 1.5 , yesod >= 1.4.1 && < 1.5
, yesod-core >= 1.4.6 && < 1.5 , yesod-core >= 1.4.6 && < 1.5
, yesod-auth >= 1.4.0 && < 1.5 , yesod-auth >= 1.4.0 && < 1.5
, yesod-static >= 1.4.0.3 && < 1.5 , yesod-static >= 1.4.0.3 && < 1.6
, yesod-form >= 1.4.0 && < 1.5 , yesod-form >= 1.4.0 && < 1.5
, classy-prelude >= 0.10.2 , classy-prelude >= 0.10.2
, classy-prelude-conduit >= 0.10.2 , classy-prelude-conduit >= 0.10.2
@ -565,6 +570,7 @@ test-suite test
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -940,7 +946,7 @@ stanzas:
# Use the following to automatically copy your bundle upon creation via `yesod # Use the following to automatically copy your bundle upon creation via `yesod
# keter`. Uses `scp` internally, so you can set it to a remote destination # keter`. Uses `scp` internally, so you can set it to a remote destination
# copy-to: user@host:/opt/keter/incoming # copy-to: user@host:/opt/keter/incoming/
# You can pass arguments to `scp` used above. This example limits bandwidth to # You can pass arguments to `scp` used above. This example limits bandwidth to
# 1024 Kbit/s and uses port 2222 instead of the default 22 # 1024 Kbit/s and uses port 2222 instead of the default 22
@ -9034,7 +9040,7 @@ $maybe msg <- mmsg
Send it! <span class="glyphicon glyphicon-upload"></span> Send it! <span class="glyphicon glyphicon-upload"></span>
<hr /> <hr />
<li> And last but not least, Testing. In <em>tests/main.hs</em> you will find a # <li> And last but not least, Testing. In <em>test/Spec.hs</em> you will find a #
test suite that performs tests on this page. # test suite that performs tests on this page. #
You can run your tests by doing: <pre>yesod test</pre> You can run your tests by doing: <pre>yesod test</pre>

View File

@ -32,13 +32,17 @@ config/client_session_key.aes
*.hi *.hi
*.o *.o
*.sqlite3 *.sqlite3
*.sqlite3-shm
*.sqlite3-wal
.hsenv* .hsenv*
cabal-dev/ cabal-dev/
.stack-work/
yesod-devel/ yesod-devel/
.cabal-sandbox .cabal-sandbox
cabal.sandbox.config cabal.sandbox.config
.DS_Store .DS_Store
*.swp *.swp
*.keter
{-# START_FILE Application.hs #-} {-# START_FILE Application.hs #-}
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# OPTIONS_GHC -fno-warn-orphans #-}
@ -82,7 +86,7 @@ import Handler.Home
mkYesodDispatch "App" resourcesApp mkYesodDispatch "App" resourcesApp
-- | This function allocates resources (such as a database connection pool), -- | This function allocates resources (such as a database connection pool),
-- performs initialization and return a foundation datatype value. This is also -- performs initialization and returns a foundation datatype value. This is also
-- the place to put your migrate statements to have automatic database -- the place to put your migrate statements to have automatic database
-- migrations handled by Yesod. -- migrations handled by Yesod.
makeFoundation :: AppSettings -> IO App makeFoundation :: AppSettings -> IO App
@ -119,7 +123,7 @@ makeFoundation appSettings = do
return $ mkFoundation pool return $ mkFoundation pool
-- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and -- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and
-- applyng some additional middlewares. -- applying some additional middlewares.
makeApplication :: App -> IO Application makeApplication :: App -> IO Application
makeApplication foundation = do makeApplication foundation = do
logWare <- mkRequestLogger def logWare <- mkRequestLogger def
@ -510,6 +514,7 @@ library
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -521,7 +526,7 @@ library
, yesod >= 1.4.1 && < 1.5 , yesod >= 1.4.1 && < 1.5
, yesod-core >= 1.4.6 && < 1.5 , yesod-core >= 1.4.6 && < 1.5
, yesod-auth >= 1.4.0 && < 1.5 , yesod-auth >= 1.4.0 && < 1.5
, yesod-static >= 1.4.0.3 && < 1.5 , yesod-static >= 1.4.0.3 && < 1.6
, yesod-form >= 1.4.0 && < 1.5 , yesod-form >= 1.4.0 && < 1.5
, classy-prelude >= 0.10.2 , classy-prelude >= 0.10.2
, classy-prelude-conduit >= 0.10.2 , classy-prelude-conduit >= 0.10.2
@ -579,6 +584,7 @@ test-suite test
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -952,7 +958,7 @@ stanzas:
# Use the following to automatically copy your bundle upon creation via `yesod # Use the following to automatically copy your bundle upon creation via `yesod
# keter`. Uses `scp` internally, so you can set it to a remote destination # keter`. Uses `scp` internally, so you can set it to a remote destination
# copy-to: user@host:/opt/keter/incoming # copy-to: user@host:/opt/keter/incoming/
# You can pass arguments to `scp` used above. This example limits bandwidth to # You can pass arguments to `scp` used above. This example limits bandwidth to
# 1024 Kbit/s and uses port 2222 instead of the default 22 # 1024 Kbit/s and uses port 2222 instead of the default 22
@ -9047,7 +9053,7 @@ $maybe msg <- mmsg
Send it! <span class="glyphicon glyphicon-upload"></span> Send it! <span class="glyphicon glyphicon-upload"></span>
<hr /> <hr />
<li> And last but not least, Testing. In <em>tests/main.hs</em> you will find a # <li> And last but not least, Testing. In <em>test/Spec.hs</em> you will find a #
test suite that performs tests on this page. # test suite that performs tests on this page. #
You can run your tests by doing: <pre>yesod test</pre> You can run your tests by doing: <pre>yesod test</pre>

View File

@ -37,11 +37,13 @@ config/client_session_key.aes
fay/Fay/Yesod.hs fay/Fay/Yesod.hs
.hsenv* .hsenv*
cabal-dev/ cabal-dev/
.stack-work/
yesod-devel/ yesod-devel/
.cabal-sandbox .cabal-sandbox
cabal.sandbox.config cabal.sandbox.config
.DS_Store .DS_Store
*.swp *.swp
*.keter
{-# START_FILE Application.hs #-} {-# START_FILE Application.hs #-}
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# OPTIONS_GHC -fno-warn-orphans #-}
@ -87,7 +89,7 @@ import Handler.Home
mkYesodDispatch "App" resourcesApp mkYesodDispatch "App" resourcesApp
-- | This function allocates resources (such as a database connection pool), -- | This function allocates resources (such as a database connection pool),
-- performs initialization and return a foundation datatype value. This is also -- performs initialization and returns a foundation datatype value. This is also
-- the place to put your migrate statements to have automatic database -- the place to put your migrate statements to have automatic database
-- migrations handled by Yesod. -- migrations handled by Yesod.
makeFoundation :: AppSettings -> IO App makeFoundation :: AppSettings -> IO App
@ -125,7 +127,7 @@ makeFoundation appSettings = do
return $ mkFoundation pool return $ mkFoundation pool
-- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and -- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and
-- applyng some additional middlewares. -- applying some additional middlewares.
makeApplication :: App -> IO Application makeApplication :: App -> IO Application
makeApplication foundation = do makeApplication foundation = do
logWare <- mkRequestLogger def logWare <- mkRequestLogger def
@ -552,6 +554,7 @@ library
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
RankNTypes RankNTypes
@ -564,7 +567,7 @@ library
, yesod >= 1.4.1 && < 1.5 , yesod >= 1.4.1 && < 1.5
, yesod-core >= 1.4.6 && < 1.5 , yesod-core >= 1.4.6 && < 1.5
, yesod-auth >= 1.4.0 && < 1.5 , yesod-auth >= 1.4.0 && < 1.5
, yesod-static >= 1.4.0.3 && < 1.5 , yesod-static >= 1.4.0.3 && < 1.6
, yesod-form >= 1.4.0 && < 1.5 , yesod-form >= 1.4.0 && < 1.5
, yesod-fay >= 0.7 && < 0.8 , yesod-fay >= 0.7 && < 0.8
, fay >= 0.21.2.1 && < 0.24 , fay >= 0.21.2.1 && < 0.24
@ -623,6 +626,7 @@ test-suite test
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -1011,7 +1015,7 @@ stanzas:
# Use the following to automatically copy your bundle upon creation via `yesod # Use the following to automatically copy your bundle upon creation via `yesod
# keter`. Uses `scp` internally, so you can set it to a remote destination # keter`. Uses `scp` internally, so you can set it to a remote destination
# copy-to: user@host:/opt/keter/incoming # copy-to: user@host:/opt/keter/incoming/
# You can pass arguments to `scp` used above. This example limits bandwidth to # You can pass arguments to `scp` used above. This example limits bandwidth to
# 1024 Kbit/s and uses port 2222 instead of the default 22 # 1024 Kbit/s and uses port 2222 instead of the default 22
@ -9162,7 +9166,7 @@ $maybe msg <- mmsg
Send it! <span class="glyphicon glyphicon-upload"></span> Send it! <span class="glyphicon glyphicon-upload"></span>
<hr /> <hr />
<li> And last but not least, Testing. In <em>tests/main.hs</em> you will find a # <li> And last but not least, Testing. In <em>test/Spec.hs</em> you will find a #
test suite that performs tests on this page. # test suite that performs tests on this page. #
You can run your tests by doing: <pre>yesod test</pre> You can run your tests by doing: <pre>yesod test</pre>

View File

@ -32,13 +32,17 @@ config/client_session_key.aes
*.hi *.hi
*.o *.o
*.sqlite3 *.sqlite3
*.sqlite3-shm
*.sqlite3-wal
.hsenv* .hsenv*
cabal-dev/ cabal-dev/
.stack-work/
yesod-devel/ yesod-devel/
.cabal-sandbox .cabal-sandbox
cabal.sandbox.config cabal.sandbox.config
.DS_Store .DS_Store
*.swp *.swp
*.keter
{-# START_FILE Application.hs #-} {-# START_FILE Application.hs #-}
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# OPTIONS_GHC -fno-warn-orphans #-}
@ -82,7 +86,7 @@ import Handler.Home
mkYesodDispatch "App" resourcesApp mkYesodDispatch "App" resourcesApp
-- | This function allocates resources (such as a database connection pool), -- | This function allocates resources (such as a database connection pool),
-- performs initialization and return a foundation datatype value. This is also -- performs initialization and returns a foundation datatype value. This is also
-- the place to put your migrate statements to have automatic database -- the place to put your migrate statements to have automatic database
-- migrations handled by Yesod. -- migrations handled by Yesod.
makeFoundation :: AppSettings -> IO App makeFoundation :: AppSettings -> IO App
@ -119,7 +123,7 @@ makeFoundation appSettings = do
return $ mkFoundation pool return $ mkFoundation pool
-- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and -- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and
-- applyng some additional middlewares. -- applying some additional middlewares.
makeApplication :: App -> IO Application makeApplication :: App -> IO Application
makeApplication foundation = do makeApplication foundation = do
logWare <- mkRequestLogger def logWare <- mkRequestLogger def
@ -510,6 +514,7 @@ library
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -521,7 +526,7 @@ library
, yesod >= 1.4.1 && < 1.5 , yesod >= 1.4.1 && < 1.5
, yesod-core >= 1.4.6 && < 1.5 , yesod-core >= 1.4.6 && < 1.5
, yesod-auth >= 1.4.0 && < 1.5 , yesod-auth >= 1.4.0 && < 1.5
, yesod-static >= 1.4.0.3 && < 1.5 , yesod-static >= 1.4.0.3 && < 1.6
, yesod-form >= 1.4.0 && < 1.5 , yesod-form >= 1.4.0 && < 1.5
, classy-prelude >= 0.10.2 , classy-prelude >= 0.10.2
, classy-prelude-conduit >= 0.10.2 , classy-prelude-conduit >= 0.10.2
@ -579,6 +584,7 @@ test-suite test
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -952,7 +958,7 @@ stanzas:
# Use the following to automatically copy your bundle upon creation via `yesod # Use the following to automatically copy your bundle upon creation via `yesod
# keter`. Uses `scp` internally, so you can set it to a remote destination # keter`. Uses `scp` internally, so you can set it to a remote destination
# copy-to: user@host:/opt/keter/incoming # copy-to: user@host:/opt/keter/incoming/
# You can pass arguments to `scp` used above. This example limits bandwidth to # You can pass arguments to `scp` used above. This example limits bandwidth to
# 1024 Kbit/s and uses port 2222 instead of the default 22 # 1024 Kbit/s and uses port 2222 instead of the default 22
@ -9047,7 +9053,7 @@ $maybe msg <- mmsg
Send it! <span class="glyphicon glyphicon-upload"></span> Send it! <span class="glyphicon glyphicon-upload"></span>
<hr /> <hr />
<li> And last but not least, Testing. In <em>tests/main.hs</em> you will find a # <li> And last but not least, Testing. In <em>test/Spec.hs</em> you will find a #
test suite that performs tests on this page. # test suite that performs tests on this page. #
You can run your tests by doing: <pre>yesod test</pre> You can run your tests by doing: <pre>yesod test</pre>

View File

@ -32,13 +32,17 @@ config/client_session_key.aes
*.hi *.hi
*.o *.o
*.sqlite3 *.sqlite3
*.sqlite3-shm
*.sqlite3-wal
.hsenv* .hsenv*
cabal-dev/ cabal-dev/
.stack-work/
yesod-devel/ yesod-devel/
.cabal-sandbox .cabal-sandbox
cabal.sandbox.config cabal.sandbox.config
.DS_Store .DS_Store
*.swp *.swp
*.keter
{-# START_FILE Application.hs #-} {-# START_FILE Application.hs #-}
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# OPTIONS_GHC -fno-warn-orphans #-}
@ -79,7 +83,7 @@ import Handler.Home
mkYesodDispatch "App" resourcesApp mkYesodDispatch "App" resourcesApp
-- | This function allocates resources (such as a database connection pool), -- | This function allocates resources (such as a database connection pool),
-- performs initialization and return a foundation datatype value. This is also -- performs initialization and returns a foundation datatype value. This is also
-- the place to put your migrate statements to have automatic database -- the place to put your migrate statements to have automatic database
-- migrations handled by Yesod. -- migrations handled by Yesod.
makeFoundation :: AppSettings -> IO App makeFoundation :: AppSettings -> IO App
@ -96,7 +100,7 @@ makeFoundation appSettings = do
return App {..} return App {..}
-- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and -- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and
-- applyng some additional middlewares. -- applying some additional middlewares.
makeApplication :: App -> IO Application makeApplication :: App -> IO Application
makeApplication foundation = do makeApplication foundation = do
logWare <- mkRequestLogger def logWare <- mkRequestLogger def
@ -427,6 +431,7 @@ library
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -437,7 +442,7 @@ library
build-depends: base >= 4 && < 5 build-depends: base >= 4 && < 5
, yesod >= 1.4.1 && < 1.5 , yesod >= 1.4.1 && < 1.5
, yesod-core >= 1.4.6 && < 1.5 , yesod-core >= 1.4.6 && < 1.5
, yesod-static >= 1.4.0.3 && < 1.5 , yesod-static >= 1.4.0.3 && < 1.6
, yesod-form >= 1.4.0 && < 1.5 , yesod-form >= 1.4.0 && < 1.5
, classy-prelude >= 0.10.2 , classy-prelude >= 0.10.2
, classy-prelude-conduit >= 0.10.2 , classy-prelude-conduit >= 0.10.2
@ -492,6 +497,7 @@ test-suite test
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -855,7 +861,7 @@ stanzas:
# Use the following to automatically copy your bundle upon creation via `yesod # Use the following to automatically copy your bundle upon creation via `yesod
# keter`. Uses `scp` internally, so you can set it to a remote destination # keter`. Uses `scp` internally, so you can set it to a remote destination
# copy-to: user@host:/opt/keter/incoming # copy-to: user@host:/opt/keter/incoming/
# You can pass arguments to `scp` used above. This example limits bandwidth to # You can pass arguments to `scp` used above. This example limits bandwidth to
# 1024 Kbit/s and uses port 2222 instead of the default 22 # 1024 Kbit/s and uses port 2222 instead of the default 22
@ -8926,7 +8932,7 @@ $maybe msg <- mmsg
Send it! <span class="glyphicon glyphicon-upload"></span> Send it! <span class="glyphicon glyphicon-upload"></span>
<hr /> <hr />
<li> And last but not least, Testing. In <em>tests/main.hs</em> you will find a # <li> And last but not least, Testing. In <em>test/Spec.hs</em> you will find a #
test suite that performs tests on this page. # test suite that performs tests on this page. #
You can run your tests by doing: <pre>yesod test</pre> You can run your tests by doing: <pre>yesod test</pre>

View File

@ -32,13 +32,17 @@ config/client_session_key.aes
*.hi *.hi
*.o *.o
*.sqlite3 *.sqlite3
*.sqlite3-shm
*.sqlite3-wal
.hsenv* .hsenv*
cabal-dev/ cabal-dev/
.stack-work/
yesod-devel/ yesod-devel/
.cabal-sandbox .cabal-sandbox
cabal.sandbox.config cabal.sandbox.config
.DS_Store .DS_Store
*.swp *.swp
*.keter
{-# START_FILE Application.hs #-} {-# START_FILE Application.hs #-}
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# OPTIONS_GHC -fno-warn-orphans #-}
@ -82,7 +86,7 @@ import Handler.Home
mkYesodDispatch "App" resourcesApp mkYesodDispatch "App" resourcesApp
-- | This function allocates resources (such as a database connection pool), -- | This function allocates resources (such as a database connection pool),
-- performs initialization and return a foundation datatype value. This is also -- performs initialization and returns a foundation datatype value. This is also
-- the place to put your migrate statements to have automatic database -- the place to put your migrate statements to have automatic database
-- migrations handled by Yesod. -- migrations handled by Yesod.
makeFoundation :: AppSettings -> IO App makeFoundation :: AppSettings -> IO App
@ -119,7 +123,7 @@ makeFoundation appSettings = do
return $ mkFoundation pool return $ mkFoundation pool
-- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and -- | Convert our foundation to a WAI Application by calling @toWaiAppPlain@ and
-- applyng some additional middlewares. -- applying some additional middlewares.
makeApplication :: App -> IO Application makeApplication :: App -> IO Application
makeApplication foundation = do makeApplication foundation = do
logWare <- mkRequestLogger def logWare <- mkRequestLogger def
@ -510,6 +514,7 @@ library
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -521,7 +526,7 @@ library
, yesod >= 1.4.1 && < 1.5 , yesod >= 1.4.1 && < 1.5
, yesod-core >= 1.4.6 && < 1.5 , yesod-core >= 1.4.6 && < 1.5
, yesod-auth >= 1.4.0 && < 1.5 , yesod-auth >= 1.4.0 && < 1.5
, yesod-static >= 1.4.0.3 && < 1.5 , yesod-static >= 1.4.0.3 && < 1.6
, yesod-form >= 1.4.0 && < 1.5 , yesod-form >= 1.4.0 && < 1.5
, classy-prelude >= 0.10.2 , classy-prelude >= 0.10.2
, classy-prelude-conduit >= 0.10.2 , classy-prelude-conduit >= 0.10.2
@ -579,6 +584,7 @@ test-suite test
GADTs GADTs
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
FlexibleContexts FlexibleContexts
FlexibleInstances
EmptyDataDecls EmptyDataDecls
NoMonomorphismRestriction NoMonomorphismRestriction
DeriveDataTypeable DeriveDataTypeable
@ -952,7 +958,7 @@ stanzas:
# Use the following to automatically copy your bundle upon creation via `yesod # Use the following to automatically copy your bundle upon creation via `yesod
# keter`. Uses `scp` internally, so you can set it to a remote destination # keter`. Uses `scp` internally, so you can set it to a remote destination
# copy-to: user@host:/opt/keter/incoming # copy-to: user@host:/opt/keter/incoming/
# You can pass arguments to `scp` used above. This example limits bandwidth to # You can pass arguments to `scp` used above. This example limits bandwidth to
# 1024 Kbit/s and uses port 2222 instead of the default 22 # 1024 Kbit/s and uses port 2222 instead of the default 22
@ -9065,7 +9071,7 @@ $maybe msg <- mmsg
Send it! <span class="glyphicon glyphicon-upload"></span> Send it! <span class="glyphicon glyphicon-upload"></span>
<hr /> <hr />
<li> And last but not least, Testing. In <em>tests/main.hs</em> you will find a # <li> And last but not least, Testing. In <em>test/Spec.hs</em> you will find a #
test suite that performs tests on this page. # test suite that performs tests on this page. #
You can run your tests by doing: <pre>yesod test</pre> You can run your tests by doing: <pre>yesod test</pre>