From ddf22af839ddfe03977b6b7a293b487cef7da036 Mon Sep 17 00:00:00 2001 From: Chris Done Date: Thu, 29 May 2014 01:01:37 +0200 Subject: [PATCH] Haskell code pages docs --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3488d00..08c3de9 100644 --- a/README.md +++ b/README.md @@ -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 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 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 `
` block, code for `` span snippet.
+
 ## Building
 
 Clone the repo: