1 Example taken from http://www.haskell.org/onlinereport/literate.html,
2 with additional tripping characters.
4 This literate > program > prompts the user for a number
5 >and prints the factorial of that number:
9 > main = do putStr "Enter a number: "
12 > print (fact (read l))
14 This is the factorial function.
16 > fact :: Integer -> Integer
18 > fact n = n * fact (n-1)