Highlighting

Page for experiments with syntax highlighting in Hakyll and Pandoc. There is no useful information here.

Haskell

f :: Int -> Int
f x = x + 1

Agda

module hello-world-proof where

open import Data.Nat using (; zero; suc; _+_)
open import Relation.Binary.PropositionalEquality using (__; refl; cong)

+-assoc : Set
+-assoc =  (x y z :)  x + (y + z)(x + y) + z

+-assoc-proof :  (x y z :)  x + (y + z)(x + y) + z
+-assoc-proof zero y z = refl
+-assoc-proof (suc x) y z = cong suc (+-assoc-proof x y z)