Haskell code pages docs

This commit is contained in:
Chris Done 2014-05-29 01:01:37 +02:00
parent 2d59c7835a
commit ddf22af839

View file

@ -16,12 +16,22 @@ 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 want to see the next sections for building and running
instructions. Maybe also take a look at [architecture](#architecture). instructions. Maybe also take a look at [architecture](#architecture).
If you want to include Haskell code samples, use: If you want to include Haskell code samples in markdown, use:
``` haskell ``` haskell
main = putStrLn "Hello, World!" main = putStrLn "Hello, World!"
``` ```
If you want to include Haskell code samples in Haskell code pages,
use:
``` haskell
haskellPre "main = print 123"
haskellCode "peyton `simon` jones"
```
Pre for `<pre>` block, code for `<code>` span snippet.
## Building ## Building
Clone the repo: Clone the repo: