|
|
Orchid XP v8 wrote:
> The following are reserved keywords in Haskell:
>
> module, where, import, qualified, hiding, as, case, of, let, in, data,
> type, newtype, class, instance, deriving, do
>
> I'm pretty sure that's the complete list. I count 17 reserved words.
WRONG! It's actually 21. I forget if/then/else, and apparently "default"
is a keyword...? (Ah, yes. The Haskell '98 Language Report explains that
this very obscure keyword is for adjusting the type defaulting
mechanism. As if you'd want to...)
> (I don't know anything
> about Emacs, but I imagine it can't be hard to program it so that just
> the 17 words above print in a different colour...)
Apparently it's already been done. (SUPRISE!)
http://www.iro.umontreal.ca/~monnier/elisp/#haskell-mode
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
|