This package present an alternative for the standard
yesod init. It was modified
to my taste and needs and as such might not be suitable for your taste or needs.
The application contains simple login system utilizing
I tried to avoid what other
Yesod based sites that I found (e.g.
haskellers.com) did with
yesod-auth, that is they
wrapped almost all
User (or similar type) fields in
Maybe so that they could circumvent the limitations of the
implementation of third party authetication services that make implementing registration feel unnatural.
I did it by having separate
Profile tables. Ideal solution would have these two tables merged (even though having them separate might be advatageous in some cases).
Let me know if you know how to achieve that with
yesod-auth without resorting to
src/Main.hsThis module contains the main function. This is analogous to
main.hsof the original
src/Site.hsThis is analogous to
Application.hsof the original
src/Site/Common.hsThis module contains some convenience functions and reexpors some widely used types and functions.
src/Site/Core.hsThis module contains definition of the underlying data type
Environmentand instances of the following classes:
RenderMessage. This is analogous to
Foundation.hsof the original
src/Site/Settings.hsThis is analogous to
Settings.hsof the original
src/Site/Static.hsThis is analogous to
Settings/Static.hsof the original
src/Site/Model/Schema.hsThis module defines the schema of the database. This is analogous to
config/modelsof the original
src/Site/Model/TypeThis folder contains modules that reexport parts of
src/Site/Controller/Routes.hsThis module defines the routes of the application. This is analogous to
config/routesof the original
src/Site/Controller/FormThis folder contains modules that define various forms.
src/Site/Controller/HandlerThis folder contains modules taht define the site's handlers and some convenience modules (namely