This is a test post using Pandoc and HScolour to syntax highlight some Haskell code and convert it to html. It looks as follows:

> fibs :: [Int] > fibs =0:1: (zipWith (+) fibs (tail fibs)) > > primes = sieve [2..] > sieve (p:xs) = p : (filter (\x-> (x `mod` p)>0) (sieve xs)) > > pascal :: [[Int]] > pascal = iterate (\xs-> zipWith (+) (0:xs) (xs++[0])) [1] > > sieve' xs = foldr (\a b -> (a: (filter (\x-> (x `mod` a)>0) b)))[]xs > primes' = sieve' [2..] > > f= ((.).(.)) (\x->x^2) (\x y -> x+y) > fibs' n = g n01>> gwhere1a b = b > g n a b = g (n-1) b (a+b)

You can also add some latex:

*H*^{p}(ℳ_{FG} ; *ω*^{q}) ⇒ *π*_{p + q}(𝕊)

Nice.

Advertisements