|Chris Done 672d2c4b22 Add coming soon to docs||7 years ago|
|config||7 years ago|
|design||7 years ago|
|scripts||7 years ago|
|src||7 years ago|
|static||7 years ago|
|submodules||7 years ago|
|themes/purple/fonts||7 years ago|
|.ghci||7 years ago|
|.gitignore||7 years ago|
|.gitmodules||7 years ago|
|LICENSE||7 years ago|
|README.md||7 years ago|
|Setup.hs||7 years ago|
|hl.cabal||7 years ago|
|hl.org||7 years ago|
Haskell web site.
If you’re just here to contribute a content change, read this section.
All pages that are produced by markdown are here. To contribute changes simply fork this repo and open a pull request. It will be merged and redeployed in short order.
If you want to edit a page which has some custom code in it, you’ll want to see the next sections for building and running instructions. Maybe also take a look at architecture.
If you want to include Haskell code samples in markdown, use:
``` haskell main = putStrLn "Hello, World!" ```
If you want to include Haskell code samples in Haskell code pages, use:
haskellPre "main = print 123" haskellCode "peyton `simon` jones"
<pre> block, code for
<code> span snippet.
Clone the repo:
$ git clone firstname.lastname@example.org:chrisdone/hl.git
You need one of these GHC versions:
Create an hsenv:
$ cd hl $ hsenv $ source .hsenv/bin/activate
You need the right package set. Add the following to your
.hsenv/cabal/config, replacing the Hackage reference:
If you have GHC 7.6:
If you have GHC 7.8:
Now just run:
$ sh scripts/pull-build
To do the above cabal update, submodule, install, etc.
It runs at: http://localhost:1990/
Manually running the binary:
Running from inside GHCi:
> :l DevelMain > DevelMain.update
Run this every time you want to update the web handler in-place, as in this demo.
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.
It uses Yesod and an MVC organization.
Templates are written in senza, a convenience wrapper to blaze-html. There is presently no database.
I use this style for code. You don’t have to use this style, I can reformat patches as they come in.