Commit Graph

4684 Commits

Author SHA1 Message Date
patrick brisbin
d3c7ccebe1 Provide sane defaults with less scaffolding
Yesod.Settings provides the typical definitions for AppConfig,
AppEnvironment, and loadConfig (read from YAML).

Yesod.Main provides a single defaultMain function which accepts your
usual withSiteArg function and runs via Warp calling the now provided
loadConfig to figure out what to do.

Note: Yesod re-exports Y.Settings and Y.Main -- This is probably not the
right thing to do since it would cause collisions with users not using
the provided functionality (including all existing users).
2011-09-10 23:21:35 -04:00
patrick brisbin
c569ed5f2f Stylistic changes to scaffolded main 2011-09-10 20:49:07 -04:00
patrick brisbin
f99a64e372 Import more from Settings 2011-09-10 20:46:26 -04:00
patrick brisbin
5da5fb8174 Make logger imports and function conditional
Silences -Wall for unused imports/function if PRODUCTION is defined
2011-09-10 20:40:52 -04:00
patrick brisbin
0723c19afa Fix missing logger argument in main.hs
logger argument was omitted in the withSiteArg call if PRODUCTION is
defined
2011-09-10 20:37:11 -04:00
Michael Snoyman
cae65c95ff fileAForm* 2011-09-10 23:23:45 +03:00
Michael Snoyman
f9da3cb4d6 Remove submodules (no longer necessary) 2011-09-10 23:23:06 +03:00
Björn Buckwalter
02cf8a514d Merge branch 'master' of github.com:bjornbm/yesod 2011-09-10 23:12:21 +08:00
Björn Buckwalter
392e47e1aa Swedish FormMessages. 2011-09-10 23:06:57 +08:00
Björn Buckwalter
9eef4829ad Factor out English FormMessage rendering. 2011-09-10 22:57:09 +08:00
Greg Weber
15a03b5a30 new version of mongoDB 2011-09-10 07:30:06 -07:00
Greg Weber
a9297006f8 mongoDB works! 2011-09-10 06:19:53 -07:00
Greg Weber
cc93924d3f Merge pull request #124 from maxcan/master
Added isValidPass to the exported functions in Yesod.Auth.Email
2011-09-10 05:27:09 -07:00
Luite Stegeman
cdb091046d fix warning on Windows 2011-09-10 01:22:56 +02:00
Luite Stegeman
d342798b4f restore original yesod touch behaviour 2011-09-10 01:04:58 +02:00
Greg Weber
064b8da896 get most examples compiling under 0.9 2011-09-08 22:44:24 -07:00
Max Cantor
ad6c18cfd5 Added isValidPass export to Yesod.Auth.Email 2011-09-09 10:51:55 +08:00
Michael Snoyman
acee39587c Fix a typo 2011-09-07 19:56:32 +03:00
Michael Snoyman
8532081842 http-enumerator bump 2011-09-07 19:17:38 +03:00
Luite Stegeman
bbf9f9092b fix merge typo 2011-09-06 09:56:17 +02:00
Luite Stegeman
1f8d753300 mnerge new-devel (Greg made me do it) 2011-09-06 09:51:32 +02:00
Luite Stegeman
e25389c4dd whoops switched cabal-dev and cabal 2011-09-06 09:35:36 +02:00
Luite Stegeman
71e1e57615 wait for file changes after server has quit 2011-09-06 09:27:19 +02:00
Greg Weber
8c30ebe3c0 fix shell equality 2011-09-05 23:11:14 -07:00
Greg Weber
7ae7d274fc ignore test warnings 2011-09-05 22:36:37 -07:00
Luite Stegeman
2a8cb7c066 add help message 2011-09-05 23:13:55 +02:00
Luite Stegeman
58a91c7634 exit application on enter 2011-09-05 23:04:48 +02:00
Luite Stegeman
ddb470b1a7 make sure that dist directory exists 2011-09-05 22:17:10 +02:00
Michael Snoyman
153e52b85b Fix for http-enum 0.7 2011-09-05 19:56:57 +03:00
Michael Snoyman
53933b3b8e xml/http-enumerator bumps 2011-09-05 19:17:03 +03:00
Luite Stegeman
850c4037df forgot one QQ 2011-09-02 18:41:22 +03:00
Luite Stegeman
ebf95cfeb9 use GHC6 compatible quasiquoter 2011-09-02 18:03:30 +03:00
Luite Stegeman
237385fe04 add newline to fix formatting of list 2011-09-02 17:08:28 +03:00
Luite Stegeman
f4a3569d37 Add UndecidableInstances to fix compile with GHC 6.12 2011-09-02 17:05:13 +03:00
Luite Stegeman
533a3df684 newline fix 2011-09-02 12:23:40 +02:00
Luite Stegeman
05fb1da593 Merge branch 'new-devel' of github.com:yesodweb/yesod into new-devel 2011-09-02 12:21:27 +02:00
Luite Stegeman
745c3d79d6 improve restarting application 2011-09-02 12:20:14 +02:00
Luite Stegeman
20f7355696 fix list formatting 2011-09-02 10:55:33 +03:00
Luite Stegeman
7a1629eaba change recompile method, revert scaffold changes 2011-09-02 09:41:37 +02:00
Luite Stegeman
611bb89e83 handle exceptions when cleaning 2011-09-02 07:51:12 +02:00
Luite Stegeman
cb0de49010 Don't print package description 2011-09-02 07:26:49 +02:00
Luite Stegeman
f5910a50ff improve yesod devel 2011-09-02 00:26:22 +02:00
Greg Weber
bd2dc62f23 update README 2011-09-01 10:38:12 -07:00
Greg Weber
10542f3534 fix yesod-core tests not running 2011-09-01 08:53:00 -07:00
Greg Weber
38d0a9e13f version bumps for new release 0.9.1.1 2011-09-01 08:38:51 -07:00
Greg Weber
1e98a69319 never mind 80, just don't show port in PRODUCTION
Works when you don't deploy to port 80
2011-09-01 08:37:42 -07:00
Greg Weber
e6bab578fc add completion message 2011-09-01 08:37:27 -07:00
Greg Weber
32c018f36d fix build warnings 2011-09-01 08:28:44 -07:00
Greg Weber
3f78df0c12 tiny: don't qualify imported function 2011-09-01 05:43:15 -07:00
Greg Weber
55c86c546b tiny: don't port to appRoot if 80 2011-09-01 05:40:36 -07:00