Skip to content

Commit b91f455

Browse files
author
rrt
committed
Add the current version of the Moss/Thorn/Marlow Emacs mode, along with its
Ignore-this: 9346565eb47c0be58e563a4363c85e08 Add the current version of the Moss/Thorn/Marlow Emacs mode, along with its web pages and sample files. This is now the preferred mode, and the haskell.org pages are being changed to reflect that. Also includes the new GHCi mode from Chris Webb. darcs-hash:20010719181736-aea2c-adbf5fe058ffaca4267389ac6e25d89af08884ee.gz
0 parents  commit b91f455

12 files changed

+5850
-0
lines changed

fontlock.hs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
-- Comments are coloured brightly and stand out clearly.
2+
3+
repeat :: a -> [a]
4+
repeat xs = xs where xs = x:xs -- Keywords are also bright.
5+
6+
head :: [a] -> a
7+
head (x:_) = x
8+
head [] = error "PreludeList.head: empty list" -- Strings are coloured softly.
9+
10+
data Maybe a = Nothing | Just a -- Type constructors, data
11+
deriving (Eq, Ord, Read, Show) -- constructors, class names
12+
-- and module names are coloured
13+
-- closer to ordinary code.
14+
15+
{-
16+
map :: (a -> b) -> [a] -> [b] -- Commenting out large sections of
17+
map f [] = [] -- code can be misleading. Coloured
18+
map f (x:xs) = f x : map f xs -- comments reveal unused definitions.
19+
-}

0 commit comments

Comments
 (0)