Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
build_in_sandbox.sh
cabal.config

README.md

Yesod 1.4 cabal sandbox

The current Yesod quickstart recommends Stack which is good. You should use Stack.

I wanted to build Yesod 1.4 in an old-fashioned cabal sandbox, so I first built it the stack environment, found all of the package versions, and produced a cabal.config and build script that gets it all going.

How to use:

mkdir my-yesod-project
cd my-yesod-project

wget https://raw.githubusercontent.com/carlohamalainen/playground/master/haskell/yesod-1.4-in-sandbox-quickstart/build_in_sandbox.sh
wget https://raw.githubusercontent.com/carlohamalainen/playground/master/haskell/yesod-1.4-in-sandbox-quickstart/cabal.config

bash build_in_sandbox.sh

This takes about 18 minutes on my quad-core E450 thinkpad.

Now to initialise the scaffold and run the devel server:

export PATH=`pwd`/.cabal-sandbox/bin:$PATH

yesod init --bare

cabal build

cabal repl # Check that this works

yesod devel

Then visit http://127.0.0.1:3000/