No description
Find a file
2015-05-27 11:43:16 -04:00
demo Route attributes/appcache example #518 2013-04-11 17:07:22 +03:00
yesod Version bump 2015-04-17 12:01:04 +03:00
yesod-auth Version bump 2015-04-26 18:37:33 +03:00
yesod-auth-oauth GHC 7.10 support 2015-04-30 15:05:18 +03:00
yesod-bin Add README about yesod-scaffold 2015-05-27 14:04:35 +03:00
yesod-core Better support for multiple cookie headers 2015-04-02 16:40:14 +03:00
yesod-eventsource Doc link updates 2014-12-21 15:23:52 +02:00
yesod-form runFormPost: proper behavior for missing input #950 2015-03-11 07:25:53 +02:00
yesod-newsfeed Doc link updates 2014-12-21 15:23:52 +02:00
yesod-persistent Doc link updates 2014-12-21 15:23:52 +02:00
yesod-sitemap Doc link updates 2014-12-21 15:23:52 +02:00
yesod-static Fix lower bound 2015-05-12 14:51:08 +03:00
yesod-test Version bumps 2015-02-09 07:25:08 +02:00
yesod-websockets Doc link updates 2014-12-21 15:23:52 +02:00
.gitignore add a Dockerfile for haskell development 2015-05-27 11:43:16 -04:00
.travis.yml Travis: use 7.10 and not 7.6 2015-04-29 13:50:15 +03:00
Dockerfile add a Dockerfile for haskell development 2015-05-27 11:43:16 -04:00
LICENSE Update license with MIT license 2012-04-29 09:38:45 +03:00
README Formatted README a bit 2009-07-14 20:52:09 +03:00
README.md remove ./scripts/install reference 2014-12-10 15:15:54 -08:00
ReleaseNotes.md notes were out of date, seem to be maintained on wiki, noted such 2013-01-03 21:09:54 -08:00
sources.txt Version bumps for 1.4 release 2014-09-21 11:41:37 +03:00

Yesod

An advanced web framework using the Haskell programming language. Featuring:

  • safety & security guaranteed at compile time
  • developer productivity: tools for all your basic web development needs
  • raw performance
    • fast, compiled code
    • techniques for constant-space memory consumption
  • asynchronous IO
    • this is built in to the Haskell programming language (like Erlang)

Learn more: http://yesodweb.com/

Install the latests stable Yesod: http://www.yesodweb.com/page/quickstart

cabal update && cabal install yesod

Create a new project after installing

yesod init

Your application is a cabal package and you use cabal to install its dependencies.

Installing & isolation

Install conflicts are unfortunately common in Haskell development. If you are not using any sandbox tools, you may discover that some of the other haskell installs on your system are broken. You can prevent this by using cabal sandbox.

Isolating an entire project is also a great idea, you just need some tools to help that process. On Linux you can use Docker. On any OS you can use a virtual machine. Vagrant is a great tool for that and there is a Haskell Platform installer for it.

Using cabal sandbox

To sandbox a project, type:

cabal sandbox init

This ensures that future installs will be local to the sandboxed directory.

Installing the latest development version from github for use with your application

cabal update
cabal install cabal-meta cabal-src

In your application folder, create a sources.txt file with the following contents:

./
https://github.com/yesodweb/yesod
https://github.com/yesodweb/shakespeare
https://github.com/yesodweb/persistent
https://github.com/yesodweb/wai

./ means build your app. The yesod repos will be cloned and placed in a vendor repo. Now run: cabal-meta install.

This should work almost all of the time. You can read more on cabal-meta If you aren't building from an application, remove the ./ and create a new directory for your sources.txt first.

hsenv (Linux and Mac OS X)

hsenv also provides a sandbox, but works at the shell level. Generally we recommend using cabal sandbox, but hsenv has tools for allowing you to use different versions of GHC, which may be useful for you.

Cloning the repos

The above instructions for building the latest should work well. But you can clone the repos without the help of cabal-meta:

for repo in shakespeare persistent wai yesod; do
  git clone http://github.com/yesodweb/$repo
  (
    cd $repo
    git submodule update --init
  )
done

Building your changes to Yesod

The traditional Yesod stack requires 4 "mega-repos", each with multiple cabal packages. cabal-meta install will install each package.

install package in all repos

for repo in shakespeare persistent wai yesod; do
    pushd $repo
    cabal-meta install
    popd
done

Building individual packages

# move to the individual package you are working on
cd shakespeare-text

# build and test the individual package
cabal configure -ftest --enable-tests
cabal build
cabal test