Ticket #191: Test.hs

File Test.hs, 0.9 kB (added by selinger, 3 years ago)

Sample module

Line 
1-- | Let's see how the German word \"grün\" will look in various
2-- contexts:
3--
4-- In normal text: grün
5--
6-- /In italic text: grün/
7--
8-- @In code style text: grün@
9--
10-- In code style inline text: @grün@
11--
12-- @
13-- In code blocks with \"\@\": grün
14-- @
15--
16-- > In a code block with ">": grün
17--
18-- When the \"&\" is escaped: gr\ün
19--
20-- As a Haskell identifier: 'grün'
21--
22-- As an undefined Haskell identifier: 'grünblau'
23--
24-- As a Haskell module: "Grün"
25--
26-- * In a bulleted list: grün
27--
28-- In a URL: <http://gr&#252;n.de/>
29
30module Test (
31  -- * In a section header: gr&#252;n
32  -- ** In a subsection header: gr&#252;n
33  -- $ref
34  blau,
35  grÃŒn
36) where
37
38blau :: Int -> Int
39blau x = x
40
41-- $ref
42-- In a named chunk: gr&#252;n
43--
44-- /In a named chunk in italics: gr&#252;n/
45--
46-- etc.
47
48grÃŒn :: Int -> Int
49grÃŒn x = x