No description
Find a file
2014-05-27 17:57:08 +02:00
config Use plain CSS 2014-05-27 11:55:34 +02:00
design Theme tweaks 2014-03-14 17:47:35 +01:00
scripts Add deployment 2014-03-08 05:43:51 +01:00
src Add submodule and README.md 2014-05-27 17:53:23 +02:00
static Some spiel 2014-05-27 17:33:25 +02:00
submodules Add submodule and README.md 2014-05-27 17:53:23 +02:00
themes/purple/fonts First commit 2014-03-04 06:48:16 +01:00
.ghci First commit 2014-03-04 06:48:16 +01:00
.gitignore Ignore some files 2014-05-27 11:56:28 +02:00
.gitmodules Add submodule and README.md 2014-05-27 17:53:23 +02:00
hl.cabal Port to senza 2014-05-27 17:33:22 +02:00
hl.org Add to hl.org 2014-05-27 11:56:35 +02:00
LICENSE First commit 2014-03-04 06:48:16 +01:00
README.md Arch. notes 2014-05-27 17:57:08 +02:00
Setup.hs First commit 2014-03-04 06:48:16 +01:00

haskell-lang

Haskell web site.

Building

Clone the repo:

$ git clone git@github.com:chrisdone/hl.git

Create an hsenv:

$ cd hl
$ hsenv
$ source .hsenv/bin/activate

Get the right packakge set:

Add the following to your .hsenv/cabal/config, replacing the Hackage reference:

remote-repo: stackage:http://www.stackage.org/stackage/1ba546f8f281c02d135ec3babd86516f726b4453

Update with Stackage packages and grab submodules:

$ cabal update
$ git submodule init
$ git submodule update

Install project:

$ cabal install . submodules/senza

Done!

Running

It runs at: http://localhost:1990/

Manually running the binary:

$ dist/build/hl/hl

Running from inside GHCi:

> :l DevelMain
> DevelMain.update

Run this every time you want to restart.

If you use Emacs, you can just bind it to a key:

(define-key html-mode-map [f12] 'haskell-process-reload-devel-main))

Just hit f12 to recompile and restart.

Architecture

It uses Yesod and an MVC organization.

Templates are written in senza, a convenience wrapper to blaze-html. There is presently no database.