Add submodule and README.md
This commit is contained in:
parent
817cc1d9ac
commit
a3d56750d4
4 changed files with 58 additions and 1 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "submodules/senza"]
|
||||
path = submodules/senza
|
||||
url = git@github.com:chrisdone/senza.git
|
53
README.md
53
README.md
|
@ -2,3 +2,56 @@ 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:
|
||||
|
||||
``` lisp
|
||||
(define-key html-mode-map [f12] 'haskell-process-reload-devel-main))
|
||||
```
|
||||
|
||||
Just hit f12 to recompile and restart.
|
||||
|
|
|
@ -14,4 +14,4 @@ main :: IO ()
|
|||
main =
|
||||
do s <- static "static"
|
||||
c <- newChan
|
||||
warp 2001 (App s c)
|
||||
warp 1990 (App s c)
|
||||
|
|
1
submodules/senza
Submodule
1
submodules/senza
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 393d55ab70e20e4c43fd2556738da2b40545a47d
|
Loading…
Reference in a new issue