Commit Graph

4741 Commits

Author SHA1 Message Date
Greg Weber
629df4a291 add required attribute 2014-09-17 12:31:42 -07:00
João Cristóvão
13bc55969a Added convertField function to ease the generation of new fields 2014-09-17 18:08:06 +01:00
Greg Weber
17b94c16c7 version bump 2014-09-17 09:28:45 -07:00
Greg Weber
8c2542eb8c add required attribute 2014-09-17 09:28:26 -07:00
Michael Snoyman
ed2aeda06d Merge pull request #824 from erikd/master
yesod-test: Improve CSS selector parser.
2014-09-17 06:50:16 +03:00
Greg Weber
51927638c1 version bump 2014-09-16 18:50:06 -07:00
Greg Weber
448b33d1cc fix confirmation email status
I screwed this up in a big re-factoring in 153654ad
2014-09-16 18:49:45 -07:00
Greg Weber
4f95cb9f64 Merge pull request #825 from yesodweb/confirm-email-status
Confirm email status
2014-09-16 20:49:05 -05:00
Greg Weber
2a30519169 fix some import warnings 2014-09-16 18:13:28 -07:00
Greg Weber
1067816b5d fix confirmation email status
I screwed this up in a big re-factoring in 153654ad
2014-09-16 18:10:40 -07:00
Erik de Castro Lopo
581a688cf5 yesod-test: Improve CSS selector parser.
* Tighten up what the parser will accept (especially wrt identifiers).
* Write the parser in a more idiomatic (for *parsec) style.
2014-09-17 10:24:57 +10:00
Michael Snoyman
50f57a3586 Fix browserid.hs (closes #547) 2014-09-14 11:04:16 +03:00
Michael Snoyman
bec985467f Merge pull request #821 from mgomezch/yesodauthpersist
Decouple YesodAuthPersist from Persistent
2014-09-14 07:30:18 +03:00
Michael Snoyman
d3e4831b38 Scaffolding update 2014-09-14 07:23:19 +03:00
Manuel Gómez
94331fcab9 Travis doesn't like type instance in a class 2014-09-12 13:35:00 +00:00
Manuel Gómez
9729cd9d15 Default type instance for AuthEntity
`AuthEntity` is now a type family associated to the `YesodAuthPersist`
class, so its old type alias definition has now become its default type
instance, which allows recovering the old behavior with minimal
boilerplate: an empty instance declaration for `YesodAuthPersist` makes
a Yesod application written with Persistent work just like before.

Unfortunately, this requires enabling `UndecidableInstances` in the
`Yesod.Auth` module since there is now a nested type family application
(as `AuthEntity` is now itself a type family).

This was tested with the scaffolded application with PostgreSQL, and it
works (given another small change to make it work with Persistent 2 due
to how `SqlPersistT` is now defined).
2014-09-12 13:18:51 +00:00
Manuel Gómez
4fd20299c1 maybeAuthPair, requireAuthPair
`maybeAuth` and `requireAuth` have been reverted to their original
signatures, which assume a Persistent database.  `maybeAuthPair` and
`requireAuthPair` are introduced, which do the same but without that
assumption.
2014-09-12 13:14:15 +00:00
Michael Snoyman
ef55173383 Merge pull request #822 from docmunch/no-id-token
remove the id_token parameter
2014-09-12 07:01:51 +03:00
Greg Weber
ec6fd486b6 remove the id_token parameter
We saw this error:
Internal Server Error
key "id_token" not present
2014-09-11 13:19:20 -07:00
Manuel Gómez
086837686a Decouple YesodAuthPersist from Persistent 2014-09-10 17:51:11 +00:00
Michael Snoyman
e4a401f58d Add a signature 2014-09-08 10:02:11 +03:00
Michael Snoyman
2b01c38d60 Added missing pragma 2014-09-08 07:11:38 +03:00
Michael Snoyman
39f4d0c95f Force persistent-2.0 2014-09-07 20:54:07 +03:00
Michael Snoyman
587d135f17 Remove yesod-platform 2014-09-07 20:53:57 +03:00
Michael Snoyman
ccab062f2d Remove all conditional compilation for Yesod 1.4 release
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
Michael Snoyman
598e570913 Remove deprecated packages 2014-09-07 17:41:09 +03:00
Michael Snoyman
f779004d19 Merge yesod-routes into yesod-core entirely 2014-09-07 17:34:37 +03:00
Michael Snoyman
88b9217e25 Merge branch 'master' into yesod-1.4 2014-09-07 17:02:01 +03:00
Michael Snoyman
815901eeb4 Version bump 2014-09-07 16:58:00 +03:00
Michael Snoyman
be5ec95647 Clean up parsing module further 2014-09-07 16:55:37 +03:00
Michael Snoyman
bc00f3958f Unified parsing and dispatching code (still ugly) 2014-09-07 16:55:37 +03:00
Michael Snoyman
a1ea34f196 Remove old dispatch method 2014-09-07 16:55:37 +03:00
Michael Snoyman
97af86e43a Simplified done.cg #819 2014-09-03 17:56:20 +03:00
Michael Snoyman
8cbcc5fab3 Merge branch 'master' into yesod-1.4 2014-09-03 09:03:18 +03:00
Michael Snoyman
67438d191d optparse-applicative 0.10 2014-09-03 08:20:10 +03:00
Greg Weber
ec91c8b59b version bump 2014-09-01 20:19:25 -07:00
Greg Weber
867f0c02e0 Merge pull request #818 from HugoDaniel/patch-1
Fixes the "reader not in scope" error
2014-09-01 12:27:43 -05:00
Hugo Daniel
525a73a100 Update yesod-bin.cabal
This fixes the error:

[10 of 10] Compiling Main             ( main.hs, dist/build/yesod/yesod-tmp/Main.o )

main.hs:192:35:
    Not in scope: ‘reader’
    Perhaps you meant one of these:
      ‘header’ (imported from Options.Applicative),
      ‘readIO’ (imported from Prelude), ‘readLn’ (imported from Prelude)
cabal: Error: some packages failed to install:
yesod-bin-1.2.12.5 failed during the building phase. The exception was:
ExitFailure 1
2014-09-01 18:12:20 +01:00
Michael Snoyman
2187c0cf8d Add required to textareaField (fixes #817) 2014-09-01 07:19:15 +03:00
Michael Snoyman
3478841d15 Add required to textareaField (fixes #817) 2014-09-01 07:18:42 +03:00
Michael Snoyman
34980eff82 Merge pull request #816 from yesodweb/install-j
use -j for cabal install
2014-08-31 09:55:25 +03:00
Greg Weber
07c1baefc4 use -j for cabal install 2014-08-30 19:16:49 -07:00
Michael Snoyman
29d7e252f1 Merge branch 'master' into yesod-1.4 2014-08-31 05:04:27 +03:00
Michael Snoyman
1e76a28f6d withUrlRenderer 2014-08-31 02:24:08 +03:00
Michael Snoyman
ebf3c8e4f2 Scaffolding update for #814 2014-08-31 00:22:34 +03:00
Michael Snoyman
9471399589 Merge branch 'master' into yesod-1.4 2014-08-28 05:19:21 +03:00
Michael Snoyman
d6b3d2a890 conduit 1.2 version bumps 2014-08-27 18:01:02 +03:00
Michael Snoyman
d3df218a96 conduit 1.2 patch 2014-08-27 17:34:35 +03:00
Michael Snoyman
fc66819535 Merge branch 'master' into yesod-1.4
Conflicts:
	yesod-form/yesod-form.cabal
2014-08-27 11:18:21 +03:00
Michael Snoyman
8b2297adf4 Conditional support for persistent2 branch.
Pinging @gregwebs. I've backported the relevant tweaks on the yesod-1.4
branch, to allow master to compile against persistent2. Whenever you're
ready to release persistent2, we can:

1. Release persistent2.
2. Release new versions of yesod packages, which will work with
   persistent 1.3 and 2.0.
3. Add an upper bound in Stackage to avoid using the new persistent
   libraries until they're ready for primetime.
4. Release your blog post.

yesod-1.4 should then remove the CPP here and only work with
persistent2; the biggest "breaking change" in the 1.4 release will be
remove backwards compatibility hacks for persistent, conduit,
shakespeare, and wai.
2014-08-27 11:16:08 +03:00